Commands for managing buckets
The Ozone shell commands enable you to create, delete, view, and list buckets. Before running these commands, you must have configured the Ozone Service ID for your cluster from the Configuration tab of the Ozone service on Cloudera Manager.
Creating bucket and specifying quota
Command Syntax |
|
Command Usage |
|
Purpose | Creates a bucket with the quota. |
Arguments |
|
Example | This
command creates a 2 TB bucket named buck1. Here, ozone1 is the Ozone Service
ID. This
command sets the namespace quota of buck1 to 100. |
Checking Namespace and space quota for bucket
Command Syntax |
|
Purpose | Get the quota value, usedNamespace , and
usedBytes info of the bucket. |
Arguments | uri: The name of the bucket whose details you want to view, in the
<prefix>://<Service ID>/<volumename>/<bucketname>
format. |
Example | This
command gets the quota value, usedNamespace , and
usedBytes of buck1.
|
Setting namespace and space level quota for bucket
Namespace quota is a number that represents how many unique names can be used. This number cannot be greater than LONG.MAX_VALUE in Java.
Command Syntax |
|
Command Usage |
|
Purpose |
|
Arguments |
|
Example |
|
Clearing namespace and space quota for bucket
Command Syntax |
|
Command Usage |
|
Purpose |
|
Arguments |
|
Example |
|