0 ×

Hive Connector

KNIME Big Data Database nodes version 4.3.0.v202011300740 by KNIME AG

This node creates a connection to Apache Hive™ via JDBC. You need to provide the server hostname (or IP address), the port, and a database name and specify an authentication mechanism.

This node uses the selected driver's JDBC URL template to create the concrete database URL. Field validation in the dialog depends on whether the (included) tokens referencing them are mandatory or optional in the template.

Options

Connection settings

Database Dialect
Choose the registered database dialect here.
Driver Name
Choose a registered database driver here. Additional drivers can be registered in the KNIME preferences under "KNIME -> Databases". For more details on how to register a new driver see the database documentation.
The node includes the Apache Hive driver. Proprietary drivers are also supported, but need to be registered first, such as the Hive JDBC connector provided by Cloudera.
Hostname
The hostname (or IP address) of a Hive server. The corresponding driver URL template variable is host.
Port
The port on which the Hive server is listening. The default port is 10,000 and 10,500 for Hive Interactive instances. The corresponding driver URL template variable is port.
Database name
The name of the database you want to connect to. The corresponding driver URL template variable is database.
None
If checked, then authentication is not required.
Credentials
If checked, the credentials (user and password) are used as defined in the workflow. The credential name links to the specified user and password.
Username
Your username for the database.
Username & password
Your username and password for the database. Note that the password is stored using weak encryption as part the workflow .
Kerberos
Uses an existing Kerberos ticket for authentication. Note that this requires additional parameters to be specified in the JDBC Parameters tab (see below).

JDBC Parameters

This tab allows you to define driver-specific parameters for the JDBC connection. The value of a parameter can be a constant, variable, credential user, credential password or KNIME URL. For more information about the parameters supported by the included Apache Hive driver, please consult the Hive documentation. When using a proprietary driver, please consult the vendor documentation, e.g. Cloudera JDBC Driver for Apache Hive Install Guide.

Kerberos
The following parameters are required to use Kerberos authentication.

Apache Hive Driver (default KNIME driver)

  • kerberosAuthType: fromSubject
  • principal: hive/<server>@<REALM> (replace <server> with the fully qualified hostname and <REALM> with the Kerberos realm of the Hive service).

Proprietary Hive Drivers (provided by Amazon/Cloudera/Hortonworks)

  • AuthMech: 1
  • KrbHostFQDN: full qualified hostname of Hive
  • KrbRealm: REALM (Kerberos realm of Hive)
  • KrbServiceName: hive (Kerberos service name of Hive)

SSL/TLS
The following parameters are required to use SSL/TLS.

Apache Hive Driver (default KNIME driver)

  • ssl: true
  • sslTrustStore: full path of truststore
  • trustStorePassword: password to access the truststore

Proprietary Hive Drivers (provided by Amazon/Cloudera/Hortonworks)

  • SSL: 1
  • SSLTrustStore: full path of truststore
  • SSLTrustStorePwd: password to access the truststore

Advanced

This tab allows you to define KNIME framework properties such as connection handling, advanced SQL dialect settings or logging options.

Input Type Mapping

This tab allows you to define rules to map from database types to KNIME types.

Mapping by Name
Columns that match the given name (or regular expression) and database type will be mapped to the specified KNIME type.
Mapping by Type
Columns that match the given database type will be mapped to the specified KNIME type.

Output Type Mapping

This tab allows you to define rules to map from KNIME types to database types.

Mapping by Name
Columns that match the given name (or regular expression) and KNIME type will be mapped to the specified database type.
Mapping by Type
Columns that match the given KNIME type will be mapped to the specified database type.

Output Ports

Icon
A database connection

Best Friends (Incoming)

Best Friends (Outgoing)

Workflows

Installation

To use this node in KNIME, install KNIME Big Data Connectors from the following update site:

KNIME 4.3

A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.