tHiveConnection Standard properties
These properties are used to configure tHiveConnection running in the Standard Job framework.
The Standard tHiveConnection component belongs to the Big Data, the Databases and the ELT families.
The component in this framework is available in all Talend products.
Basic settings
-
When you use this component with Google Dataproc:
Project ID
Enter the ID of your Google Cloud Platform project.
If you are not certain about your project ID, confirm it in the Manage Resources page of your Google Cloud Platform services.
Cluster ID
Enter the ID of your Dataproc cluster to be used.
Region From this drop-down list, select the Google Cloud region to be used.
Google Storage staging bucket As a Talend Job expects its dependent jar files for execution, specify the Google Storage directory to which these jar files are transferred so that your Job can access these files at execution.
The directory to be entered must end with a slash (/). If not existing, the directory is created on the fly but the bucket to be used must already exist.
Database
Fill this field with the name of the database.
Provide Google Credentials in file
Leave this check box clear, when you launch your Job from a given machine in which Google Cloud SDK has been installed and authorized to use your user account credentials to access Google Cloud Platform. In this situation, this machine is often your local machine.
When you launch your Job from a remote machine, such as a Talend JobServer, select this check box and in the Path to Google Credentials file field that is displayed, enter the directory in which this JSON file is stored in the Talend JobServer machine. You can also click the [...] button, and then in the pop-up dialog box, browse for the JSON file.
For further information about this Google Credentials file, see the administrator of your Google Cloud Platform or visit Google Cloud Platform Auth Guide.
-
When you use this component with Microsoft HDInsight distribution:
Livy configuration
Enter the address and the authentication information of the Microsoft HD Insight cluster to be used. For example, the address could be https://your_hdinsight_cluster_name.azurehdinsight.net and the authentication information is your Azure account name: yourname. Talend Studio uses this service to submit the Job to the HD Insight cluster.
In the Job result folder field, enter the location in which you want to store the execution result of a Job in the Azure Storage to be used.
Job status polling configuration
In the Poll interval when retrieving Job status (in ms) field, enter the time interval (in milliseconds) at the end of which you want Talend Studio to ask Spark for the status of your Job. For example, this status could be Pending or Running.
In the Maximum number of consecutive statuses missing field, enter the maximum number of times Talend Studio should retry to get a status when there is no status response.
HDInsight configuration
- The Username is the one defined when creating your cluster. You can find it in the SSH + Cluster login blade of your cluster.
- The Password is defined when creating your HDInsight cluster for authentication to this cluster.
Windows Azure Storage configuration
Enter the address and the authentication information of the Azure Storage or ADLS Gen2 account to be used. In this configuration, you do not define where to read or write your business data but define where to deploy your Job only.
In the Container field, enter the name of the container to be used. You can find the available containers in the Blob blade of the Azure Storage account to be used.
In the Deployment Blob field, enter the location in which you want to store the current Job and its dependent libraries in this Azure Storage account.
In the Hostname field, enter the Primary Blob Service Endpoint of your Azure Storage account without the https:// part. You can find this endpoint in the Properties blade of this storage account.
In the Username field, enter the name of the Azure Storage account to be used.
In the Password field, enter the access key of the Azure Storage account to be used. This key can be found in the Access keys blade of this storage account.
Database
Fill this field with the name of the database.
-
When you use the other distributions:
Connection mode
Select a connection mode from the list. The options vary depending on the distribution you are using.
Hive version
Select the Hive version you are using.
Host
Database server IP address.
Port
Listening port number of DB server.
Database
Fill this field with the name of the database.
Username and Password
DB user authentication data.
To enter the password, click the [...] button next to the password field, enter the password in double quotes in the pop-up dialog box, and click OK to save the settings.
Use kerberos authentication
If you are accessing a Hive metastore running with Kerberos security, select this check box and then enter the relevant parameters in the fields that appear.
The values of the following parameters can be found in the hive-site.xml file of the Hive system to be used.-
Hive principal uses the value of hive.metastore.kerberos.principal. This is the service principal of the Hive metastore.
-
HiveServer2 local user principal uses the value of hive.server2.authentication.kerberos.principal.
-
HiveServer2 local user keytab uses the value of hive.server2.authentication.kerberos.keytab
-
Metastore URL uses the value of javax.jdo.option.ConnectionURL. This is the JDBC connection string to the Hive metastore.
-
Driver class uses the value of javax.jdo.option.ConnectionDriverName. This is the name of the driver for the JDBC connection.
-
Username uses the value of javax.jdo.option.ConnectionUserName. This, as well as the Password parameter, is the user credential for connecting to the Hive Metastore.
-
Password uses the value of javax.jdo.option.ConnectionPassword.
This check box is available depending on the Hadoop distribution you are connecting to.
Use a keytab to authenticate Select the Use a keytab to authenticate check box to log into a Kerberos-enabled system using a given keytab file. A keytab file contains pairs of Kerberos principals and encrypted keys. You need to enter the principal to be used in the Principal field and the access path to the keytab file itself in the Keytab field. This keytab file must be stored in the machine in which your Job actually runs, for example, on a Talend JobServer.
Note that the user that executes a keytab-enabled Job is not necessarily the one a principal designates but must have the right to read the keytab file being used. For example, the username you are using to execute a Job is user1 and the principal to be used is guest; in this situation, ensure that user1 has the right to read the keytab file to be used.
Use SSL encryption
Select this check box to enable the SSL or TLS encrypted connection.
Then in the fields that are displayed, provide the authentication information:-
In the Trust store path field, enter the path, or browse to the TrustStore file to be used. By default, the supported TrustStore types are JKS and PKCS 12.
-
To enter the password, click the [...] button next to the password field, enter the password in double quotes in the pop-up dialog box, and click OK to save the settings.
This feature is available only to the HiveServer2 in the Standalone mode of the following distributions:-
Hortonworks Data Platform 2.0 +
-
Cloudera CDH4 +
-
Pivotal HD 2.0 +
-
Amazon EMR 4.0.0 +
Set Resource Manager
Select this check box and in the displayed field, enter the location of the ResourceManager of your distribution. For example, tal-qa114.talend.lan:8050.
Then you can continue to set the following parameters depending on the configuration of the Hadoop cluster to be used (if you leave the check box of a parameter clear, then at runtime, the configuration about this parameter in the Hadoop cluster to be used will be ignored ):-
Select the Set resourcemanager scheduler address check box and enter the Scheduler address in the field that appears.
-
Select the Set jobhistory address check box and enter the location of the JobHistory server of the Hadoop cluster to be used. This allows the metrics information of the current Job to be stored in that JobHistory server.
-
Select the Set staging directory check box and enter this directory defined in your Hadoop cluster for temporary files created by running programs. Typically, this directory can be found under the yarn.app.mapreduce.am.staging-dir property in the configuration files such as yarn-site.xml or mapred-site.xml of your distribution.
-
Allocate proper memory volumes to the Map and the Reduce computations and the ApplicationMaster of YARN by selecting the Set memory check box in the Advanced settings view.
-
Select the Set Hadoop user check box and enter the user name under which you want to execute the Job. Since a file or a directory in Hadoop has its specific owner with appropriate read or write rights, this field allows you to execute the Job directly under the user name that has the appropriate rights to access the file or directory to be processed.
-
Select the Use datanode hostname check box to allow the Job to access datanodes via their hostnames. This actually sets the dfs.client.use.datanode.hostname property to true. When connecting to a S3N filesystem, you must select this check box.
For further information about the Hadoop Map/Reduce framework, see the Map/Reduce tutorial in Apache's Hadoop documentation.
Set NameNode URI
Select this check box and in the displayed field, enter the URI of the Hadoop NameNode, the master node of a Hadoop system. For example, assuming that you have chosen a machine called masternode as the NameNode, then the location is hdfs://masternode:portnumber. If you are using WebHDFS, the location should be webhdfs://masternode:portnumber; WebHDFS with SSL is not supported yet.
For further information about the Hadoop Map/Reduce framework, see the Map/Reduce tutorial in Apache's Hadoop documentation.
Spark catalog
Select the Spark implementation to use.- In-memory: select this value if you set the Hive thrift metastore to a Hive metastore that is not an external metastore.
- Hive: select this value if you set the Hive thrift metastore to an external Hive metastore that exists outside of your cluster.
-
Property type |
Either Built-In or Repository. Built-In: No property data stored centrally. Repository: Select the repository file where the properties are stored. |
Distribution |
Select the cluster you are using from the drop-down list. The options in the
list vary depending on the component you are using. Among these options, the following
ones requires specific configuration:
Information noteNote: From Talend Studio 8.0 R2024-04 onwards, the
Distribution parameter has been removed.
|
Hive version |
Select the version of the Hadoop distribution you are using. The available options vary depending on the component you are using. Information noteNote: From Talend Studio 8.0 R2024-04 onwards, the
Hive version parameter has been removed.
|
Hiver Server | Select the Hive version you are using. |
Hadoop version | Select the Hadoop version you are using. |
Inspect the classpath for configurations |
Select this check box to allow the component to check the configuration files in the directory you have set with the $HADOOP_CONF_DIR variable and directly read parameters from these files in this directory. This feature allows you to easily change the Hadoop configuration for the component to switch between different environments, for example, from a test environment to a production environment. In this situation, the fields or options used to configure Hadoop connection and/or Kerberos security are hidden. If you want to use certain parameters such as the Kerberos parameters but
these parameters are not included in these Hadoop configuration files, you need to
create a file called talend-site.xml and put this file into the
same directory defined with $HADOOP_CONF_DIR. This talend-site.xml file should read as follows:
<!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>talend.kerberos.authentication </name> <value>kinit </value> <description> Set the Kerberos authentication method to use. Valid values are: kinit or keytab. </description> </property> <property> <name>talend.kerberos.keytab.principal </name> <value>user@BIGDATA.COM </value> <description> Set the keytab's principal name. </description> </property> <property> <name>talend.kerberos.keytab.path </name> <value>/kdc/user.keytab </value> <description> Set the keytab's path. </description> </property> <property> <name>talend.encryption </name> <value>none </value> <description> Set the encryption method to use. Valid values are: none or ssl. </description> </property> <property> <name>talend.ssl.trustStore.path </name> <value>ssl </value> <description> Set SSL trust store path. </description> </property> <property> <name>talend.ssl.trustStore.password </name> <value>ssl </value> <description> Set SSL trust store password. </description> </property> </configuration> The parameters read from these configuration files override the default ones used by Talend Studio. When a parameter does not exist in these configuration files, the default one is used. Note that this option is available only in Hive Standalone mode with Hive 2. |
Use or register a shared DB Connection |
Select this check box to share your database connection or fetch a database connection shared by a parent or child Job, and in the Shared DB Connection Name field displayed, enter the name for the shared database connection. This allows you to share one single database connection (except the database schema setting) among several database connection components from different Job levels that can be either parent or child. This option is incompatible with the Use dynamic Job and Use an independent process to run subJob options of the tRunJob component. Using a shared connection together with a tRunJob component with either of these two options enabled will cause your Job to fail. |
Execution engine |
Select this check box and from the drop-down list, select the framework you need to use for big data processing. The available frameworks are MapReduce and Tez. This property is available with the following connection modes:
Before using Tez, ensure that the Hadoop cluster you are using supports Tez. You will need to configure the access to the relevant Tez libraries via the Advanced settings view of this component. For further information about Hive on Tez, see Apache's related documentation. Some examples are presented there to show how Tez can be used to gain performance over MapReduce. |
Store by HBase |
Select this check box to display the parameters to be set to allow the Hive components to
access HBase tables:
For further information about this access involving Hive and HBase, see Apache's Hive documentation about Hive/HBase integration. |
Define the jars to register for HBase |
Select this check box to display the Register jar for HBase table, in which you can register any missing jar file required by HBase, for example, the Hive Storage Handler, by default, registered along with your Hive installation. |
Register jar for HBase |
Click the [+] button to add rows to this table, then, in the Jar name column, select the JAR file to be registered and in the Jar path column, enter the path pointing to that JAR file. |
Advanced settings
Tez lib |
Select how the Tez libraries are accessed:
|
Hadoop properties |
Talend Studio
uses a default configuration for its engine to perform
operations in a Hadoop distribution. If you need to use a custom configuration in a specific
situation, complete this table with the property or properties to be customized. Then at
runtime, the customized property or properties will override those default ones.
For further information about the properties required by Hadoop and its related
systems such as HDFS and Hive, see the documentation of the Hadoop distribution you are
using or see Apache's Hadoop documentation and then select the version of the
documentation you want. For demonstration purposes, the links to some properties are listed
below:
|
Hive properties |
Talend Studio
uses a default configuration for its engine to perform operations in a Hive
database. If you need to use a custom configuration in a specific situation,
complete this table with the property or properties to be customized. Then at
runtime, the customized property or properties will override those default ones. For
further information, see Hive dedicated properties.
|
Path separator in server |
Leave the default value of the Path separator in server as it is, unless you have changed the separator used by your Hadoop distribution's host machine for its PATH variable or in other words, that separator is not a colon (:). In that situation, you must change this value to the one you are using in that host. |
tStatCatcher Statistics |
Select this check box to collect the log data at a component level. |
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from it. For more information about variables, see Using contexts and variables. |
Usage
Usage rule |
This component is generally used with other Hive components, particularly tHiveClose. If Talend Studio used to connect to a Hive database is operated on Windows, you must manually create a folder called tmp in the root of the disk where Talend Studio is installed. |
Prerequisites |
The Hadoop distribution must be properly installed, so as to guarantee the interaction with Talend Studio . The following list presents MapR related information for example.
For further information about how to install a Hadoop distribution, see the manuals corresponding to the Hadoop distribution you are using. |