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:
readAce
andwriteAce
on the volumelookupdir
on directories in the pathdeletefamilyperm
on the table
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.
|
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>