# tHiveConfiguration properties for Apache Spark Batch

These properties are used to configure tHiveConfiguration running in the Spark Batch Job framework.

The Spark Batch tHiveConfiguration component belongs to the Storage family.

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

## Basic settings

| Properties | Description |
| --- | --- |
| Property Type | Select the way the connection details<br>will be set.<br><br><ul> <li> <p> <span>Built-In</span>: The connection details will be set                                locally for this component. You need to specify the values for all                                related connection properties manually.</p> </li> <li> <p> <span>Repository</span>: The connection details stored                                centrally in <span><span>Repository</span><abbr> &gt; </abbr><span>Metadata</span></span> will be reused by this component. </p> <p>You need to click                                the <span>[...]</span> button next to it and in the pop-up                                    <span>Repository Content</span> dialog box, select the                                connection details to be reused, and all related connection                                properties will be automatically filled in.</p> </li> </ul> |
| Distribution and Version | Select the Hadoop distribution you are using for Hive.<br><br>Note that the Hive version required by Spark must be 0.13+.<br><br>Select the HBase version of the distribution you are using. |
| Hive thrift<br>metastore | Enter the location of the metastore of the Hive system to be used by<br>specifying the name of its Host and the number<br>of its listening Port. If HA metastore has been<br>defined for this Hive system, select the Enable high<br>availability check box and in the field that is displayed, enter the<br>URIs of the multiple remote metastore services, each being separated with a<br>comma(,). |
| Use Kerberos authentication | If you are accessing a Hive metastore running with Kerberos security,<br>select this checkbox.<br><br>Then you need to enter the Hive principal that should have been defined in<br>the *hive-site.xml* file of the cluster to be used.<br><br><br>Hive principal uses the value<br>of *hive.metastore.kerberos.principal*. This is<br>the service principal of the Hive metastore. |
| 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> |
| Force MapR Ticket authentication | If this cluster is a MapR cluster of the version 5.0.0 or later, you can set the<br>MapR ticket authentication configuration in addition or as an alternative by following<br>the explanation in [Connecting to a security-enabled MapR](https://help.qlik.com/talend/en-US/components/8.0/mapr/connecting-to-security-enabled-mapr).<br><br>Keep in mind that this configuration generates a new MapR security ticket for the username<br>defined in the Job in each execution. If you need to reuse an existing ticket issued for the<br>same username, leave both the Force MapR ticket<br>authentication check box and the Use Kerberos<br>authentication check box clear, and then MapR should be able to automatically<br>find that ticket on the fly. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used with no need to be connected to other<br>components.<br><br>You need to drop tHiveConfiguration<br>along with the Hive-related subJob to be run in the same Job so that the<br>configuration is used by the whole Job at runtime.<br><br>This component, along with the Spark Batch component Palette it belongs to,<br>appears only when you are creating a Spark Batch Job.<br><br>Note that in this documentation, unless otherwise explicitly stated, a<br>scenario presents only Standard Jobs, that is to<br>say traditional<br>Talend<br>data integration Jobs. |
| Spark Connection | In the Spark<br>Configuration tab in the Run<br>view, define the connection to a given Spark cluster for the whole Job. In<br>addition, since the Job expects its dependent jar files for execution, you must<br>specify the directory in the file system to which these jar files are<br>transferred so that Spark can access these files:<br><br><ul> <li> <span>Yarn mode</span> (Yarn client or Yarn cluster):<ul> <li> <p>When using Google Dataproc, specify a bucket in the                                            <span>Google Storage staging bucket</span>                                        field in the <span>Spark configuration</span>                                        tab.</p> </li> <li> <p>When using HDInsight, specify the blob to be used for Job                                        deployment in the <span>Windows Azure Storage                                            configuration</span> area in the <span>Spark                                            configuration</span> tab.</p> </li> <li> <p>When using on-premises distributions, use                                        the configuration component corresponding to the file system                                        your cluster is using. Typically, this system is HDFS and so                                        use <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration">tHDFSConfiguration</a>.</p> </li> </ul> </li> <li> <p> <span>Standalone mode</span>: use the                            configuration component corresponding to the file system your cluster is                            using, such as <a href="https://help.qlik.com/talend/r/en-US/8.0/components/hdfs/thdfsconfiguration-properties-for-apache-spark-batch">tHDFSConfiguration Apache Spark Batch</a> or <a href="https://help.qlik.com/talend/r/en-US/8.0/components/amazon-s3/ts3configuration-properties-for-apache-spark-batch">tS3Configuration Apache Spark Batch</a>.</p> <p>If you are using Databricks without any configuration component present                            in your Job, your business data is written directly in DBFS (Databricks                            Filesystem).</p> </li> </ul><br><br>This connection is effective on a per-Job basis. |