mc table namespace update
The mc table namespace update command updates properties on an Iceberg namespace on a MinIO AIStor cluster.
Properties can be added, updated, or removed.
The following command sets properties on the prod namespace in the analytics warehouse on the myaistor MinIO AIStor cluster:
mc table namespace update myaistor analytics prod --set owner=data-team --set env=productionThe command has the following syntax:
mc [GLOBALFLAGS] table namespace update \
ALIAS \
WAREHOUSE \
NAMESPACE \
[--remove "key"] \
[--set "key=value"]- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS
Required
The alias of a MinIO AIStor cluster.
NAMESPACE
Required
The name of the namespace to update.
WAREHOUSE
Required
The name of the warehouse containing the namespace.
--remove
Optional
Remove a property from the namespace by key.
You can specify multiple --remove parameters to remove multiple properties.
--set
Optional
Set a property on the namespace in key=value format.
You can specify multiple --set parameters to set multiple properties.
If a property already exists, this updates its value.
Global flags
This command supports any of the global flags.
Examples
Set properties on a namespace
Use mc table namespace update with the --set flag to add or update properties:
mc table namespace update myaistor analytics prod --set owner=data-team --set env=productionRemove properties from a namespace
Use the --remove flag to remove properties:
mc table namespace update myaistor analytics prod --remove owner --remove envSet and remove properties in one command
Combine --set and --remove flags in a single command:
mc table namespace update myaistor analytics prod --set owner=new-team --remove old-key