After you add an HBase data source to a Lindorm Tunnel Service (LTS) instance, you can migrate or synchronize data from the source. This topic describes how to add an HBase data source to an LTS instance.
Types of HBase data sources and methods to add a data source
Type of HBase data source | Method to add an HBase data source |
ApsaraDB for HBase Standard Edition cluster |
|
ApsaraDB for HBase Performance-enhanced Edition cluster | |
Self-managed HBase cluster | For more information, see Use LTS to add an HBase data source. |
E-MapReduce (EMR) HBase cluster |
Use the Lindorm console to add an HBase data source
Log on to the Lindorm console.
On the Instances page, click the ID of an instance whose engine type is LTS.
In the left-side navigation pane, click Data Sources.
On the HBase Data Source tab, click Add Data Source.
In the Add Data Source dialog box, configure the parameters described in the following table.
Parameter
Description
Instance Type
Select HBase Enhanced Edition or ApsaraDB for HBase Standard Edition.
Region
Select the region where your data source cluster is deployed.
Instance ID
Select the ID of the data source cluster.
NoteMake sure that the data source cluster and the LTS instance are deployed in the same VPC.
Click OK. If the state of the HBase data source is Associated, the data source is added.
Use LTS to add an HBase data source
Activate LTS and log on to the web UI of LTS. For more information, see Purchase the LTS service and log on to the LTS web UI.
In the left-side navigation pane of the LTS web UI, choose .
On the Add data source page, configure the parameters. The following table describes the parameters.
Parameter
Description
Name
Specify the name of your HBase data source.
Data Source Type
Specify this parameter based on the version of the HBase data source. Valid values:
HBase1x: specifies that the HBase data source is an ApsaraDB for HBase V1.0 cluster.
HBase2x: specifies that the HBase data source is an ApsaraDB for HBase V2.0 cluster.
HBase098: specifies that the HBase data source is a self-managed HBase V0.98 cluster.
HBase094: specifies that the HBase data source is a self-managed HBase V0.94 cluster.
Parameters
Configure the parameters that are used to connect to the HBase data source.
{ "clusterKey":"xxxzkhost1,xxxzkhost2,xxxzkhost3:2181:/xxxhbase", "hbaseDir":"/xxxhbase", "hdfsUri":"hdfs://xxxnn1:8020,xxxnn2:8020" }
clusterKey: the connection information about the HBase data source. Specify this parameter in the following format:
ZooKeeper node: ZooKeeper port: The path of the parent node used by the HBase data source in ZooKeeper
. The path of the parent node used by the HBase data source is specified by thezookeeper.znode.parent
option of the ApsaraDB for HBase cluster.hbaseDir: the HDFS path that corresponds to the data of the HBase data source. This path is specified by the
hbase.rootdir
option of the ApsaraDB for HBase cluster.NoteThe value of this parameter is the lowest-level directory in which the HBase data source is located and does not include the
hdfs://xx
prefix. For example, if the HDFS path that corresponds to the data of the HBase data source ishdfs://hbase/hbase
, you can set this parameter to/hbase
.hdfsUri: the HDFS connection URL of the HBase data source.
If you use a high-availability HBase data source, specify this parameter in the
hdfs://namenode1:port,namenode2:port
format.If you use a single-node HBase data source, specify this parameter in the
hdfs://namenode:port
format.
NoteSpecify the complete domain name of the data source for
namenode
.
Cluster/etc/hosts (Only EMR or OpenSource Cluster needed)
Configure the
/etc/hosts
configuration file of the HBase cluster. The hostnames and IP addresses of the nodes in the HBase cluster are specified in this file.NoteThis parameter is required if you add a self-managed HBase cluster or an EMR HBase cluster as the data source.
Click Add.