This topic describe how to remove secondary indexes that are no longer needed.
readAce on the volumelookupdir on directories in the table pathindexperm permission on the table, if you did not create the
tablemaprcli table index remove
-path <path>
-index <index name>
curl -k -X POST \
'http[s]://<host>:<port>/rest/table/index/remove?path=<path>&index=<index name>'
-u <username>:<password>
|
Parameter |
Description |
|---|---|
|
path |
(Required) Path to where the parent JSON table resides |
|
index |
(Required) Name of the index |
maprcli table index remove -path /my.cluster.com/volume1/newtable -index testIndex
curl -k -X POST \
'https://r1n1.sj.us:8443/rest/table/index/remove?path=%2Fmy.cluster.com%2Fvolume1%2Fnewtable&index=testIndex' \
-u mapr:mapr