This section describes how to add an HBase data source on HSConsole.
To check whether SSL communication encryption is enabled, log in to FusionInsight Manager, choose Cluster > Services > ZooKeeper > Configurations > All Configurations, and enter ssl.enabled in the search box. If the value of ssl.enabled is true, SSL communication encryption is enabled. If the value is false, SSL communication encryption is disabled.
<property> <name>hbase.rpc.client.impl</name> <value>org.apache.hadoop.hbase.ipc.RpcClientImpl</value> </property>
In addition, if the hdfs-site.xml and hbase-site.xml files reference the host name of a non-HetuEngine cluster node, you need to add the mapping between the referenced host name and the corresponding IP address to the /etc/hosts file of each node in the HetuEngine cluster. Otherwise, HetuEngine cannot connect to the node that is not in this cluster based on the host name.
The proxy user of the data source must have the permission to perform HBase operations.
Parameter |
Description |
Example Value |
---|---|---|
Name |
Name of the data source to be connected. The value can contain only letters, digits, and underscores (_) and must start with a letter. |
hbase_1 |
Data Source Type |
Type of the data source to be connected. Select HBase. |
HBase |
Description |
Description of the data source. The value can contain only letters, digits, commas (,), periods (.), underscores (_), spaces, and line breaks. |
- |
Parameter |
Description |
Example Value |
---|---|---|
Driver |
The default value is hbase-connector. |
hbase-connector |
ZooKeeper Quorum Address |
Service IP addresses of all quorumpeer instances of the ZooKeeper service for the data source. If the ZooKeeper service of the data source uses IPv6, you need to specify the client port number in the ZooKeeper Quorum address. Log in to FusionInsight Manager, choose Cluster > Services > ZooKeeper > Instance, and view the IP addresses of all the hosts housing the quorumpeer instances. |
|
ZooKeeper Client Port Number |
Port number of the ZooKeeper client. Log in to FusionInsight Manager and choose Cluster > Service > ZooKeeper. On the Configurations tab page, check the value of clientPort. |
2181 |
HBase RPC Communication Protection |
Set this parameter based on the value of hbase.rpc.protection in the hbase-site.xml file obtained in 1.
|
No |
Security Authentication Mechanism |
After the security mode is enabled, the default value is KERBEROS. |
KERBEROS |
Principal |
Configure this parameter when the security authentication mechanism is enabled. Set the parameter to the user to whom the user.keytab file obtained in 2 belongs. |
user_hbase@HADOOP2.COM |
Keytab File |
Configure this parameter when the security mode is enabled. It specifies the security authentication key. Select the user.keytab file obtained in 2. |
user.keytab |
krb5 File |
Configure this parameter when the security mode is enabled. It is the configuration file used for Kerberos authentication. Select the krb5.conf file obtained in 2. |
krb5.conf |
hbase-site File |
Configure this parameter when the security mode is enabled. It is the configuration file required for connecting to HDFS. Select the hbase-site.xml file obtained in 1. |
hbase-site.xml |
core-site File |
Configure this parameter when the security mode is enabled. This file is required for connecting to HDFS. Select the core-site.xml file obtained in 1. |
core-site.xml |
hdfs-site File |
Configure this parameter when the security mode is enabled. This file is required for connecting to HDFS. Select the hdfs-site.xml file obtained in 1. |
hdfs-site.xml |
cd /opt/client
source bigdata_env
kinit User performing HetuEngine operations (If the cluster is in normal mode, skip this step.)
hetu-cli --catalog Data source name --schema default
For example, run the following command:
hetu-cli --catalog hbase_1 --schema default