Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Following are the steps which you need to follow in order to install Apache Drill 1.3.0 on Ubuntu 16.04
Assumptions : username is hduser
Step 1 : JAVA Installation
If you have already installed JAVA, then you can skip this step.
If JAVA is not installed, then please follow below steps in order to install JAVA 1.7
command 1 : sudo apt-get update
command 2 : sudo apt-get install openjdk
Once above commands are executed successfully, then you can run following command for verification.
$ java -version
Above command should give you output which might look something like this.
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
JAVA version may be different based on your installation.
Step 2 : Download Drill Package.
$ cd
$ wget http://getdrill.org/drill/download/apache-drill-1.3.0.tar.gz
Step 3 : Extract Drill Package
$ sudo cp apache-drill-1.3.0.tar.gz /usr/local
$ cd /usr/local
$ sudo tar -xvf apache-drill-1.3.0.tar.gz
$ sudo mv apache-drill-1.3.0 drill
Step 4 : Update .bashrc file with following contents
#DRILL VARIABLES START
export DRILL_HOME=/usr/local/drill
export PATH=$PATH:$DRILL_HOME/bin
#DRILL VARIABLES END
$ cd
$ sudo nano .bashrc
***PASTE ABOVE MENTIONED CONTENT IN THE FILE ANYWHERE***
press CTRL + X
press Y
press ENTER
Step 5 : Running Drill Agent
Changing the permission of drill installation directory
$ sudo chmod -R 777 /usr/local/drill
Running the drill agent
$ sqlline -u jdbc:drill:zk=local
Once you run above command, you will get the drill console window
For verifying Drill installation, you can run following command from different terminal window.
$ jps
Above command's output looks something like this
PROCESS_ID SqlLine
This completes Apache Drill Installation.
Hope this helps.
Thanks for having a read.
Cheers.
@milindjagre

This comment has been minimized.

Copy link
Owner Author

@milindjagre milindjagre commented Jan 7, 2017

This file is step by step approach to install apache drill 1.3.0 on ubuntu 16.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment