Get table metadata location

更新时间:
复制 MD 格式

Retrieves the storage location of the metadata file for a specified table.

Usage notes

  • The metadata location includes the storage path of the metadata file and a version token, which you can use in subsequent update-table-metadata-location operations.

  • The command returns warehouseLocation, the warehouse directory path of the table, and metadataLocation, the path to the current metadata file.

Synopsis

ossutil tables-api get-table-metadata-location --table-bucket-arn value --namespace value --name value [flags]

Parameter

Type

Description

--name

string

The table name. This parameter is required.

--namespace

string

The name of the namespace that contains the table. This parameter is required.

--table-bucket-arn

string

The Alibaba Cloud Resource Name (ARN) of the Table Bucket. The format is acs:osstables:{region}:{uid}:bucket/{bucket-name}. This parameter is required.

Note
  • The get-table-metadata-location command corresponds to the GetTableMetadataLocation API operation. For more information, see GetTableMetadataLocation.

  • For information about supported global command-line options, see ossutil global options.

Examples

Query the location of the metadata file for the my_table table in the my_namespace namespace.

ossutil tables-api get-table-metadata-location --table-bucket-arn acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket --namespace my_namespace --name my_table