From 4b6f82523f4d72af82aa59424ef993c367b0cd33 Mon Sep 17 00:00:00 2001 From: Ramu Malur Date: Mon, 15 Feb 2016 14:51:16 +0530 Subject: [PATCH 1/2] Added details on using Drill with JDBC Interpreter --- docs/interpreter/drill.md | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docs/interpreter/drill.md diff --git a/docs/interpreter/drill.md b/docs/interpreter/drill.md new file mode 100644 index 00000000000..78ea13ab955 --- /dev/null +++ b/docs/interpreter/drill.md @@ -0,0 +1,57 @@ +--- +layout: page +title: "Apache Drill Interpreter" +description: "How to use Apache Drill with Zeppelin" +group: manual +--- +{% include JB/setup %} + +## Drill Interpreter for Apache Zeppelin +The [Apache Drill](http://drill.apache.org/) ™ supports a variety of NoSQL databases and file systems, including HBase, MongoDB, MapR-DB, HDFS, MapR-FS, Amazon S3, Azure Blob Storage, Google Cloud Storage, Swift, NAS and local files. A single query can join data from multiple datastores. For example, you can join a user profile collection in MongoDB with a directory of event logs in Hadoop. + +Drill's datastore-aware optimizer automatically restructures a query plan to leverage the datastore's internal processing capabilities. In addition, Drill supports data locality, so it's a good idea to co-locate Drill and the datastore on the same nodes. + +### Configuration + +* Copy drill-jdbc-all-.jar to ZEPPELIN_HOME/interpreter/jdbc/ +* Restart Zeppelin, if required. +* Modify the JDBC Interpreter. +You can use the JDBC Interpreter to add configurations specific to Drill. +You need to configure the driver & the JDBC URL. + + + + + + + + + + + + + + + + + +
PropertyValueDescription
drill.driverorg.apache.drill.jdbc.DriverJDBC Driver Class
drill.urljdbc:drill:schema=dfs;zk=localhost:2181/drill/drillbits1This is a sample URL. Details on Drill JDBC URL @ https://drill.apache.org/docs/using-the-jdbc-driver
+ +## How to use +Basically, you can use + +```%jdbc(drill) +select count(*) from retail_demo.`order_lineitems_pxf`; +``` + +### Apply Zeppelin Dynamic Forms +You can leverage [Zeppelin Dynamic Form]({{BASE_PATH}}/manual/dynamicform.html) inside your queries. You can use both the `text input` and `select form` parameterization features. + +```sql +%hive +SELECT ${group_by}, count(*) as count +FROM retail_demo.order_lineitems_pxf +GROUP BY ${group_by=product_id,product_id|product_name|customer_id|store_id} +ORDER BY count ${order=DESC,DESC|ASC} +LIMIT ${limit=10}; +``` From 5f94ef20a05d22bdbdbf5048161a7b8034a42c81 Mon Sep 17 00:00:00 2001 From: Ramu Malur Date: Wed, 17 Feb 2016 12:21:47 +0530 Subject: [PATCH 2/2] Updated adbc.md with Drill support --- docs/interpreter/drill.md | 57 --------------------------------------- docs/interpreter/jdbc.md | 2 ++ 2 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 docs/interpreter/drill.md diff --git a/docs/interpreter/drill.md b/docs/interpreter/drill.md deleted file mode 100644 index 78ea13ab955..00000000000 --- a/docs/interpreter/drill.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -layout: page -title: "Apache Drill Interpreter" -description: "How to use Apache Drill with Zeppelin" -group: manual ---- -{% include JB/setup %} - -## Drill Interpreter for Apache Zeppelin -The [Apache Drill](http://drill.apache.org/) ™ supports a variety of NoSQL databases and file systems, including HBase, MongoDB, MapR-DB, HDFS, MapR-FS, Amazon S3, Azure Blob Storage, Google Cloud Storage, Swift, NAS and local files. A single query can join data from multiple datastores. For example, you can join a user profile collection in MongoDB with a directory of event logs in Hadoop. - -Drill's datastore-aware optimizer automatically restructures a query plan to leverage the datastore's internal processing capabilities. In addition, Drill supports data locality, so it's a good idea to co-locate Drill and the datastore on the same nodes. - -### Configuration - -* Copy drill-jdbc-all-.jar to ZEPPELIN_HOME/interpreter/jdbc/ -* Restart Zeppelin, if required. -* Modify the JDBC Interpreter. -You can use the JDBC Interpreter to add configurations specific to Drill. -You need to configure the driver & the JDBC URL. - - - - - - - - - - - - - - - - - -
PropertyValueDescription
drill.driverorg.apache.drill.jdbc.DriverJDBC Driver Class
drill.urljdbc:drill:schema=dfs;zk=localhost:2181/drill/drillbits1This is a sample URL. Details on Drill JDBC URL @ https://drill.apache.org/docs/using-the-jdbc-driver
- -## How to use -Basically, you can use - -```%jdbc(drill) -select count(*) from retail_demo.`order_lineitems_pxf`; -``` - -### Apply Zeppelin Dynamic Forms -You can leverage [Zeppelin Dynamic Form]({{BASE_PATH}}/manual/dynamicform.html) inside your queries. You can use both the `text input` and `select form` parameterization features. - -```sql -%hive -SELECT ${group_by}, count(*) as count -FROM retail_demo.order_lineitems_pxf -GROUP BY ${group_by=product_id,product_id|product_name|customer_id|store_id} -ORDER BY count ${order=DESC,DESC|ASC} -LIMIT ${limit=10}; -``` diff --git a/docs/interpreter/jdbc.md b/docs/interpreter/jdbc.md index 1099f69794d..65edded55bd 100644 --- a/docs/interpreter/jdbc.md +++ b/docs/interpreter/jdbc.md @@ -16,6 +16,8 @@ This interpreter lets you create a JDBC connection to any data source, by now it * MariaDB * Redshift * Hive +* Apache Drill + * Details on using [Drill JDBC Driver](https://drill.apache.org/docs/using-the-jdbc-driver) If someone else used another database please report how it works to improve functionality.