Connectors → Apache Drill

About Apache Drill

Apache Drill is a low latency distributed SQL query engine for big data, including structured and semi-structured data. Drill provides plug-and-play integration with existing Apache Hive and Apache HBase deployments. Drill 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.

About the Apache Drill Connector

The Apache Drill Connector loads data into Incorta from Apache Drill datasets using a Java Database Connectivity (JDBC) connection. The Apache Drill connector uses the org.apache.drill.jdbc.Driver driver.

The Apache Drill connector supports the following Incorta specific functionality:

FeatureSupported
Chunking
Data Agent
Encryption at Ingest
Incremental Load
Multi-Source
OAuth
Performance Optimized
Remote
Single-Source
Spark Extraction
Webhook Callbacks

Steps to connect Apache Drill and Incorta

To connect Apache Drill and Incorta, here are the high level steps, tools, and procedures:

Create an external data source

Here are the steps to create an external data source with the Apache Drill connector:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Data.
  • In the Action bar, select + New → Add Data Source.
  • In the Choose a Data Source dialog, in Query Service, select Apache Drill.
  • In the New Data Source dialog, specify the applicable connector properties.
  • To test, select Test Connection.
  • Select Ok to save your changes.

Apache Drill connector properties

Here are the properties for the Apache Drill connector:

PropertyControlDescription
Data Source Nametext boxEnter the name of the data source.
Usernametext boxEnter the Apache Drill account username.
Passwordtext boxEnter the Apache Drill account user password.
Sourcedrop down listSelect Files or Tables
Connection Pooltext boxEnter the connection pool. The default is 30.
Connection Stringtext boxEnter the connection string for the Apache Drill JDBC driver.
The format is: jdbc:drill:zk=<ZOOKEEPER_HOST>:<ZOOKEEPER_PORT>;schema=<STORAGE_PLUGIN>
Zk specifies one or more ZooKeeper host names, or IP addresses.
schema is the name of a storage plugin configuration to use as the default for queries.
For example, schema=hive. The default Zookeeper Port is 2181.
Connection Propertiestext boxOptionally enter connector properties for a custom connection to Apache Drill in the format: propertyName=propertyValue, where each connector property is on a new line. The available connector properties are specified by org.apache.drill.jdbc.driver.
Use Data AgenttoggleEnable using a data agent to securely ingest data from an external data source that is behind a firewall. For more information, please review Tools → Data and Tools → Data Manager.
Data Agentdrop down listEnable Use Data Agent to configure this property. Select from the data agents created in the tenant, if any.
Important: Data Agent

A data agent is a service that runs on a remote host. It is also a data agent object in the Data Manager for a given tenant. An authentication file shared between the data agent object and the data agent service enables an authorized connection without using a VPN or SSH tunnel. With a data agent, you can securely extract data from one or more databases behind a firewall to an Incorta cluster. Your Incorta cluster can reside on-premises or in the cloud. A CMC Administrator must enable and configure an Incorta cluster to support the use of Data Agents. Only a Tenant Administrator (Super User) or user that belongs to a group with the SuperRole role for a given tenant can create a data agent that connects to a data agent service. To learn more, see Concepts → Data Agent and Tools → Data Agent.

Create a schema with the Schema Wizard

Here are the steps to create an Apache Drill schema with the Schema Wizard:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the Schema Manager, in the Action bar, select + New → Schema Wizard.
  • In (1) Choose a Source, specify the following:
    • For Enter a name, enter the schema name.
    • For Select a Datasource, select the drill data source.
    • Optionally create a description.
  • In the Schema Wizard footer, select Next.
  • In (2) Manage Tables, in the Data Panel, first select the name of the Data Source, and then check the Select All checkbox.
  • In the Schema Wizard footer, select Next.
  • In (3) Finalize, in the Schema Wizard footer, select Create Schema.

Create a schema with the Schema Designer

Here are the steps to create an Apache Drill schema using the Schema Designer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the Action bar, select + New → Create Schema.
  • In Name, specify the schema name, optionally create a description, and select Save.
  • In Start adding tables to your schema, select SQL Database.
  • In the Data Source dialog, specify the Apache Drill table data source properties.
  • Select Add.
  • In the Table Editor, in the Table Summary section, enter the table name.
  • To save your changes, select Done in the Action bar.

Apache Drill table data source properties

For a schema table in Incorta, you can define the following Apache Drill specific data source properties as follows:

PropertyControlDescription
Typedrop down listDefault is SQL Database
Data Sourcedrop down listSelect the Apache Drill external data source.
IncrementaltoggleEnable the incremental load configuration for the schema table.
Fetch Sizetext boxUsed for performance improvement, fetch size defines the number of records that will be retrieved from the database in each batch until all records are retrieved. The default is 5000.
Querytext boxEnter the SQL query to retrieve data from the Apache Drill datasets.
Update Querytext boxEnable Incremental to configure this property. Enter the SQL query to retrieve data updates from the Apache Drill database.
Incremental Field Typedrop down listEnable Incremental to configure this property. Select the format of the table date column:
  ●  Timestamp
  ●  Unix Epoch (seconds)
  ●  Unix Epoch (milliseconds)
CallbacktoggleEnable this option to call back on the source data set.
Callback URLtext boxThis property appears when the Callback toggle is enabled. Specify the URL.

View the schema diagram with the Schema Diagram Viewer

Here are the steps to view the schema diagram using the Schema Diagram Viewer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the list of schemas, select the Apache Drill schema.
  • In the Schema Designer, in the Action bar, select Diagram.

Load the schema

Here are the steps to perform a Full Load of the Apache Drill schema using the Schema Designer:

  • Sign in to the Incorta Direct Data Platform.
  • In the Navigation bar, select Schema.
  • In the list of schemas, select the Apache Drill schema.
  • In the Schema Designer, in the Action bar, select Load → Load Now → Full.
  • To review the load status, in Last Load Status, select the date.

Explore the schema

With the full load of the Apache Drill schema complete, you can use the Analyzer to explore the schema, create your first insight, and save the insight to a new dashboard.

To open the Analyzer from the schema, follow these steps:

  • In the Navigation bar, select Schema.
  • In the Schema Manager, in the List view, select the Apache Drill schema.
  • In the Schema Designer, in the Action bar, select Explore Data.