Installing Drill on Windows
Currently, Drill supports 64-bit Windows only.
Setting Up Your Windows Environment
Before you download and install Drill on your Windows machine, complete the following procedures:
Set the JAVA_HOME and PATH environment variables.
- Go to System Properties.
- On the Advanced Tab, click Environment Variables.
- Click New, and enter JAVA_HOME as the variable name. For the variable value, enter the path to your JDK installation. If you installed JDK in the default installation location, instead of using
Program Filesin the path name, use
progra~1. This is required because Drill cannot use file paths with spaces.
- Click OK to continue.
- In the System Variables section, select Path and then click Edit.
- In the Edit Environment Variable window, click New and enter
- Click OK to continue and exit the System Properties window.
Create Drill UDF directories and change the owner.
You, or the user that will start Drill, must manually create and own UDF directories. The directories must exist before starting Drill for the first time.
Run the command prompt as administrator, and issue the following commands:
mkdir "%userprofile%\drill" mkdir "%userprofile%\drill\udf" mkdir "%userprofile%\drill\udf\registry" mkdir "%userprofile%\drill\udf\tmp" mkdir "%userprofile%\drill\udf\staging" takeown /R /F "%userprofile%\drill"
- To verify that you (or the user that will run Drill) owns the directories and files, go to the
"%userprofile%\drill"directory, right-click on it, and select Properties from the list.
- Verify that you are the owner for all the directories within drill, including the /udf, /registry, /tmp, and /staging directories. If you are not the owner, edit the permissions.
Download and Install Drill
- Download the latest version of Apache Drill here.
- Move the downloaded file to the directory where you want to install Drill.
- Unzip the GZ file using a third-party tool. If the tool you use does not unzip the underlying TAR file as well as the GZ file, perform a second unzip to extract the Drill software. The extraction process creates the installation directory containing the Drill software.
- Start Drill.