Connecting Tableau Server to AI DataLake Spark for Data Query and Analysis
This section describes how to install Tableau Server, configure Huawei Cloud AI DataLake driver and Tableau connector, and connect Tableau Server to Spark in Windows and Linux for data query and analysis.
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 installation path must be specified for Tableau Server. Otherwise, Tableau Server cannot identify the AI DataLake connector.
- The JDBC driver must be placed in the Tableau Drivers directory.
- If the path contains spaces, enclose it in double quotation marks.
- Ensure that Huawei Cloud AI DataLake endpoint is accessible.
Step 1: Install Tableau Server
- Visit the Tableau Server download page to obtain the Tableau Server installation package.
- Log in to the target computer as a user with administrator permissions and install Tableau Server.
- Perform the following operations as prompted:
- Set the installation directory. The default path is recommended.
- Select an installation type: typical or custom.
- Use the Authorization-To-Run (ATR) service to activate Tableau Server.
- Open Command Prompt and run tsm version to check whether tsm has been successfully installed.
If the version of tsm and that of Tableau Server are returned, the installation is successful.
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 Server installation directory. The default path is as follows:
- Windows : C:\Program Files\Tableau\Tableau Server
- Linux: /opt/tableau/tableau_server
- Return to the upper-level directory and go to the driver directory. (If there is no driver directory, create one.)
- Windows: Drivers directory
- Linux: tableau_driver/jdbc directory
- Copy the JDBC driver JAR package to this directory.
Example file storage path:
Windows:
Drivers
├─aidatalake-spark-jdbc-x.x.x.jar
Linux
tableau_driver
├─ jdbc
└─aidatalake-spark-jdbc-x.x.x.jar
For details, see Install Tableau Server package and start Tableau Services Manager.
Step 3: Configure the AI DataLake Spark 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 preceding file in the following directory (or any directory):
- Windows: C:\Program Files\Tableau\Connectors
- Linux: /opt/tableau/connectors Figure 1 Directory structure
- Set native_api.connect_plugins_path.
Step 4: Log In to the Tableau Server Admin Area
- Enter http://<Server IP address> and press Enter.
- Enter the server administrator credentials you created during the Tableau Server installation. Figure 2 Entering the administrator credentials
- Click New and select Published Data Source. Figure 3 Selecting Published Data Source
- On the Connectors page, click AIDataLake Spark JDBC by HuaweiCloud. Figure 4 Clicking AIDataLake Spark JDBC by HuaweiCloud
- Set connection parameters. Figure 5 Setting connection parameters
Table 2 Parameters for connecting Tableau Server to AI DataLake Field
Description
Server
Server address. The format is as follows:
{AIDataLake Spark Endpoint}/{ProjectID}
username
Username
Password
User password
The following table lists the server parameters.
Table 3 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
ID of the project to which AI DataLake resources belong
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