key info
Contents
Usage
$ ozone sh key info [-hV] <value>
Parameter | Description |
---|---|
value |
A key URI. It can be a full URI (starts with |
-h, --help |
Prints out a help manual for this command |
-V, --version |
Prints out version information and exits |
Examples
Consider a volume vol1
with a bucket bucket1
created within. That bucket contains a key key1
. To get information about that key, call the following command:
$ ozone sh key info vol1/bucket1/key1
The output depends on the key configuration, but overall should be similar to the following:
{
"volumeName" : "vol1",
"bucketName" : "bucket1",
"name" : "key1",
"dataSize" : 14,
"creationTime" : "2025-02-23T21:14:28.098Z",
"modificationTime" : "2025-02-23T21:17:20.170Z",
"replicationConfig" : {
"replicationFactor" : "ONE",
"requiredNodes" : 1,
"replicationType" : "RATIS"
},
"metadata" : { },
"ozoneKeyLocations" : [ {
"containerID" : 1,
"localID" : 115816896921600001,
"length" : 14,
"offset" : 0,
"keyOffset" : 0
} ],
"file" : true
}