Description:
Create a HBase connection.
Syntax:
hbase_open(hdfsUrl, zkUrl1,zkUrl2,...zkUrlN)
Note:
This external library function connect to a HBase database. The format of parameter hdfsUrl is :hdfs://ip, and the format of parameter zkUrl is :zkServerIp. Can connect to multiple nodes.
Parameters:
hdfsUrl |
HDFS connection information |
zkUrl |
Zookeeper connection information |
Return value:
Cursor
Example:
|
A |
|
1 |
=hbase_open("hdfs://192.168.0.8", "192.168.0.8") |
Connet to a HBase database |
2 |
=hbase_open("hdfs://192.168.0.76", "192.168.0.76, master, 192.168.1.66") |
|