tree: 100f948aa4c2a4d8720afb8d2ea6a6c5cd24cfd5 [path history] [tgz]
  1. winutils/
  2. auto-setup.sh
  3. core-site-example.xml
  4. distrib-env.sh
  5. distrib-setup.sh
  6. drill-am-log.xml
  7. drill-am.sh
  8. drill-conf
  9. drill-config.sh
  10. drill-embedded
  11. drill-embedded.bat
  12. drill-env.sh
  13. drill-localhost
  14. drill-on-yarn-example.conf
  15. drill-on-yarn.sh
  16. drill-override-example.conf
  17. drill-override.conf
  18. drill-setup.sh
  19. drill-sqlline-override-example.conf
  20. drillbit
  21. drillbit.sh
  22. dumpcat
  23. hadoop-excludes.txt
  24. LICENSE
  25. logback.xml
  26. NOTICE
  27. README.md
  28. runbit
  29. saffron.properties
  30. sqlline
  31. sqlline.bat
  32. storage-plugins-override-example.conf
  33. submit_plan
  34. yarn-client-log.xml
  35. yarn-drillbit.sh
distribution/src/main/resources/README.md

Running Apache Drill

Prerequisites

  • Linux, Windows or OSX
  • Oracle/OpenJDK 8 (JDK, not JRE)

Additional requirements when running in clustered mode:

  • Hadoop 2.3+ distribution of Hadoop (such as Apache or MapR)
  • Zookeeper is required for a clustered installation

Installing the Tarball

  1. mkdir /opt/drill
  2. tar xvzf [tarball] --strip=1 -C /opt/drill

Running in embedded mode

  1. cd /opt/drill
  2. bin/sqlline -u jdbc:drill:zk=local
  3. Run a query (below).

Running in clustered mode

  1. Edit drill-override.conf to provide zookeeper location
  2. Start the drillbit using bin/drillbit.sh start
  3. Repeat on other nodes
  4. Connect with sqlline by using bin/sqlline -u “jdbc:drill:zk=[zk_host:port]”
  5. Run a query (below).

Run a query

Drill comes preinstalled with a number of example data files including a small copy of the TPCH data in self describing Parquet files as well as the foodmart database in JSON. You can query these files using the cp schema. For example:

USE cp;

SELECT 
  employee_id, 
  first_name
FROM `employee.json`; 

More information

For more information including how to run a Apache Drill cluster, visit the Apache Drill Documentation