Editing Tables
Explains how to edit binary and JSON tables using either the Control System, the CLI, or the REST API.
About this task
You can use the Control System, the CLI, or the REST API to edit the attributes of a HPE Ezmeral Data Fabric Database binary or JSON table. You can also use the HBase shell to edit a binary table. To edit a table, you must have the following permissions:
readAce
andwriteAce
on the volumelookupdir
on directories in the pathadminaccessperm
on the table
Editing Tables Using the Control System
Procedure
-
Log into the Control System using your login credentials. The Control
System Overview page appears.
NOTEThis option is not available on the Kubernetes version of the Control System.
- Click Tables page appears. from the top of the page. The
- Select the table needing to be edited (under the Recently Viewed Tables pane or in the bottom pane) or enter the path to the needed table in the available field, and then click Edit Table to display the Edit Table page.
-
Make changes to the following Properties, where
necessary:
Property Property Description Metrics Interval Select 10 sec, 1 min or 10 min to update the interval of time for logging metrics. Auto Split Enable (Yes) or disable (No) auto-splitting of table. If enabled, the table is split automatically into regions as the table grows. If disabled, the table can be split manually into regions. By default, this is enabled. Bulkload Enable (Yes) or disable (No) full bulk load of the table. -
Define Default Data Access Control for Column Family
settings:
-
Make changes as needed to Table Administration
Control settings:
- Click Save Changes for the changes to take effect.
Editing Tables Using the CLI or the REST API
About this task
The following is the command to edit a table:
maprcli table edit -path <path>
Send a request of type POST. For example:
curl -k -X POST 'https://<hostname>:8443/rest/table/edit?path=<path>' --user <username>:<pwd>
- For a path on the local cluster, start the path at the volume mount point. For
example, for a table named
test
under a volume with a mount point at /volume1, specify the following path:/volume1/test
- For a path on a remote cluster, you must also specify the cluster name in the
path. For example, for a table named
customer
undervolume1
in thesanfrancisco
cluster, specify the following path:/mapr/sanfrancisco/volume1/customer
To use the following characters in the table name, enclose them either in single or double quotes:NOTEYou cannot use the following characters in the table name:< > ? % \
For example:; | ( ) /
maprcli table create -path "/設備^=#;{}&()/" (or) maprcli table create -path '/設備^=#;{}&()/'
To use either the ' or the " character in the table name, enclose:For example:- the ' character within double quotes (")
- the " character within single quote (')
maprcli table create -path "/'設備^=#;{}&()/" (or) maprcli table create -path '/"設備^=#;{}&()/'
When you edit a table, you can change a number of properties including:
- Enable or disable auditing, autosplitting, and bulkloading
- Set permissions on table
- Set permissions for default column families
For full reference for this command, see the table edit
command.
Editing Binary Tables Using HBase Shell
About this task
After starting the HBase shell, run the alter
command. Type
help
to see a list of commands and their syntax.