table cf listLists the column families for a MapR table.
To run this command, your user ID must have the following permissions:
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.maprcli table cf list
-path <path>
[ -cfname <name> ]
curl -k -X GET \
'http[s]://<host>:<port>/rest/table/cf/list?path=<path>&cfname=<name>'
-u <username>:<password>
|
Parameter |
Description |
|---|---|
| path |
The path to the table.
|
| cfname |
The name of the column family. |
|
Verbose Field Name |
Terse Field Name |
Field Value |
|---|---|---|
|
inmemory |
inmem |
Whether or not this column value resides in memory |
|
cfname |
n |
The column family name |
|
maxversions |
vmax |
Maximum number of versions for this column family |
|
minversions |
vmin |
Minimum number of versions for this column family |
|
compression |
comp |
Compression scheme used for this column family |
|
ttl |
ttl |
Time to live for this column family |
This example lists all column families for the table newtable.
maprcli table cf list -path /my.cluster.com/volume1/newtable
curl -k -X GET \
'https://r1n1.sj.us:8443/rest/table/cf/list?path=%2Fmy.cluster.com%2Fvolume1%2Fnewtable' \
-u mapr:mapr
Example Output
[user@node]# maprcli table cf list -path /mapr/default/user/user/newtable
comp inmem vmax n ttl vmin
lz4 false 3 dine 2147483647 0
lz4 false 3 nahashchid 2147483647 0
lz4 false 3 wollachee 2147483647 0
This example shows the security policies for the default column family
of the JSON table, jtable.
maprcli table cf list -path /my.cluster.com/volume1/jtable -cfname default -json
curl -k -X GET \
'https://r1n1.sj.us:8443/rest/table/cf/list?path=%2Fmy.cluster.com%2Fvolume1%2Fjtable' &cfname=default \
-u mapr:mapr
Example Output
{
"timestamp":1539674179277,
"timeofday":"2018-10-16 12:16:19.277 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"cfname":"default",
"maxversions":1,
"minversions":0,
"ttl":2147483647,
"inmemory":false,
"compression":"lz4",
"securitypolicy":"[Lab_Security_Policy,Sensitive_Data]",
"compressionperm":"u:root",
"memoryperm":"u:root",
"readperm":"u:root",
"traverseperm":"u:root",
"writeperm":"u:root"
}
]
}