Altering Column Families
Explains how to modify the permissions and properties of column families using either the Control System, the CLI, or the HBase shell.
About this task
Modifying a Column Family Using the Control System
Procedure
Modifying a Column Family Using the CLI or REST API
About this task
The basic command to edit a column family
is:
maprcli table cf edit -path <path> -cfname <name_of_column_family> optionsFor
the full list of options, see the table cf edit command.The format of the value of the -path parameter depends on whether you
are creating a table on a local cluster or a remote cluster:
- For a path on the local cluster, start the path at the volume mount point. For
example, for a table named
testunder 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
customerundervolume1in thesanfranciscocluster, specify the following path:/mapr/sanfrancisco/volume1/customerTo 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 '/"設備^=#;{}&()/'
Modifying a Column Family in a Binary Table 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.
(Delete) to the right of the displayed security name to remove disassociate the policy
from the column family. The security policy is deleted immediately.
to create a
copy of the associated access control setting. Click
to remove
the associated access control expression.
associated
with the type of access to use the