Feature Support
Connector support for specific features is shown in the following table. Key: Y - Supported; N - Not Supported; N/A - not applicableConnect to Hive
To establish a connection to Hive, you must specify a JDBC URL on the Connection page of your Self-Service Analytics data source definition for the Hive connection.- Specify the JDBC URL for Hive.
- If authentication has been set up, provide the user name and password.
- If required, specify the Hive/YARN queue name in the Queue Name box.
- Specify the server timezone. If the timezone of your Hive server is in UTC, leave the Server Timezone box blank. Otherwise, specify the timezone abbreviation in all caps for correct handling the time data (for example, EST, EDT, or CST).
- Select Validate to test the connection.
Troubleshooting
If you run into a warning message that is displayed when you try to open a dashboard based on a Hive data source, see Resolve the Hive Timeout Warning Message.Connect to Hive Sources on A Kerberized HDP Cluster
A secure Hortonworks Data Platform (HDP) cluster uses Kerberos authentication to validate and confirm access requests. You can set up Self-Service Analytics to connect to the secure HDP cluster using the following instructions.Prepare the Hive Cluster
- To enable Kerberos for HDP distribution using a Hive source, refer to Hortonworks’ documentation Enabling Kerberos Authentication Using Ambari.
- Kerberos authentication requires precise time correspondence on all instances to work properly. You need to enable the Network Time Protocol service in your network. See Use the Network Time Protocol to Synchronize Time.
Configure Self-Service Analytics Microservices
Obtain Kerberos Credentials
Each microservice must have its own unique identifier called a principal. Perform the following steps:- Install the Kerberos client on the CentOS or Ubuntu machine where the Self-Service Analytics server resides.
-
Generate the Kerberos principal and corresponding keytab for the Self-Service Analytics microservice. Before you proceed, make sure that:
- The Self-Service Analytics microservice is running on a node with proper Kerberos configuration:
/etc/krb5.confor similar location for your Linux distribution. - The Kerberos realm on your environment is the same as the realm specified in the
kdc.conffile from the Hive server.
- The Self-Service Analytics microservice is running on a node with proper Kerberos configuration:
-
Check the Kerberos configuration (that is,
krb5.conf) and validity of the principal and keytab pair using MIT Kerberos client: -
Make the keytab accessible for Self-Service Analytics’s Hive connector:
Configure a Hive Connector
-
Create or update the file named
/etc/zoomdata/edc-hive.properties. If this file already exists, verify that the information below exists in the file: -
Restart the Hive connector:
Connect to the Kerberized Hive Source
You are now ready to create the Hive source:- Open a new browser window and log into Self-Service Analytics.
- Select Sources.
- Select Hive.
- Specify the name of your source and add a description (if desired). Then select Next.
-
On the Connection page, define the connection source. You can use an existing connection, if available, or create a new one. To create a new connection, select the Input New Credentials option button and specify the connection name and JDBC URL. Make sure that you enter the JDBC URL in the correct format:
Replace the placeholders as follows:
-
<hive_host>: Specify the IP address or host name of the Hive node to which you are connecting. -
<hive_principal@KERBEROS.REALM>: Enter the principal of the Hive node you are connecting to. To get the list of all Hive principals, navigate to Ambari > Admin > Kerberos > Advanced > Hive.The principal spec contained in the JDBC URL refers to the principal of the Hive node.<hive_principal@KERBEROS.REALM >principal has nothing to do with the<zoomdata_principal@KERBEROS.REALM>principal specified for the Self-Service Analytics connector.
-
- Select Validate and, after your connection is valid, select Next.
zoomdata_principal@KERBEROS.REALM authenticated by its keytab in /etc/zoomdata/<composer_principal>.keytab.
Resolve the Hive Timeout Warning Message
Troubleshooting
Issue description: A timeout warning message is displayed when you try to open a dashboard based on a Hive data source. This is possibly being caused by the configuration of the Hive server. Workaround: If you are encountering timeout errors, you can first try to create or modify the settings in the Hive configuration fileedc-hive.properties. See Configure Self-Service Analytics.
-
Increase the timeout value that causes this exception to 2 minutes:
-
If the Hive server has at least 64 GB storage and 16 cores, modify the values for the following parameters: