This section provides the HPE Ezmeral Data Fabric Database
libMapRClient C API library. This library is MapR's extension of the
libhbase C API library. The libMapRClient header files
are in the directory: /opt/mapr/include/hbase.
libMapRClient API implements functions in addition to the functions in
the libhbase API. hbase.h header file. The header files are provided for display
purposes.libMapRClient includes a function in the
connection.h header file:
hb_connection_create_as_user(). This function provides support
for impersonation, so that you can connect to a HPE Ezmeral Data Fabric cluster and access HPE Ezmeral Data Fabric Database tables by using a specific username.
The user that is passed with the hb_connection_create_as_user()
API must have permissions on the tables that the application accesses. For
example, to read from a table, the user must have the readperm
permission. To write to a table, the user must have the writeperm
permission. See Enabling Table and Stream Authorizations with ACEs.
For hb_connection_create() and
hb_connection_create_as_user(), the standard C APIs for Apache
HBase require a list of ZooKeeper nodes. For HPE Ezmeral Data Fabric Database, this list is interpreted as a list of CLDB nodes. The zk_root
parameter is ignored. If zk_quorum is NULL, then the connection
is created to the default cluster that is listed in the
mapr-clusters.conf file.
Describes the APIs and data structures of a C client for Apache HBase.