After you add an HBase data source to a Lindorm Tunnel Service (LTS) instance, you can perform data migration and data synchronization between the data source and the instance. 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. The following table describes the parameters.
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. Note Make 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 LTS console. For more information, see Purchase an LTS instance and log on to the LTS web UI.
- In the left-side navigation pane of the LTS console, choose .
- On the Add data source page, configure the parameters described in the following table.
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 cluster of V1.0.
- HBase2x: specifies that the HBase data source is an ApsaraDB for HBase cluster of V2.0.
- HBase098: specifies that the HBase data source is a self-managed HBase cluster of V0.98.
- HBase094: specifies that the HBase data source is a self-managed HBase cluster of V0.94.
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.Note The value of this parameter is the lowest-level directory in which the HBase data source is located and does not include thehdfs://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.
- If you use a high-availability HBase data source, specify this parameter in the
Cluster/etc/hosts (only for self-managed or EMR HBase clusters) 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. Note This parameter is required if you use a self-managed HBase cluster or an EMR HBase cluster. - Click Add.