Connectors → Apache Hive
About Apache Hive
Apache Hive is a data warehouse software project built on top of Apache Hadoop for providing data query and analysis. Apache Hive facilitates reading, writing, and managing large datasets residing in distributed storage using SQL.
About the Apache Hive Connector
The Apache Hive Connector loads data into Incorta from Apache Hive datasets using a Java Database Connectivity (JDBC) connection. The Apache Hive connector uses the org.apache.hive.jdbc.HiveDriver
driver.
Apache Hive supports datasets in several file formats:
- Text
- Sequence
- RC
- Avro
- ORC
- Parquet
- Custom INPUTFORMAT and OUTPUTFORMAT
The Apache Hive connector supports the following Incorta specific functionality:
Feature | Supported |
---|---|
Chunking | |
Data Agent | ✔ |
Encryption at Ingest | |
Incremental Load | ✔ |
Multi-Source | ✔ |
OAuth | |
Performance Optimized | ✔ |
Remote | ✔ |
Single-Source | ✔ |
Spark Extraction | |
Webhook Callbacks | ✔ |
Steps to connect Apache Hive and Incorta
To connect Apache Hive and Incorta, here are the high level steps, tools, and procedures:
- Create an external data source
- Create a schema with the Schema Wizard
- or, Create a schema with the Schema Designer
- Load the schema
- Explore the schema
Create an external data source
Here are the steps to create a external data source with the Apache Hive 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 Database, select Apache Hive.
- In the New Data Source dialog, specify the applicable connector properties.
- To test, select Test Connection.
- Select Ok to save your changes.
Apache Hive connector properties
Here are the properties for the Apache Hive connector:
Property | Control | Description |
---|---|---|
Data Source Name | text box | Enter the name of the data source |
Kerberos Secured | toggle | Enable Kerberos authentication for the data source connection |
Keytab Path | text box | Enable Kerberos Secured to configure this property. Enter the path to the Kerberos keytab on the database server. |
Username | text box | Enter the Apache Hive account username |
Password | text box | Enter the Apache Hive account user password |
Connection Pool | text box | Enter the connection pool. The default is 30. |
Connection String | text box | Enter the connection string for the Apache Hive JDBC driver. The format is: jdbc:hive2://<HOST>:<PORT>/<DB> The default port is 10000. |
Connection Properties | text box | Optionally enter connector properties for a custom connection to Apache Hive in the format: propertyName=propertyValue , where each connector property is on a new line.The available connector properties are specified by org.apache.hive.jdbc.HiveDriver . Refer to Apache HiveServer2 JDBC for further information. |
Extra Options | text box | Enter supported extra options in the form of key=value . |
Use Data Agent | toggle | Enable 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 Agent and Tools → Data Manager. |
Data Agent | drop down list | Enable Use Data Agent to configure this property. Select from the data agents created in the tenant, if any. |
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.
You must have the Incorta cluster enabled and configured to support the use of Data Agents. To learn more, see Concepts → Data Agent and Tools → Data Agent.
There are known issues with the Apache Hive connector when you enable Kerberos authentication. Please contact support if you need to use this feature.
Create a schema with the Schema Wizard
Here are the steps to create an Apache Hive schema with the Schema Wizard:
- Sign in to the Incorta Direct Data Platform.
- In the Navigation bar, select Schema.
- 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 Apache Hive external 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 Hive 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, and select Save.
- In Start adding tables to your schema, select SQL Database.
- In the Data Source dialog, specify the Apache Hive 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 Hive table data source properties
For a schema table in Incorta, you can define the following AWS Athena specific data source properties as follows:
Property | Control | Description |
---|---|---|
Type | drop down list | Default is SQL Database |
Data Source | drop down list | Select the Apache Hive external data source |
Remote | toggle | Enable this option to remotely access file data, which means no data is loaded to Incorta. See the Summary of Data Access Methods table for details on how setting this and the Performance Optimized option affects data accessibility. |
File Type | text box | Displays the read-only type of Apache Hive file the table is sourced from |
File Location | text box | Displays the read-only location of the Apache Hive file the table is sourced from |
Incremental | toggle | Enable the incremental load configuration for the schema table |
Fetch Size | text box | Used 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. |
Query | text box | Enter the SQL query to retrieve data from the Apache Hive datasets |
Update Query | text box | Enable Incremental to configure this property. Enter the SQL query to retrieve data updates from the Apache Hive database. |
Incremental Field Type | drop down list | Enable Incremental to configure this property. Select the format of the table date column: ● Timestamp ● Unix Epoch (seconds) ● Unix Epoch (milliseconds) |
Callback | toggle | Enable this option to call back on the source data set |
Callback URL | text box | This property appears when the Callback toggle is enabled. Specify the URL. |
Summary of Data Access Methods Based on Remote and Performance Optimized Settings
Table Properties | Data Source Properties | Parquet | DDM | Memory | SQLi | MV/ Notebooks | Analytics |
---|---|---|---|---|---|---|---|
Performance Optimized = Off | Remote = On | No | No | No | Yes | Yes | No |
Performance Optimized = Off | Remote = Off | Yes | Yes | No | Yes | Yes | No, unless populated via MV/Notebook |
Performance Optimized = On | Remote = Off | Yes | Yes | Yes | Yes | Yes | Yes |
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 Hive 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 Hive 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 Hive schema.
- In the Schema Designer, in the Action bar, select Load → Full Load.
- To review the load status, in Last Load Status, select the date.
Explore the schema
With the full load of the Apache Hive 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 Hive schema.
- In the Schema Designer, in the Action bar, select Explore Data.