Explains how to create both binary tables and JSON tables using either the Control System, the CLI, or the REST API.
There are several methods that you can use to create HPE Ezmeral Data Fabric Database tables including the maprcli, and hbase shell, mapr dbshell commands, and through the Control System.
maprcli table create -path <path>-tabletype parameter and set it to
json:maprcli table create -path <path> -tabletype jsonThe
-tabletype parameter is set to binary by default.curl -k -X POST 'https://<hostname>:8443/rest/table/create?path=<path>' --user mapr:maprcurl-k -X POST 'https://<hostname>:8443/rest/table/create?path=<path>&tabletype=json' --user mapr:maprThe format of the value of the -path parameter depends on whether you
are creating a table on a local cluster or a remote cluster:
test under a volume with a mount
point at /volume1, specify the following path: /volume1/test
customer under
volume1 in the sanfrancisco cluster, specify
the following path:/mapr/sanfrancisco/volume1/customer
< > ? % \; | ( ) / For example:
maprcli table create -path "/設備^=#;{}&()/" (or)
maprcli table create -path '/設備^=#;{}&()/'maprcli table create -path "/'設備^=#;{}&()/" (or)
maprcli table create -path '/"設備^=#;{}&()/'When you create a table, you can set a number of properties. See table create.
The HPE Ezmeral Data Fabric Database shell command is used on JSON tables only. To run this command, execute the following:
mapr dbshell
After starting the shell, run the create command. See HPE Ezmeral Data Fabric Database Shell (JSON Tables).
The HBase shell command is used on binary tables only. To run this command, execute the following:
hbase shell
After starting the HBase shell, run the create command. Type
help to see a list of commands and their syntax.
See HPE Ezmeral Data Fabric Database HBase Shell (Binary Tables).