Add an HBase data source
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
Log on to the Lindorm console.
-
On the Instances page, click the instance ID of your LTS instance.
-
In the left-side navigation pane, choose Data Sources.
-
On the HBase Data Source page, click Add Data Source.
-
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.
NoteMake sure that the selected ApsaraDB for HBase instance and the LTS instance are in the same VPC.
-
Click Determine. A status of Associated indicates that the HBase data source has been added.
Add via Lindorm Tunnel Service (LTS)
-
Activate and log on to Lindorm Tunnel Service (LTS). For more information, see Purchase and log on to LTS.
-
In the left-side navigation pane, choose .
-
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 thezookeeper.znode.parentparameter in the HBase cluster's configuration.ImportantAppend 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.rootdirparameter in the HBase cluster's configuration.NoteSpecify only the data source directory, without the
hdfs://prefix. For example, if the path ishdfs://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
8020to eachnamenode. -
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/hostsfile from the HBase cluster. This file maps hostnames to IP addresses for each node in the cluster.NoteThis parameter is required for a self-managed HBase cluster or an EMR HBase cluster.
-
-
Click Add.