Updated on 2026-06-27 GMT+08:00

Configuring HetuEngine to Interconnect with Paimon

Scenarios

This section describes how to use the HetuEngine client to configure the interconnection with the cluster where Paimon data is stored.

Notes and Constraints

  • Paimon tables must be created in a dedicated database using a location path that explicitly includes the warehouse path, database name, and .db suffix, for example Warehouse path/Database name.db. Do not use the default database. Doing so will cause HetuEngine queries to fail with an error indicating that the table does not exist.
  • The paimon.warehouse parameter in the paimon.properties configuration file must match the actual warehouse path of your Paimon tables. If these paths do not match, HetuEngine queries will fail with an error indicating that the table does not exist.

Configuring Paimon Data Sources for Interconnection with Clusters in Security Mode

Prepare the core-site.xml and hdfs-site.xml configuration files.

  1. Log in to MRS Manager of the cluster where the Paimon data source is located.
  2. In the upper right corner of the homepage, click Download Client and follow the prompts to download the full package to a local directory. For example, the downloaded software package is FusionInsight_Cluster_1_Services_Client.tar.
  3. Decompress the downloaded client file package and obtain the core-site.xml and hdfs-site.xml configuration files in the FusionInsight_Cluster_1_Services_ClientConfig/HDFS/config directory.
  4. Change the value of dfs.client.failover.proxy.provider.NameService name in the hdfs-site.xml configuration file to org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.

    For example, if the NameService name is hacluster, update the configuration as follows:

    <property>
    <name>dfs.client.failover.proxy.provider.hacluster</name>
    <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
    </property>

Prepare the user.keytab and krb5.conf files for the user accessing the Paimon data source.

  1. Log in to MRS Manager of the cluster where the Hive data source is located.
  2. Choose System > Permission > User.
  3. Locate the row that contains the target data source user (for example, paimonuser), click More in the Operation column, and select Download Authentication Credential.
  4. Decompress the downloaded package to obtain the user.keytab and krb5.conf files.

Prepare the paimon.properties file.

  1. Create a paimon.properties file in your local directory with the following content:

    connector.name=paimon
    paimon.catalog.type=hive
    paimon.warehouse=hdfs://hacluster/path/to/warehouse
    hive.metastore=thrift
    hive.metastore.uri=thrift://192.168.43.223:21088,thrift://192.168.43.244:21088
    hive.metastore.authentication.type=KERBEROS
    hive.metastore.service.principal=hive/hadoop.3b524ed0_ddfa_43da_dbc4_8977ee1dc42a.com@3B524ED0_DDFA_43DA_DBC4_8977EE1DC42A.COM
    hive.metastore.client.principal=paimonuser/hadoop.3b524ed0_ddfa_43da_dbc4_8977ee1dc42a.com@3B524ED0_DDFA_43DA_DBC4_8977EE1DC42A.COM
    hive.metastore.client.keytab=/user/hetuserver/fiber/catalog/paimon/user.keytab
    hive.hdfs.authentication.type=KERBEROS
    hive.config.resources=/user/hetuserver/fiber/catalog/paimon/hdfs-site.xml,/user/hetuserver/fiber/catalog/paimon/core-site.xml
    hive.hdfs.trino.principal=paimonuser/hadoop.3b524ed0_ddfa_43da_dbc4_8977ee1dc42a.com@3B524ED0_DDFA_43DA_DBC4_8977EE1DC42A.COM
    hive.hdfs.trino.keytab=/user/hetuserver/fiber/catalog/paimon/user.keytab

    Key parameters:

    • connector.name: Name of the Trino Paimon plug-in.
    • paimon.catalog.type: Paimon metadata type. Currently, only Hive is supported.
    • paimon.warehouse: Actual storage path of the Paimon tables in the warehouse.
    • hive.metastore.client.principal and hive.hdfs.trino.principal: User principal (for example, paimonuser) used to access the Metastore or HDFS.
    • hive.metastore.client.keytab/hive.hdfs.trino.keytab: Path to the user keytab file required for Metastore or HDFS access. These paths must use the prefix /user/hetuserver/fiber/catalog/paimon.
    • hive.config.resources: Paths to the configuration resource files (including core-site.xml and hdfs-site.xml) required to access HDFS. These paths must use the prefix /user/hetuserver/fiber/catalog/paimon and be separated by commas (,).

Configure the connection.

  1. Log in to the node where the cluster client is installed and run the following command to create a directory for the interconnection files (for example, /opt/paimon):

    mkdir /opt/paimon

  2. Upload the prepared core-site.xml, hdfs-site.xml, user.keytab, krb5.conf, and paimon.properties files to the /opt/paimon directory.
  3. Switch to the client installation directory, configure environment variables, and authenticate the user.

    cd Client installation directory

    Load the environment variables.

    source bigdata_env
    If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, skip this step:
    kinit User performing HetuEngine operations

  4. Run the following commands.

    1. Create an HDFS directory.
      hdfs dfs -mkdir /user/hetuserver/fiber/catalog/paimon
    2. Upload the core-site.xml, hdfs-site.xml, user.keytab, krb5.conf, and paimon.properties files to HDFS.
      hdfs dfs -put core-site.xml hdfs-site.xml user.keytab krb5.conf paimon.properties /user/hetuserver/fiber/catalog/paimon
    3. Modify the directory permission.
      hdfs dfs -chown -R hetuserver:hadoop /user/hetuserver/fiber/catalog/paimon

  5. Restart the HetuEngine compute instances on the HetuEngine web UI.

Configuring Paimon Data Sources for Interconnection with Clusters in Normal Mode

Prepare the core-site.xml and hdfs-site.xml configuration files.

  1. Log in to MRS Manager of the cluster where the Paimon data source is located.
  2. In the upper right corner of the homepage, click Download Client and follow the prompts to download the full package to a local directory. For example, the downloaded software package is FusionInsight_Cluster_1_Services_Client.tar.
  3. Decompress the downloaded client file package and obtain the core-site.xml and hdfs-site.xml configuration files in the FusionInsight_Cluster_1_Services_ClientConfig/HDFS/config directory.
  4. Change the value of dfs.client.failover.proxy.provider.NameService name in the hdfs-site.xml configuration file to org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.

    For example, if the NameService name is hacluster, update the configuration as follows:
    <property>
    <name>dfs.client.failover.proxy.provider.hacluster</name><value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value> 
    </property>

Prepare the paimon.properties file.

  1. Create the paimon.properties file in the local directory with content similar to the following:

    connector.name=paimon
    paimon.catalog.type=hive
    paimon.warehouse=hdfs://hacluster/path/to/warehouse
    hive.metastore=thrift
    hive.metastore.uri=thrift://192.168.43.223:21088,thrift://192.168.43.244:21088
    hive.config.resources=/user/hetuserver/fiber/catalog/paimon/hdfs-site.xml,/user/hetuserver/fiber/catalog/paimon/core-site.xml

    Key parameters:

    • connector.name: Name of the Trino Paimon plug-in.
    • paimon.catalog.type: Paimon metadata type. Currently, only Hive is supported.
    • paimon.warehouse: Storage path for the Paimon table in the warehouse.
    • hive.config.resources: Paths to the configuration resource files (including core-site.xml and hdfs-site.xml) required to access HDFS. These paths must use the prefix /user/hetuserver/fiber/catalog/paimon and be separated by commas (,).

Configure the connection.

  1. Log in to the node where the cluster client is installed and run the following command to create a directory for the interconnection files (for example, /opt/paimon):

    mkdir /opt/paimon

  2. Upload the prepared core-site.xml, hdfs-site.xml, and paimon.properties files to the /opt/paimon directory.
  3. Run the following commands to go to the client installation directory and configure environment variables:

    cd Client installation directory

    Load the environment variables.

    source bigdata_env

  4. Run the following commands.

    1. Create an HDFS directory.
      hdfs dfs -mkdir /user/hetuserver/fiber/catalog/paimon
    2. Upload the core-site.xml, hdfs-site.xml, and paimon.properties files to HDFS.
      hdfs dfs -put core-site.xml hdfs-site.xml paimon.properties /user/hetuserver/fiber/catalog/paimon

  5. Restart the HetuEngine compute instances on the HetuEngine web UI.

Supported Syntax and Data Types

  • Syntax

    After connecting the Paimon data source, you can perform the following operations:

    • SELECT
    • DESCRIBE
    • SHOW CATALOGS
    • SHOW COLUMNS
    • SHOW CREATE SCHEMA
    • SHOW CREATE TABLE
    • SHOW SCHEMAS
    • SHOW TABLES
  • Data Types

    For details about the data types Paimon supports when connecting to Trino, see Table 1. Other types, such as MAP, LIST, and STRUCT, are not supported.

    Table 1 Data type mapping between Paimon and Trino

    Paimon Type

    Trino Type

    BOOLEAN

    BOOLEAN

    TINYINT

    TINYINT

    SMALLINT

    SMALLINT

    INT

    INTEGER

    BIGINT

    BIGINT

    FLOAT

    REAL

    DOUBLE

    DOUBLE

    DECIMAL(p,s)

    DECIMAL(p,s)

    DATE

    DATE

    TIMESTAMP(n)

    TIMESTAMP(n)

    CHAR

    CHAR

    VARCHAR

    VARCHAR

    STRING

    VARCHAR

    BINARY

    VARBINARY

    MAP<kt, vt>

    MAP<kt, vt>

    ARRAY

    ARRAY

    STRUCT

    STRUCT