Help Center/ AI DataLake/ Best Practices/ Connecting BI Tools to AI DataLake Spark for Data Analysis/ Connecting Tableau Server to AI DataLake Spark for Data Query and Analysis
Updated on 2026-11-06 GMT+08:00

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

  1. Visit the Tableau Server download page to obtain the Tableau Server installation package.
  2. Log in to the target computer as a user with administrator permissions and install Tableau Server.
  3. 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.
  4. 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

  1. Click aidatalake-spark-jdbc-x.x.x.jar to obtain the JDBC driver.
  2. Locate the Tableau Server installation directory. The default path is as follows:

    • Windows : C:\Program Files\Tableau\Tableau Server
    • Linux: /opt/tableau/tableau_server

  3. 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

  4. 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

  1. Click aidatalake-tableau-x.x.x.zip to obtain the connector package.
  2. Extract the aidatalake-tableau-1.0.0 directory from the package.
  3. 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
  4. Set native_api.connect_plugins_path.
    Table 1 Set native_api.connect_plugins_path.

    Type

    Configuration Description

    Windows

    1. Configure parameters.

      tsm configuration set -k native_api.connect_plugins_path -v "C:\Program Files\Tableau\Connectors"

      If a configuration error occurs in this step, try adding --force-keys to the end of the command.

    2. View the parameters waiting to take effect.

      tsm pending-changes list

    3. Apply the changes.

      tsm pending-changes apply

      This will restart the server. When prompted, enter y to confirm the restart.

    Linux

    1. Configure parameters.

      tsm configuration set -k native_api.connect_plugins_path -v /opt/tableau/connectors

      tsm configuration set -k native_api.disable_connectors_security -v true

      If a configuration error occurs in this step, try adding --force-keys to the end of the command.

    2. View the parameters waiting to take effect.

      tsm pending-changes list

    3. Apply the changes.

      tsm pending-changes apply

      This will restart the server. When prompted, enter y to confirm the restart. If the server does not restart, run tsm restart to manually restart it.

Step 4: Log In to the Tableau Server Admin Area

  1. Enter http://<Server IP address> and press Enter.
  2. Enter the server administrator credentials you created during the Tableau Server installation.

    Figure 2 Entering the administrator credentials

  3. Click New and select Published Data Source.

    Figure 3 Selecting Published Data Source

  4. On the Connectors page, click AIDataLake Spark JDBC by HuaweiCloud.

    Figure 4 Clicking AIDataLake Spark JDBC by HuaweiCloud

  5. 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

    How Do I Obtain the ID of a LakeFormation Instance?

    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.

    -