Connecting Tableau Desktop to AI DataLake Spark for Data Query and Analysis
This section describes how to install Tableau Desktop, configure Huawei Cloud AI DataLake JDBC driver and Tableau connector, and connect Tableau Desktop to AI DataLake in Windows for data query and analysis.
Preparations
- Environment requirements: Only Windows 10 and Windows 11 (64-bit) are supported.
- Tools
Tool
Description
Tableau Desktop
Tableau client
aidatalake-spark-jdbc-x.x.x.jar
Huawei Cloud AI DataLake Spark JDBC driver
aidatalake-spark-tableau-x.xx.zip
Tableau AI DataLake Spark connector plug-in
Precautions
- The connector path must be specified for Tableau Desktop using startup parameters. Otherwise, Tableau Desktop cannot identify the AI DataLake connector.
- The JDBC driver must be placed in the Tableau Drivers directory.
- Ensure that Huawei Cloud AI DataLake endpoint is accessible.
Step 1: Install Tableau Desktop
- Visit the page for downloading Tableau Desktop.
- Obtain the Tableau Desktop installation package.
- Double-click the installation program.
- Perform the following operations as prompted:
- Accept the license agreement.
- Select an installation type: typical or custom.
- Set the installation directory. The default path is recommended.
Step 2: Configure the AI DataLake Spark JDBC Driver
- Click aidatalake-spark-jdbc-x.x.x.jar to obtain the JDBC driver.
- Locate the Tableau Desktop installation directory.
The default path is C:\Program Files\Tableau\Tableau 2025.1.
- Return to the upper-level directory and go to the Drivers folder.
- Copy the JDBC driver JAR package to the Drivers directory.
Step 3: Configure the AI DataLake Tableau Connector
- Click aidatalake-tableau-x.x.x.zip to obtain the connector package.
- Extract the aidatalake-tableau-1.0.0 directory from the package.
- Place the above directory in any directory, for example, D:\tmp\Connectors.
Step 4: Configure the Tableau Desktop Startup Parameter
- Method 1 (recommended): shortcut
- Right-click Tableau Desktop and select More...
- Add the startup parameter to the target:
"C:\Program Files\Tableau\Tableau 2025.1\bin\tableau.exe" -DConnectPluginsPath="D:\tmp\Connectors"
- If the path contains spaces, enclose it in double quotation marks.
- There must be a space between the executable file path and the parameter.
- Click OK.
- Double-click Tableau Desktop to start it.
- Method 2: command line
tableau.exe -DConnectPluginsPath=D:\tmp\Connectors
Step 5: Create a AI DataLake Spark Connection
- Start Tableau Desktop.
- In the navigation pane on the left, choose To a Server > More.
- Search for aidatalake. Figure 1 Searching for aidatalake
- Select AIDataLake Spark JDBC by HuaweiCloud.
- Set connection parameters.
Table 1 Parameters for connecting Tableau Desktop to AI DataLake Field
Description
Server
Server address
Format: {AIDataLake Spark Endpoint URL}/{ProjectID}
Username
AK and SK of the Huawei Cloud account
For details about how to obtain the AK and SK, see AK/SK Obtaining.
Password
The following table lists the server parameters.Table 2 Server address parameters Parameter
Description
Example Value
AIDataLake Spark Endpoint URL
URL of the AI DataLake service
An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.
https://aidatalake-test.cn-north-7.myhuaweicloud.com
ProjectID
AI DataLake project ID
Hover the cursor over the account information in the upper right corner of the AI DataLake console, click My Credentials, and obtain the project ID.
0b33ea2a7e******4c009bb05076d
workspaceId
AI DataLake workspace ID
Log in to the AI DataLake console and find the target workspace ID on the workspace management page.
spark
lakeformationInstanceId
LakeFormation instance ID
For how to obtain the ID, see
ae6dd098-***-*****-c02***def36d
endpointName
Spark endpoint name of the AI DataLake service
Log in to the AI DataLake console, choose Engine Endpoints > Spark, and find the target Spark endpoint name.
spark-sql-test
regionName
Region name of AI DataLake
cn-north-7
catalogName
Data catalog name
- This parameter is mandatory when a LakeFormation catalog is used. Set it to the corresponding LakeFormation catalog name.
When querying a LakeFormation catalog, ensure that there is a default database in the catalog.
- If this parameter is not specified, an AI DataLake catalog is used. This parameter is not required when an AI DataLake catalog is used.
For example, if a LakeFormation catalog named lfcatalog is used, the configuration is as follows: catalog=lfcatalog.
ObsEndPoint
OBS endpoint
For how to obtain it, see Endpoints and Domain Names.
-
- This parameter is mandatory when a LakeFormation catalog is used. Set it to the corresponding LakeFormation catalog name.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot