hbase_open()

Read(128) Label: create, hbase database,

Description:

Create a HBase connection.

Syntax:

hbase_open(hdfsUrl,/zkUrl)

Note:

This external library function (See External Library Guide) connects 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.

Parameter:

hdfsUrl

HDFS connection information.

zkUrl

Zookeeper connection information.

Return value:

Cursor

Example:

 

A

 

1

=hbase_open("hdfs://192.168.0.8:9000")

Connect to the HBase database using hdfsUrl format.

2

=hbase_open("192.168.0.76,  192.168.1.66")

Connect to the HBase database using zkUrl format.