Add a LindormTable data source

Updated at:

Lindorm Tunnel Service (LTS) connects to LindormTable through three protocols: Lindorm SQL (LQL), HBase-compatible mode, and Cassandra-compatible mode. Choose the protocol that matches your access method, then follow the steps below to add the data source.

Prerequisites

Before you begin, make sure you have:

Add a Lindorm SQL data source

Use this method to connect via the LQL protocol.

  1. In the left-side navigation pane, choose Data Source Manage > Add Data Source.

  2. On the Add data source page, configure the following parameters.

    Parameter

    Description

    Name

    A name for the data source. Supports letters and digits.

    Data Source Type

    Select LQL.

    Parameters

    Enter the connection string in the following format: { "clusterKey":"<endpoint>:30020:$username:$password" }

    Replace the placeholders with the actual values:

    Placeholder

    Description

    <endpoint>

    The private endpoint for HBase API for Java connections. Format: x.hbaseue.rds.aliyuncs.com. Port 30020 is used for HBase protocol connections. For details, see View endpoints.

    $username

    The username for LindormTable.

    $password

    The password for LindormTable.

  3. Click Add.

Add an HBase-compatible LindormTable data source

Use this method to connect via the HBase protocol (Enhanced Edition).

  1. In the left-side navigation pane, choose Data Source Manage > Add Data Source.

  2. On the Add data source page, configure the following parameters.

    Parameter

    Description

    Name

    A name for the data source. Supports letters and digits.

    Data Source Type

    Select Lindorm for HBase(Enhanced Edition).

    Parameters

    Enter the connection string in the following format: { "clusterKey":"{<endpoint>:30020}:{<username>}:{<password>}" }

    Cluster/etc/hosts (Only EMR or OpenSource Cluster needed)

    The /etc/hosts entries for your HBase cluster. Required only if you are connecting to a self-managed HBase cluster or an Elastic MapReduce (EMR) HBase cluster.

    Replace the placeholders with the actual values:

    Placeholder

    Description

    <endpoint>

    The private endpoint for HBase API for Java connections. Format: x.hbaseue.rds.aliyuncs.com. Port 30020 is used for HBase protocol connections. For details, see View endpoints.

    <username>

    The username for LindormTable.

    <password>

    The password for LindormTable.

  3. Click Add.

Add a Cassandra-compatible LindormTable data source

Use this method to connect via the Cassandra protocol.

  1. In the left-side navigation pane, choose Data Source Manage > Add Data Source.

  2. On the Add data source page, configure the following parameters.

    Parameter

    Description

    Name

    A name for the data source. Supports letters and digits.

    Data Source Type

    Select Lindorm for Cassandra.

    Parameters

    Enter the connection string in the following format. See the placeholder table below for details.

    Parameters format:

    {
      "cqlAddress": "<cassandra-endpoint>:9042",
      "username": "",
      "password": "",
      "clusterKey": "<hbase-endpoint>:30020:<username>:<password>"
    }

    Replace the placeholders with the actual values:

    Placeholder

    Description

    <cassandra-endpoint>

    The Cassandra-compatible private endpoint. Format: x.rds.aliyuncs.com. Port 9042 is used for Cassandra protocol connections. For details, see View endpoints.

    <hbase-endpoint>

    The private endpoint for HBase API for Java connections. Format: x.hbaseue.rds.aliyuncs.com. Port 30020 is used for HBase protocol connections.

    <username>

    The username for LindormTable.

    <password>

    The password for LindormTable.

  3. Click Add.

FAQ

Q: A "SeedServer not reachable" error occurs.

A: You can troubleshoot this issue using the following steps.

  • When adding a Lindorm data source in Lindorm Tunnel Service (LTS), if the client cannot access the Lindorm instance's SeedServer, it usually indicates that network connectivity to the Lindorm HBase Java API port (30020) is blocked or the access source has not been added to the Lindorm instance's whitelist.

  • To troubleshoot connectivity: Run `telnet <Lindorm HBase Java API connection address> 30020` on the ECS instance hosting LTS or on a machine within the same Virtual Private Cloud (VPC) to verify if the port is reachable. You can find the connection address and port on the database connection page of the Lindorm instance.

  • If the telnet command fails: Check the whitelist and security groups on the Lindorm instance's access control page to ensure that inbound access to port 30020 is permitted for the network segment or ECS instance where LTS is running. In addition to directly adding IP segments, you can add a security group to the whitelist to allow ECS instances within that security group to access the Lindorm instance.

  • Even if the client and the Lindorm instance are in the same VPC, the connection will still time out and fail if the security group or network ACL does not allow traffic on port 30020; therefore, these settings must also be checked.

  • For a comprehensive guide on troubleshooting network connectivity, please refer to Lindorm connection issues and solutions.