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.
  • For a path on the local cluster, start the path at the volume mount point. For example, for a table named ezmeral under volume1 that has a mount point at /volume1, specify the following path: /volume1/ezmeral
  • For a path on a remote cluster, you must also specify the cluster name in the path. For example, for a table named customer under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customer

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."
        ]
}