Create a client
API used
hb_client_create()
: Initializes a
handle to hb_client_t
object that can be passed
to other APIs. You need to use this method only once per cluster.
The returned handle is thread-safe. This API is defined in the
client.h
header file.
Code
if ((retCode = hb_client_create(connection, &client)) != 0) {
HBASE_LOG_ERROR("Could not connect to HBase cluster : errorCode = %d.", retCode);
goto cleanup;
}