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