Editing Tables

Use either the maprcli command table edit or MCS to edit the attributes of a MapR-DB binary or JSON table. You can also use the HBase shell to edit a binary table.

Methods Common to Both Table Types

maprcli command

Run the command maprcli table edit -path <path> .

  • 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 under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customer

When you edit a table with this command, you can change a number of properties.

For full reference for this command, see table edit.

MCS

  1. Open the table.
  2. Click Edit Table Permissions. The window that appears lets you change table permissions and other properties.

    Figure: The Edit Table Permissions button

Methods for Binary Tables Only

HBase Shell

After starting the HBase shell, run the alter command. Type help to see a list of commands and their syntax.