Add an HBase data source

Updated at:

Add an HBase data source to Lindorm Tunnel Service (LTS) to migrate or synchronize data. This topic describes the process.

HBase data source types and methods

Type

Method

ApsaraDB for HBase Standard Edition

ApsaraDB for HBase Performance-enhanced Edition

self-managed HBase cluster

See Add an HBase data source in Lindorm Tunnel Service (LTS).

EMR HBase cluster

Add via Lindorm console

  1. Log on to the Lindorm console.

  2. On the Instances page, click the instance ID of your LTS instance.

  3. In the left-side navigation pane, choose Data Sources.

  4. On the HBase Data Source page, click Add Data Source.

  5. In the Add Data Source dialog box, configure the following parameters.

    Parameter

    Description

    Instance Type

    Select HBase Enhanced Edition or ApsaraDB for HBase Standard Edition.

    Region

    Select the region where the target instance is located.

    Instance ID

    Select the ID of the target instance.

    Note

    Make sure that the selected ApsaraDB for HBase instance and the LTS instance are in the same VPC.

  6. Click Determine. A status of Associated indicates that the HBase data source has been added.

Add via Lindorm Tunnel Service (LTS)

  1. Activate and log on to Lindorm Tunnel Service (LTS). For more information, see Purchase and log on to LTS.

  2. In the left-side navigation pane, choose Data Sources > Add Data Source.

  3. On the Add Data Source page, configure the following parameters.

    Parameter

    Description

    Name

    Specify a custom name for the data source.

    Data source type

    Select the data source type that corresponds to your HBase version. The following options are available:

    • HBase1x: For HBase 1.0 data sources.

    • HBase2x: For HBase 2.0 data sources.

    • HBase098: For self-managed HBase 0.98 clusters.

    • HBase094: For self-managed HBase 0.94 clusters.

    Data Source Parameters

    Enter the parameters for the HBase data source.

    {
      "clusterKey":"<zkhost1>,<zkhost2>,<zkhost3>:2181:<znode-parent-path>",
      "hbaseDir":"<hbase-root-directory>",
      "hdfsUri":"hdfs://<namenode1>:8020,<namenode2>:8020"
    }
    • clusterKey: The connection information for the HBase data source, in the format: ZK-node:ZK-port:znode-parent-path. The znode parent path corresponds to the zookeeper.znode.parent parameter in the HBase cluster's configuration.

      Important

      Append port 2181 only to the last zkhost. Do not append it to the other hosts.

    • hbaseDir: The HDFS path of the HBase data source. This path corresponds to the hbase.rootdir parameter in the HBase cluster's configuration.

      Note

      Specify only the data source directory, without the hdfs:// prefix. For example, if the path is hdfs://hbase/hbase, enter /hbase.

    • hdfsUri: The HDFS connection URL of the self-managed HBase cluster.

      • For a high-availability instance, use the format: hdfs://namenode1:port,namenode2:port.

      • For a non-high-availability instance, use the format: hdfs://namenode:port.

      Important
      • Append port 8020 to each namenode.

      • Use a fully qualified domain name (FQDN) for the namenode.

    Cluster /etc/hosts (required for self-managed and EMR clusters)

    Provide the contents of the /etc/hosts file from the HBase cluster. This file maps hostnames to IP addresses for each node in the cluster.

    Note

    This parameter is required for a self-managed HBase cluster or an EMR HBase cluster.

  4. Click Add.