> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/connecting-to-a-hadoop-cluster-with-the-pdi-client-article/adding-a-cluster-connection-connect-to-a-hadoop-cluster-with-the-pdi-client/add-a-cluster-connection-manually-add-hadoop-cluster-connection.md).

# Add a cluster connection manually

To add a cluster connection manually, you need access to the location of the required `site.xml` files, which are typically provided by your cluster administrator. If you are using high availability (HA) clusters, you must manually add the connection information using this method.

This task assumes you are in the PDI client.

Perform the following steps to manually add a named connection in the Hadoop Clusters dialog box.

1. In the PDI client, create a new job or transformation or open an existing one.
2. Click the **View** tab and then right-click the **Hadoop Clusters** folder.

   ![View tab of New Hadoop Cluster command](/files/5ktHtEnfE6pOZcPzknb0)
3. From the menu that displays, click **New cluster**.

   The Hadoop Clusters dialog box appears.
4. Enter the connection information from your cluster administrator in the Hadoop Clusters dialog box.

   **Note:** As a best practice, use Kettle variables for each connection parameter value to reduce risks associated with running jobs and transformations in environments that are disconnected from the repository.

   ![Hadoop New cluster dialog box](/files/BGVAfo1480bB1i2poapc)

| Option                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Cluster Name**                                         | <p>Enter the name you want to assign to the cluster connection. <strong>Note:</strong> Valid cluster names may include uppercase and lowercase letters, numbers, and hyphens. However, the cluster name cannot end with a hyphen. To ensure a valid cluster name, do not use any other symbols, punctuation characters, or blank spaces.</p><p>After you create the connection, you can locate this named connection in the <strong>View</strong> tab on the PDI client.</p>                                                                                  |
| **Driver** and **Version**                               | Select the distribution of Hadoop on your cluster and its version number. Pentaho ships with supported versions of Amazon EMR, Cloudera, Google Dataproc, and Hortonworks that you can install.                                                                                                                                                                                                                                                                                                                                                               |
| **Where are your site XML files? (Optional)**            | Enter the location of the `site.xml` files provided by your cluster administrator. Click \*\*Browse to select file(s)\*\*and browse to the directory containing your `site.xml` files. Pentaho creates the applicable directory on the machine where the PDI client is located and copies the `site.xml` files to that directory. If you leave this option blank, Pentaho creates the directory for the distribution and version of Hadoop you selected in the **Driver** and **Version** options. You must then copy the `site.xml` files to that directory. |
| **Hostname (HDFS)**                                      | Enter the hostname for the HDFS node in your Hadoop cluster.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **Port (HDFS)**                                          | <p>Enter the port for the HDFS node in your Hadoop cluster.</p><p><strong>Note:</strong> If your cluster is enabled for high availability (HA), then you do not need a port number. Clear the port number.</p>                                                                                                                                                                                                                                                                                                                                                |
| **Username (HDFS)** and **Password (HDFS)**              | Enter the user name and password for the HDFS node, which are provided by your cluster administrator.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| \*\*Hostname (JobTracker )\*\*and **Port ( JobTracker)** | Enter the hostname and port for the JobTracker node in your Hadoop cluster. If you have a separate job tracker node, enter the hostname here.                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Hostname (ZooKeeper)** and **Port (Zookeeper)**        | Enter the hostname and port for the Zookeeper node in your Hadoop cluster. Supply these options only if you want to connect to a Zookeeper service.                                                                                                                                                                                                                                                                                                                                                                                                           |
| **URL (Oozie)**                                          | Enter the Oozie client address. Supply this address only if you want to connect to the Oozie service.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Bootstrap servers (Kafka)**                            | Enter the host/port pair(s) for the initial connection to the Kafka cluster. Use a comma-separated list for multiple servers, for example, ‘`host1:port1,host2:port2`’. Although you do not need to include all the servers used for Kafka, you might want to include more than one in the event that a server is down.                                                                                                                                                                                                                                       |

5\. Click \*\*Next\*\* and specify the security option for your cluster.

```
-   If your Hadoop cluster is non-secure, select **None** and click **Next** to [test your connection](Test%20the%20cluster%20connection%20(Add%20Hadoop%20cluster%20connection).md).
-   If your Hadoop cluster is secure, you need to add security to your cluster connection. See [Add security to cluster connections](Secure%20cluster%20connections%20(Add%20Hadoop%20cluster%20connection).md) for instructions.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/advanced-topics-pentaho-data-integration-overview/connecting-to-a-hadoop-cluster-with-the-pdi-client-article/adding-a-cluster-connection-connect-to-a-hadoop-cluster-with-the-pdi-client/add-a-cluster-connection-manually-add-hadoop-cluster-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
