bucket update

Definition

Updates the owner of the bucket.

Usage

$  ozone sh bucket update [-hV] [-u=<ownerName>] <value>
Arguments
Parameter Description

value

A bucket URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/bucket1/) or a short URI (starts with a volume name, e.g. vol1/bucket1). Any missing information is obtained from the configuration files

ownerName

Name of the new bucket owner

-h, --help

Prints out a help manual for this command

-V, --version

Prints out version information and exits

Examples

Setting a new bucket owner:

$ ozone sh bucket update -u=sergei vol1/bucket1

As a confirmation, the command outputs the new bucket information:

{
  "metadata" : { },
  "volumeName" : "vol1",
  "name" : "bucket1",
  "storageType" : "DISK",
  "versioning" : false,
  "usedBytes" : 0,
  "usedNamespace" : 0,
  "creationTime" : "2025-01-22T22:06:04.800Z",
  "modificationTime" : "2025-02-12T23:58:47.979Z",
  "sourcePathExist" : true,
  "quotaInBytes" : -1,
  "quotaInNamespace" : -1,
  "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
  "owner" : "sergei",
  "replicationConfig" : {
    "replicationFactor" : "ONE",
    "requiredNodes" : 1,
    "replicationType" : "RATIS"
  },
  "link" : false
}
Found a mistake? Seleсt text and press Ctrl+Enter to report it