table metadata update
Updates table metadata and adds user table entries to the metadata list.
REMEMBER
This command is meant to be used by support engineers to debug
issues.Syntax
- CLI
-
maprcli table metadata update -path <path> - REST
-
curl -k -X GET \ 'http[s]://<host>:<port>/rest/table/metadata/update?path=<path>' -u <username>:<password>
Parameters
| Parameter | Description |
|---|---|
| path | The path to use to fetch the metadata recursively. Metadata entries
under this path are updated. NOTE This parameter is optional. If not
specified, the root path / is used.
|
Example
Updates the metadata for tables in a volume named nysales under the
/ path, in the JSON format:
- CLI
-
maprcli table metadata update -path /nysales -json - REST
-
curl -k -X POST \ 'https://r1n1.sj.us:8443/rest/table/metadata/update?path=/nysales' \ -u mapr:mapr
Sample Output
maprcli table metadata update -path /nysales -json
{
"timestamp":1699290019872,
"timeofday":"2023-11-06 09:00:19.872 GMT-0800 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"1 entries were added or updated in table metadata."
]
}