# tHiveInput Standard properties

These properties are used to configure tHiveInput running in the Standard Job framework.

The Standard tHiveInput component belongs to the Big Data and the Databases families.

The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.

## Basic settings

Connection configuration:

* When you use this component with Qubole on AWS:

  | API Token | Click the<br>... button<br>next to the API<br>Token field to enter the authentication<br>token generated for the Qubole user account to be used.<br>For further information about how to obtain this token,<br>see [Manage Qubole<br>account](https://api.qubole.com/v2/control-panel#manage-accounts) from the Qubole documentation.<br><br>This<br>token allows you to specify the user account you want to<br>use to access Qubole. Your Job automatically uses the<br>rights and permissions granted to this user account in<br>Qubole. |
  | --- | --- |
  | Cluster label | Select the<br>Cluster label<br>check box and enter the name of the Qubole cluster to be<br>used. If leaving this check box clear, the default<br>cluster is used.<br><br>If you need<br>details about your default cluster, ask the<br>administrator of your Qubole service. You can also read<br>[this article](https://docs.qubole.com/en/latest/quick-start-guide/Azure-quick-start-guide/UsingQDS/azure-update-clusters.html?highlight=default%20cluster)<br>from the Qubole documentation to find more information<br>about configuring a default Qubole cluster. |
  | Change API endpoint | Select the<br>Change API<br>endpoint check box and select the region<br>to be used. If leaving this check box clear, the default<br>region is used.<br><br>For further<br>information about the Qubole Endpoints supported on<br>QDS-on-AWS, see [Supported Qubole<br>Endpoints on Different Cloud Providers](https://docs.qubole.com/en/latest/rest-api/qubole-endpoints.html#qubole-endpoints). |

* When you use this component with Google Dataproc:

  | Project identifier | Enter the ID of your Google Cloud Platform project.<br><br>If you are not certain about your project ID, check it in the Manage<br>Resources page of your Google Cloud Platform services. |
  | --- | --- |
  | Cluster identifier | Enter the ID of your Dataproc cluster to be used. |
  | Region | From this drop-down list, select the Google Cloud region to<br>be used. |
  | Google Storage staging bucket | As a Talend Job expects its<br>dependent jar files for execution, specify the Google Storage directory to<br>which these jar files are transferred so that your Job can access these<br>files at execution.<br><br>The directory to be entered must end with a slash (/). If not existing, the<br>directory is created on the fly but the bucket to be used must already<br>exist. |
  | Database | Fill this field with the name of the database. |
  | Authentication type | Select the type of authentication to be used:<br><br><ul> <li> <span>Use Access Key and Secret</span>:                                                authenticate using the access and secret keys                                                obtained from Google. When selecting this mode, the                                                parameters to be defined in the <span>Basic                                                  settings</span> view are <span>Google                                                  Storage Access Key</span> and                                                  <span>Google Storage Secret                                                Key</span>.</li> <li> <span>User Service Account</span>:                                                authenticate using Google credentials file that is                                                associated with your Google Service Account. The                                                credentials file can either be specified in                                                tHiveConfiguration or in tHiveInput.</li> </ul> |
  | Google Storage Access Key<br>and Google Storage Secret<br>Key | Enter the authentication information obtained from Google<br>for tHiveInput to read temporary data<br>from Google Storage.<br><br>These keys can be consulted on the<br>Interoperable Access tab view under the Google Cloud Storage tab of the<br>project from the Google APIs Console.<br><br>To enter the secret key, click the [...] button next to<br>the secret key field, and then in the pop-up dialog box enter the password between double<br>quotes and click OK to save the settings.<br><br>For more information about the access key<br>and secret key, go to [https://developers.google.com/storage/docs/reference/v1/getting-startedv1?hl=en/](https://developers.google.com/storage/docs/reference/v1/getting-startedv1?hl=en)<br>and see the description about developer keys.<br><br>The Access Key and<br>Secret Key fields are only<br>available when you select Use Access Key and<br>Secret from the Authentication type drop-down list. |
  | Provide Google Credentials in file | Leave this check box clear, when you<br>launch your Job from a given machine in which Google Cloud SDK has been<br>installed and authorized to use your user account credentials to access<br>Google Cloud Platform. In this situation, this machine is often your<br>local machine.<br><br>When you launch your Job from a remote<br>machine, such as a Jobserver, select this check box and in the<br>Path to Google Credentials<br>file field that is displayed, enter the directory in<br>which this JSON file is stored in the Jobserver machine. You can also<br>click the [...] button, and then in the pop-up<br>dialog box, browse for the JSON file.<br><br>For further information about this Google<br>Credentials file, see the administrator of your Google Cloud Platform or<br>visit [Google Cloud Platform Auth<br>Guide](https://cloud.google.com/docs/authentication). |

* When you use this component with HDInsight:

  | WebHCat configuration | Enter the address and the authentication information of the<br>Microsoft HD Insight cluster to be used. For example, the address could be<br>your\_hdinsight\_cluster\_name.azurehdinsight.net and the<br>authentication information is your Azure account name: ychen. The Studio uses this service to submit the Job to the HD<br>Insight cluster.<br><br>In the Job result<br>folder field, enter the location in which you want to store the<br>execution result of a Job in the Azure Storage to be used. |
  | --- | --- |
  | Job status polling configuration | In the Poll interval<br>when retrieving Job status (in ms) field, enter the time interval<br>(in milliseconds) at the end of which you want the Studio to ask Spark for the<br>status of your Job. For example, this status could be Pending or Running.<br><br>In the Maximum number of<br>consecutive statuses missing field, enter the maximum number of<br>times the Studio should retry to get a status when there is no status response. |
  | HDInsight configuration | Enter the address and the authentication information of the<br>Microsoft HD Insight cluster to be used. For example, the address could be<br>your\_hdinsight\_cluster\_name.azurehdinsight.net and the<br>authentication information is your Azure account name: ychen. The Studio uses this service to submit the Job to the HD<br>Insight cluster.<br><br>In the Job result<br>folder field, enter the location in which you want to store the<br>execution result of a Job in the Azure Storage to be used. |
  | Windows Azure Storage<br>configuration | Enter the address and the authentication information of the<br>Azure Storage or ADLS Gen2 account to be used. In this configuration, you do not<br>define where to read or write your business data but define where to deploy your Job<br>only.<br><br>In the Container field, enter the name of the container to be used. You<br>can find the available containers in the Blob<br>blade of the Azure Storage account to be used.<br><br>In the Deployment<br>Blob field, enter the location in which you want to store the<br>current Job and its dependent libraries in this Azure Storage account.<br><br>In the Hostname field, enter the Primary Blob Service Endpoint of your<br>Azure Storage account without the https:// part. You can find this endpoint in the<br>Properties blade of this storage<br>account.<br><br>In the Username field, enter the name of the Azure Storage account to be<br>used.<br><br>In the Password field, enter the access key of the Azure Storage account<br>to be used. This key can be found in the Access<br>keys blade of this storage account. |
  | Database | Fill this field with the name of the<br>database. |

* When you use the other distributions:

  | Connection mode | Select a connection mode from the list. The<br>options vary depending on the distribution you are<br>using. |
  | --- | --- |
  | Hive server | Select the Hive server through which you want the Job using this component<br>to execute queries on Hive.<br><br>This Hive server list is available<br>only when the Hadoop distribution to be used such as HortonWorks Data Platform V1.2.0 (Bimota) supports HiveServer2. It<br>allows you to select HiveServer2 (Hive 2), the<br>server that better support concurrent connections of multiple clients than<br>HiveServer (Hive 1).<br><br>For further information about HiveServer2, see https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2. |
  | Host | Database server IP address. |
  | Port | Listening port number of DB server. |
  | Database | Fill this field with the name of the<br>database.<br><br>Information noteNote:<br><br>This field is not available when you<br>select Embedded<br>from the Connection<br>mode list. |
  | Username and<br>Password | DB user authentication data.<br><br>To enter the password, click the [...] button next to the<br>password field, and then in the pop-up dialog box enter the password between double quotes<br>and click OK to save the settings. |
  | Use kerberos authentication | If you are accessing a Hive Metastore running with Kerberos security,<br>select this check box and then enter the relevant parameters in the fields that<br>appear.<br><br><ul> <li> <p>If this cluster is a MapR cluster of the version 5.0.0 or later, you can set the            MapR ticket authentication configuration in addition or as an alternative by following            the explanation in <a href="https://help.qlik.com/talend/en-US/components/7.3/mapr/connecting-to-security-enabled-mapr" target="_blank">Connecting to a security-enabled MapR</a>. </p> <p>Keep in mind that this configuration generates a new MapR security ticket for the username        defined in the Job in each execution. If you need to reuse an existing ticket issued for the        same username, leave both the <span>Force MapR ticket            authentication</span> check box and the <span>Use Kerberos            authentication</span> check box clear, and then MapR should be able to automatically        find that ticket on the fly.</p> </li> </ul><br><br>The values of the following parameters can be found in the *hive-site.xml* file of the Hive system to be used.<br><br><ol> <li> <p> <span>Hive principal</span> uses the value                            of <em>hive.metastore.kerberos.principal</em>. This is                            the service principal of the Hive Metastore.</p> </li> <li> <p> <span>HiveServer2 local user                                principal</span> uses the value of <em>hive.server2.authentication.kerberos.principal</em>.</p> </li> <li> <p> <span>HiveServer2 local user keytab</span>                            uses the value of <em>hive.server2.authentication.kerberos.keytab</em> </p> </li> <li> <p> <span>Metastore URL</span> uses the value of                                <em>javax.jdo.option.ConnectionURL</em>. This is the                            JDBC connection string to the Hive Metastore.</p> </li> <li> <p> <span>Driver class</span> uses the value of                                <em>javax.jdo.option.ConnectionDriverName</em>. This                            is the name of the driver for the JDBC connection.</p> </li> <li> <p> <span>Username</span> uses the value of <em>javax.jdo.option.ConnectionUserName</em>. This, as                            well as the Password parameter, is the user credential for connecting to                            the Hive Metastore.</p> </li> <li> <p> <span>Password</span> uses the value of <em>javax.jdo.option.ConnectionPassword</em>.</p> </li> </ol><br><br><br>For the other parameters that are displayed, please consult the Hadoop<br>configuration files they belong to. For example, the Namenode<br>principal can be found in the *hdfs-site.xml* file<br>or the *hdfs-default.xml* file of the distribution you are<br>using.<br><br>This check box is available depending on the Hadoop distribution you are<br>connecting to. |
  | Use a keytab to authenticate | Select the Use a keytab to authenticate<br>check box to log into a Kerberos-enabled system using a given keytab file. A keytab<br>file contains pairs of Kerberos principals and encrypted keys. You need to enter the<br>principal to be used in the Principal field and<br>the access path to the keytab file itself in the Keytab field. This keytab file must be stored in the machine in<br>which your Job actually runs, for example, on a Talend Jobserver.<br><br>Note that the user that executes a keytab-enabled Job is not necessarily<br>the one a principal designates but must have the right to read the keytab file being<br>used. For example, the username you are using to execute a Job is *user1* and the principal to be used is *guest*; in this<br>situation, ensure that *user1* has the right to read the keytab<br>file to be used. |
  | Use SSL encryption | Select this check box to enable the SSL or TLS encrypted connection.<br><br>Then in the fields that are displayed, provide the authentication<br>information:<br><br><ul> <li> <p>In the <span>Trust store                                path</span> field, enter the path, or browse to the TrustStore                            file to be used. By default, the supported TrustStore types are <em>JKS</em> and <em>PKCS 12</em>.</p> </li> <li> <p>To enter the password, click the <span>[...]</span> button next to the		password field, and then in the pop-up dialog box enter the password between double quotes		and click <span>OK</span> to save the settings.</p> </li> </ul><br><br>This feature is available only to the HiveServer2 in the Standalone mode of the following distributions:<br><br><ul> <li> <p>Hortonworks Data Platform 2.0 +</p> </li> <li> <p>Cloudera CDH4 +</p> </li> <li> <p>Pivotal HD 2.0 +</p> </li> <li> <p>Amazon EMR 4.0.0 +</p> </li> </ul> |
  | Set Resource Manager | Select this check box and in the displayed field, enter the location of the<br>ResourceManager of your distribution. For example, tal-qa114.talend.lan:8050.<br><br>Then you can continue to set the following parameters depending on the<br>configuration of the Hadoop cluster to be used (if you leave the check box of a<br>parameter clear, then at runtime, the configuration about this parameter in the<br>Hadoop cluster to be used will be ignored ):<br><br><ol> <li> <p>Select the <span>Set resourcemanager                        scheduler address</span> check box and enter the Scheduler address in                    the field that appears.</p> </li> <li> <p>Select the <span>Set jobhistory                        address</span> 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.</p> </li> <li> <p>Select the <span>Set staging                        directory</span> 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 <em>yarn.app.mapreduce.am.staging-dir</em> property in the configuration files                    such as <em>yarn-site.xml</em> or <em>mapred-site.xml</em> of your distribution.</p> </li> <li> <p>Allocate proper memory volumes to the <span>Map</span> and the <span>Reduce</span>                    computations and the <span>ApplicationMaster</span>                    of YARN by selecting the <span>Set memory</span>                    check box in the <span>Advanced settings</span>                    view.</p> </li> <li> <p>Select the <span>Set Hadoop                                user</span> 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.</p> </li> <li> <p>Select the <span>Use datanode hostname</span> check box to allow the                    Job to access datanodes via their hostnames. This actually sets the <em>dfs.client.use.datanode.hostname</em>                    property to <em>true</em>. When connecting to a                    S3N filesystem, you must select this check box.</p> </li> </ol><br><br><br>For further information about these parameters, see the documentation or<br>contact the administrator of the Hadoop cluster to be used.<br><br>For further information about the Hadoop Map/Reduce framework, see the<br>Map/Reduce tutorial in Apache's Hadoop documentation on [http://hadoop.apache.org](http://hadoop.apache.org/). |
  | Set NameNode URI | Select this check box and in the displayed field, enter the URI of the<br>Hadoop NameNode, the master node of a Hadoop system. For example, assuming that you<br>have chosen a machine called masternode as the NameNode, then<br>the location is hdfs://masternode:portnumber. If you are using WebHDFS, the location should be<br>webhdfs://masternode:portnumber; WebHDFS with SSL is not<br>supported yet.<br><br>For further information about the Hadoop Map/Reduce framework, see the<br>Map/Reduce tutorial in Apache's Hadoop documentation on [http://hadoop.apache.org](http://hadoop.apache.org/). |
  | Spark catalog | Select the Spark implementation to use.<br><br><ul> <li> <span>In-memory</span>: select this value                                                if you set the <span>Hive thrift                                                  metastore</span> to a Hive metastore that is                                                not an external metastore.</li> <li> <span>Hive</span>: select this value if                                                you set the <span>Hive thrift                                                  metastore</span> to an external Hive                                                metastore that exists outside of your cluster.</li> </ul> |

The other properties:

| Property type | Either Built-In or Repository.<br><br><br>Built-In: No property data stored centrally.<br><br><br>Repository: Select the repository file where the<br>properties are stored. |
| --- | --- |
| Use an existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined.<br><br>Information noteNote: When a Job contains the parent Job and the child Job, if you<br>need to share an existing connection between the two levels, for example, to share the<br>connection created by the parent Job with the child Job, you have to:<br><br><ol> <li> <p>In the parent level, register the database connection            to be shared in the <span>Basic              settings</span> view of the connection component which creates that very database            connection.</p> </li> <li> <p>In the child level, use a dedicated connection            component to read that registered database connection.</p> </li> </ol><br><br>For an example about how to share a database connection<br>across Job levels, see *Talend Studio<br>User Guide*. |
| Distribution | Select the cluster you are using from the drop-down list. The options in the<br>list vary depending on the component you are using. Among these options, the following<br>ones requires specific configuration:<br><br><ul> <li> <p>If available in this <span>Distribution</span> drop-down                        list, the <span>Microsoft HD                            Insight</span> option allows you to use a Microsoft HD Insight                        cluster. For this purpose, you need to configure the connections to the HD                        Insight cluster and the Windows Azure Storage service of that cluster in the                        areas that are displayed. For                            detailed explanation about these parameters, search for configuring the                            connection manually on <span>Talend Help Center</span> (<a href="https://help.talend.com/" target="_blank">https://help.talend.com</a>).                    </p> </li> <li> <p>If you select <span>Amazon EMR</span>, find more details about  Amazon EMR getting started in                                <span>Talend Help Center</span> (<a href="https://help.talend.com/" target="_blank">https://help.talend.com</a>).</p> </li> <li> <p>The <span>Custom</span> option                        allows you to connect to a cluster different from any of the distributions                        given in this list, that is to say, to connect to a cluster not officially                        supported by <span> <span>Talend</span> </span>.</p> </li> </ul><br><br><ol> <li> <p>Select <span>Import from existing                        version</span> to import an officially supported distribution as base                    and then add other required jar files which the base distribution does not                    provide.</p> </li> <li> <p>Select <span>Import from zip</span> to                    import the configuration zip for the custom distribution to be used. This zip                    file should contain the libraries of the different Hadoop elements and the index                    file of these libraries. </p> <p>Note that custom versions are not officially supported by                        <span> <span>Talend</span> </span>. <span> <span>Talend</span> </span> and its community provide you with the opportunity to connect to                    custom versions from the Studio but cannot guarantee that the configuration of                    whichever version you choose will be easy, due to the wide range of different                    Hadoop distributions and versions that are available. As such, you should only                    attempt to set up such a connection if you have sufficient Hadoop experience to                    handle any issues on your own.</p> <div><span>Information note</span><span>Note:</span> <p>In this dialog box, the active check box must be kept                        selected so as to import the jar files pertinent to the connection to be                        created between the custom distribution and this component.</p> </div> <p>For a step-by-step example about how to connect to a custom                    distribution and share this connection, see <a href="https://help.qlik.com/talend/r/en-US/7.3/hortonworks" target="_blank">Hortonworks</a>.</p> </li> </ol> |
| Hive version | Select the version of the Hadoop distribution you are using. The available<br>options vary depending on the component you are using. |
| Schema and Edit<br>Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion. If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> |
|  | Built-in: The schema is created and<br>stored locally for this component only. Related topic: see *Talend Studio*<br>*User<br>Guide*. |
|  | Repository: The schema already exists<br>and is stored in the Repository, hence can be reused. Related topic: see<br>*Talend Studio*<br>*User<br>Guide*. |
| Table Name | Name of the table to be processed. |
| Query type | Either Built-in or Repository. |
|  | Built-in: Fill in manually the query<br>statement or build it graphically using SQLBuilder |
|  | Repository: Select the relevant query<br>stored in the Repository. The Query field gets accordingly filled<br>in. |
| Guess Query | Click the Guess Query button to<br>generate the query which corresponds to your table schema in the Query<br>field. |
| Guess schema | Click this button to retrieve the schema from the table. |
| This query uses Parquet objects | When available, select this check box to indicate that the table to be handled<br>uses the<br>PARQUET<br>format and thus make the component to call the required jar file.<br><br>Note that when the file format to be used is PARQUET, you might be prompted to find the specific<br>PARQUET jar file and install it into the Studio.<br><br><ul> <li> <p>When the connection mode to Hive is <span>Embedded</span>, the Job is run in your local            machine and calls this jar installed in the Studio.</p> </li> <li> <p>When the connection mode to Hive is <span>Standalone</span>, the Job is run in the server            hosting Hive and this jar file is sent to the HDFS system of the cluster you are            connecting to. Therefore, ensure that you have properly defined the NameNode URI in the            corresponding field of the <span>Basic              settings</span> view.</p> </li> </ul><br><br><br>This jar file can be downloaded from Apache's site. For details about how to install external modules, see *How to install<br>external modules in the Talend products*.<br>You can find more details about how to install<br>external modules in Talend Help Center ([https://help.talend.com](https://help.talend.com/)). |
| Query | Enter your DB query paying particularly attention to properly sequence<br>the fields in order to match the schema definition.<br><br>For further information about the Hive query language, see https://cwiki.apache.org/confluence/display/Hive/LanguageManual.<br><br>Information noteNote: Compressed data in the form of Gzip or Bzip2 can be processed through the query<br>statements. For details, see https://cwiki.apache.org/confluence/display/Hive/CompressedStorage.<br><br>Hadoop provides different compression formats that help reduce the space<br>needed for storing files and speed up data transfer. When reading a compressed file, the<br>Studio needs to uncompress it before being able to feed it to the input flow. |
| Execution engine | Select this check box and from the drop-down list, select the framework you need to use to<br>run the Job.<br><br>This list is available only when you are using the Embedded mode for the Hive connection and the distribution you are working<br>with is:<br><br><ul> <li> <p>Custom: this option allows you connect to a distribution                  supporting Tez but not officially supported by <em> <span>Talend</span> </em>.</p> </li> </ul><br><br>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.<br><br>For further information about Hive on Tez, see Apache's related documentation in https://cwiki.apache.org/confluence/display/Hive/Hive+on+Tez. Some examples are presented there to show how Tez can be used to gain performance over MapReduce. |

## Advanced settings

| Tez lib | Select how the Tez libraries are accessed:<br><br><ul> <li> <p> <span>Auto install</span>: at runtime, the Job uploads and deploys the Tez                libraries provided by the Studio into the directory you specified in the <span>Install folder in HDFS</span> field, for example, <em>/tmp/usr/tez</em>.</p> <p>If you have set the <em>tez.lib.uris</em> property in the properties                table, this directory overrides the value of that property at runtime. But the other                properties set in the properties table are still effective.</p> </li> <li> <p> <span>Use exist</span>: the Job accesses the Tez libraries already                deployed in the Hadoop cluster to be used. You need to enter the path pointing to                those libraries in the <span>Lib path (folder or file)</span>                field.</p> </li> <li> <p> <span>Lib jar</span>: this table appears when you have selected <span>Auto install</span> from the <span>Tez                lib</span> list and the distribution you are using is <span>Custom</span>. In this table, you need to add the Tez libraries to be                uploaded.</p> </li> </ul> |
| --- | --- |
| Temporary path | If you do not want to set the Jobtracker and the NameNode when you execute<br>the query select \* from your\_table\_name, you need to<br>set this temporary path. For example, */C:/select\_all* in<br>Windows. |
| Trim all the String/Char columns | Select this check box to remove leading and trailing whitespace from<br>all the String/Char columns. |
| Trim column | Remove leading and trailing whitespace from defined columns.<br><br>Information noteNote:<br><br>Clear the Trim all the String/Char<br>columns check box to enable Trim<br>column in this field. |
| Hadoop properties | *Talend Studio* uses a default configuration for its engine to perform<br>operations in a Hadoop distribution. If you need to use a custom configuration in a specific<br>situation, complete this table with the property or properties to be customized. Then at<br>runtime, the customized property or properties will override those default ones.<br><br><ul> <li> <p>Note that if you are using the centrally stored metadata from the <span>Repository</span>, this table automatically inherits the					properties defined in that metadata and becomes uneditable unless you change the						<span>Property type</span> from <span>Repository</span> to <span>Built-in</span>.</p> </li> </ul><br><br>For further information about the properties required by Hadoop and its related systems such<br>as HDFS and Hive, see the documentation of the Hadoop distribution you<br>are using or see Apache's Hadoop documentation on http://hadoop.apache.org/docs and then select the version of the documentation you want. For demonstration purposes, the links to some properties are listed below:<br><br><ul> <li> <p>Typically, the HDFS-related properties can be found in the <em>hdfs-default.xml</em> file of your distribution, such as						<a href="http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml" target="_blank">						http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml</a>.</p> </li> <li> <p>Apache also provides a page to list the Hive-related properties: <a href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties" target="_blank">https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties</a>.</p> </li> </ul> |
| Hive properties | *Talend Studio* uses a default configuration for its engine to<br>perform operations in a Hive database. If you need to use a custom configuration in<br>a specific situation, complete this table with the property or properties to be<br>customized. Then at runtime, the customized property or properties will override<br>those default ones. For further information for Hive dedicated properties, see https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration.<br><br><ul> <li>If you need to use Tez to run your Hive Job, add                            <span>hive.execution.engine</span> to the                            <span>Properties</span> column and <span>Tez</span> to the                            <span>Value</span> column, enclosing both of these strings in                        double quotation marks.</li> <li> <p>Note that if you are using the centrally stored metadata                            from the <span>Repository</span>, this                            table automatically inherits the properties defined in that metadata and                            becomes uneditable unless you change the <span>Property type</span> from <span>Repository</span> to <span>Built-in</span>.</p> </li> </ul> |
| Mapred job map memory mb and<br>Mapred job reduce memory mb | You can tune the map and reduce computations by<br>selecting the Set memory check box to set proper memory allocations<br>for the computations to be performed by the Hadoop system.<br><br>In that situation, you need to enter the values you need in the Mapred<br>job map memory mb and the Mapred job reduce memory<br>mb fields, respectively. By default, the values are both *1000* which are normally appropriate for running the<br>computations.<br><br>The memory parameters to be set are Map (in Mb),<br>Reduce (in Mb) and ApplicationMaster (in Mb). These fields allow you to dynamically allocate<br>memory to the map and the reduce computations and the ApplicationMaster of YARN. |
| Path separator in server | Leave the default value of the Path separator in<br>server as it is, unless you have changed the separator used by your<br>Hadoop distribution's host machine for its PATH variable or in other words, that<br>separator is not a colon (:). In that situation, you must change this value to the<br>one you are using in that host. |
| tStatCatcher Statistics | Select this check box to collect log data at the component<br>level. |

## Global Variables

| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>QUERY: the query statement<br>being processed. This is a Flow variable and it returns a string.<br><br><br>ERROR\_MESSAGE: the error message generated by the component when an<br>error occurs. This is an After variable and it returns a string. This variable functions<br>only if the Die on error check box<br>is cleared, if the component has this check<br>box.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a<br>variable, press Ctrl + Space to<br>access the variable list and choose the variable to use from it.<br><br>For further information about variables, see *Talend Studio*<br>*User Guide*. |
| --- | --- |

## Usage

| **Usage rule** | This component offers the benefit of flexible DB queries and covers<br>all possible Hive QL queries.<br><br>If the Studio used to connect to a Hive database is operated on Windows,<br>you must manually create a folder called *tmp* in the root of the<br>disk where this Studio is installed. |
| --- | --- |
| *HBase Configuration*<br><br>Information noteNote:<br><br>Available only when the Use an existing<br>connection check box is clear | Store by HBase |
|  | Zookeeper quorum |
|  | Zookeeper client port |
|  | Define the jars to register for<br>HBase |
|  | Register jar for HBase |
| Dynamic settings | Click the [+] button to add a row in the table<br>and fill the Code field with a context<br>variable to choose your database connection dynamically from multiple<br>connections planned in your Job. This feature is useful when you need to<br>access database tables having the same data structure but in different<br>databases, especially when you are working in an environment where you<br>cannot change your Job settings, for example, when your Job has to be<br>deployed and executed independent of Talend Studio.<br><br>The Dynamic settings table is<br>available only when the Use an existing<br>connection check box is selected in the Basic settings view. Once a dynamic parameter is<br>defined, the Component List box in the<br>Basic settings view becomes unusable.<br><br>For examples on using dynamic parameters, see [Reading data from databases through context-based dynamic connections](https://help.qlik.com/talend/r/en-US/7.3/components/defining-context-groups/reading-data-from-databases-through-context-based-dynamic-connections) and [Reading data from different MySQL databases using dynamically loaded connection parameters](https://help.qlik.com/talend/r/en-US/7.3/components/context/reading-data-from-different-mysql-databases-using-dynamically-loaded-connection-parameters). For more information on Dynamic<br>settings and context variables, see Talend Studio<br>User Guide. |
| Prerequisites | The Hadoop distribution must be properly installed, so as to guarantee the interaction<br>with *Talend Studio*. The following list presents MapR related information for<br>example.<br><br><ul> <li> <p>Ensure that you have installed the MapR client in the machine where the Studio is,				and added the MapR client library to the PATH variable of that machine.  According				to MapR's documentation, the library or libraries of a MapR client corresponding to				each OS version can be found under <em>MAPR_INSTALL\					hadoop\hadoop-VERSION\lib\native</em>. For example, the library for				Windows is <em>\lib\native\MapRClient.dll</em> in the MapR				client jar file. For further information, see the following link from MapR: <a href="http://www.mapr.com/blog/basic-notes-on-configuring-eclipse-as-a-hadoop-development-environment-for-mapr" target="_blank">http://www.mapr.com/blog/basic-notes-on-configuring-eclipse-as-a-hadoop-development-environment-for-mapr</a>.</p> <p>Without adding the specified library or libraries, you may encounter the following				error: <span>no MapRClient in java.library.path</span>.</p> </li> <li> <p>Set the <span>-Djava.library.path</span> argument, for example, in the <span>Job Run VM arguments</span> area				of the <span>Run/Debug</span> view in the <span>Preferences</span> dialog box in the <span>Window</span> menu. This argument provides to the Studio the path to the				native library of that MapR client. This allows the subscription-based users to make				full use of the <span>Data viewer</span> to view locally in the				Studio the data stored in MapR.</p> </li> </ul><br><br>For further information about how to install a Hadoop distribution, see the manuals<br>corresponding to the Hadoop distribution you are using. |