table cf delete

Deletes a column family from a HPE Ezmeral Data Fabric Database binary table or JSON table. Deletion cannot be undone.

IMPORTANT
As of release 6.0, a column family cannot be deleted from a JSON table.

Permissions Required

To run this command, your user ID must have the following permissions:

NOTE
The mapr user is not treated as a superuser. HPE Ezmeral Data Fabric Database does not allow the mapr user to run this command unless that user is given the relevant permission or permissions with access-control expressions.

Syntax

CLI
maprcli table cf delete
  -path <path>
  -cfname <name>
REST
curl -k -X POST 
  'http[s]://<host>:<port>/rest/table/cf/delete?path=<path>&cfname=<name>'
  -u <username>:<password>
NOTE
The mapr user is not treated as a superuser. HPE Ezmeral Data Fabric Database does not allow the mapr user to run this command unless that user is given the relevant permission or permissions with access-control expressions.

Parameters

Parameter Description
path

The path to the table.

  • For a path on the local cluster, start the path at the volume mount point. For example, for a table named test under volume1 which has 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 test under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customer
cfname

The name of the column family to delete.

NOTE
In JSON tables, it is not possible to delete column families in addition to the default column family.

Example

Deletes a column family mycf from table thetable:

CLI
maprcli table cf delete -path /volume1/thetable -cfname mycf
REST
curl -X POST \
  'https://r1n1.sj.us:8443/rest/table/cf/delete?path=%2Fvolume1%2Fthetable&cfname=mycf' \
  -u <username>:<password>