To quickly try out Apache Drill on a single node, install Drill in embedded mode. When launching Drill in embedded mode via the Drill shell, a local Drillbit service starts automatically. Drillbits are also automatically stopped when exiting from the shell.
Below are steps to launch a single Drillbit in a Docker environment. It assumes that the Docker service is up and running on the host.
git clone [email protected]:agirish/drill-containers.git
cd drill-containers/docker/centos/drill
./launch.sh 1.13.0
/opt/drill/bin/drill-embedded
Drill can be deployed in a distributed cluster environment, for large-scale data processing. Zookeeper is used for cluster co-ordination and is a pre-requisite for this mode. The current set of images include stand-alone zookeeper and drill. HDFS is not included.
git clone [email protected]:agirish/drill-containers.git
cd drill-containers/docker/centos/zookeeper
./launch.sh
Make a note of the ZK container IP address (ZK_IP_ADDR)
git clone [email protected]:agirish/drill-containers.git
cd drill-containers/docker/centos/drill
./launch.sh 1.13.0
Edit /opt/drill/conf/drill-override.conf
. Update the zk.connect
string with the ZK container IP address
/opt/drill/bin/drillbit.sh start
/opt/drill/bin/sqlline -u jdbc:drill:zk=ZK_IP_ADDR:2181
The docker directory contains Dockerfiles & dependencies required to build and customize Docker images. Included are docker for Apache Drill and Apache ZooKeeper.
The project directory contains scripts needed to build, push and launch Docker containers
Takes in no parameters. Example below:
cd drill-containers/docker/centos/zookeeper
./build.sh
Takes in 1 parameters - the project version. Example below:
cd drill-containers/docker/centos/drill
./build.sh 1.14.0
Takes in no parameters. Example below:
cd drill-containers/docker/centos/zookeeper
./launch.sh
Takes in 1 parameters - the project version. Example below:
cd drill-containers/docker/centos/drill
./launch.sh 1.14.0