Welcome to the Alteryx Knowledge Base

Connecting to Hadoop
user

Created/Edited - 5/4/2026 by Henriette Haigh | Alteryx

Procedure

Connecting to Hadoop

 

In this article, we will go over how to connect to the various flavors of Hadoop in Alteryx.

 

To use a Saved Data Connection to connect to a database, use the "Saved Data Connections" option in the Input Data Tool and then navigate to the connection you wish to use:

 

2-14-2017 2-56-58 PM.png

 

Note: Alteryx versions≥11.0 and include functionality to manage data connections through the Gallery as well as through Options > Advanced Options > Manage Data Connections.Aliases created in prior versions will be carried forward as connections stored on the local computer.

 

Creating a new connection to HDFS

 

1. Bring an Input Tool to the canvas and navigate to the Hadoop option.

Select the little arrow under "Connect a File or Database", thenHadoop.

 

2-14-2017 3-03-38 PM.png

 

2.Enter the necessary information to connect

Your HDFS/Hadoop Admin/IT contact will need to provide the hostname to use as well as the connection method (HTTPFS, WebHDFS, or Knox Gateway), and the username and password (if needed). Alteryx provides the default port. If your company uses a different port, you will need to edit this here:

 

2-14-2017 3-04-41 PM.png

Alteryx uses the host and port to generate the URL to be used for the connection. You also have the option to edit the URL should this be required.

Clicking"Test" will test the connection to make sure it works.

 

3. Click OK and select the file to be read in

Clicking"OK" will bring up a new window with all files available in HDFS (Note: Alteryx currently supports .csv and .avro files in HDFS). You can either enter the file name manually or use the browse functionality to browse to the file.

2-14-2017 3-18-16 PM.png

Creating a Saved Data Connection for HDFS

Once you have successfully established a connection to HDFS, you should save the connection for future use. The easiest way to do that is as follows:

 

1. Copy the connection string now visible in the Input Tool

2-14-2017 3-24-04 PM.png

 

2. Open the Data Connections Manager

Go to Options > Advanced Options > Manage Data Connections and select Add Connection > Other

2-14-2017 3-27-31 PM.png

 

3. Enter a connection name and connection string and hit save

2-14-2017 3-32-25 PM.png

 

4. The HDFS connection will now be available in both Input and Output Tools to use under Saved Data Connections

 

Creating a new connection to Hive/Impala/Spark

To connect to Hive/Impala/Spark an ODBC driver is required which can be downloaded from the Alteryx drivers download page.

Once the driver has been downloaded, a new DSN needs to be set upthrough the Windows ODBC Data SourcesAdministrator (Control Panel > System and Security > Administrative Tools > Data Sources (ODBC)). YourHDFS/Hadoop Admin/IT contact might need to provide necessary hostnames/user credentials/etc. to connect.

Once aDSN has been set up and tested through the Data Source Administrator, you are ready to connect through Alteryx.

 

1. Add a new Input Tool to the canvas and browse to the ODBC connections.

Select the little drop down as you did for the HDFS connection, then go to Other Databases > ODBC2-14-2017 3-46-16 PM.png

 

2. Select theData Source Name

In the ODBC connection window, select theDSN that was set up through the Windows ODBC Data SourcesAdministrator and enter username/password as needed

2-14-2017 3-56-37 PM.png

3. Enter/Build your query

Use the Tables, Visual Query Builder, or SQL Editor tabs to create the query reading in the data from Hadoop to Alteryx.

Note: As a new feature in Alteryx 11 the Visual Query Builder does not load automatically for all databasesbecause it can be slow to load (e.g. large schemas in Hive). Click the "Load" button to load tables into the Visual Query Builder.

If the Visual Query Builder is blank after clicking the "Load" button, try checking "Get Tables with Query" in the Advanced options in your ODBC DSN. With the option checked, the driver uses the SHOW TABLES query to retrieve table names. Without it checked, thedriver uses the GetTables Thrift API call to retrieve table names.

2-14-2017 4-12-59 PM.png

Creating a Saved Data Connection for ODBC connections to Hive/Impala/Spark

 

1. Open the Data Connections Manager

Go to Options > Advanced Options > Manage Data Connections and select Add Connection > Other

2-14-2017 3-27-31 PM.png

 

 

2. Enter a connection name and select ODBC as the connection type

2-14-2017 4-33-36 PM.png

 

 

3. Select the Data Source Name

In the ODBC connection window, select theDSN that was set up through the Windows ODBC Data SourcesAdministrator and enter username/password as needed

2-14-2017 4-37-22 PM.png

 

 

4. The connection will now be available in both Input and Output tools to use under Saved Data Connections

Was this article helpful?