# tCassandraConfiguration properties for Apache Spark Batch

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

The Spark Batch tCassandraConfiguration component belongs to the Storage and the Databases families.

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

This component is not supported with Spark 4.0.x.

## Basic settings

| Properties | Description |
| --- | --- |
| 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. |
| Host | Enter the URL of the Cassandra server you need the Job to connect to. |
| Port | Type in the listening port number of the Cassandra server to be connected to. |
| Username | Fill in this field with the username for the Cassandra authentication. |
| Password | Fill in this field with the password for the Cassandra authentication.<br><br>To enter the password, click the [...] button<br>next to the password field, enter the password in double quotes in the pop-up dialog box,<br>and click OK to save the settings. |
| Configuration | Add the Spark properties relating to Cassandra to this table and give them the values you<br>want to use in order to override the default ones at runtime.<br><br><ul> <li> <p>For example, if you need to define the Cassandra consistency level for                    reading, select the <em>input_consistency_level</em>                    property in the <span>Property name</span> column and enter                    the numeric level value in the <span>Value</span>                    column.</p> </li> </ul><br><br>The following list presents the numerical values you can put and the consistency levels<br>they signify:<br><br><ul> <li> <p>0: ANY,</p> </li> <li> <p>1: ONE,</p> </li> <li> <p>2: TWO,</p> </li> <li> <p>3: THREE,</p> </li> <li> <p>4: QUORUM,</p> </li> <li> <p>5: ALL,</p> </li> <li> <p>6: LOCAL_QUORUM,</p> </li> <li> <p>7: EACH_QUORUM,</p> </li> <li> <p>8: SERIAL,</p> </li> <li> <p>9: LOCAL_SERIAL,</p> </li> <li> <p>10: LOCAL_ONE</p> </li> </ul><br><br><br>For further details about each of the consistency policies, see Datastax<br>documentation about Cassandra.<br><br>For further information for all the properties listed in this table and their default<br>values, see https://github.com/datastax/spark-cassandra-connector/blob/master/doc/1\_connecting.md. |

## 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 tCassandraConfiguration along with the<br>Cassandra-related subJob to be run in the same Job so that the configuration is used by the<br>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> <div> <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>When using Altus, specify the S3 bucket or the Azure                                    Data Lake Storage for Job deployment in the <span>Spark                                        configuration</span> tab.</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> </div> </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. |