Ozone has a set of command line tools that can be used to manage ozone.
All these commands are invoked via the
The commands supported by ozone are:
The most used command when working with Ozone is the Ozone command shell. Ozone command shell gives a command shell interface to work against Ozone.
The Ozone shell commands take the following format.
ozone sh object action url
ozone script is used to invoke all Ozone sub-commands. The ozone shell is
The object can be a volume, bucket or a key. The action is various verbs like create, list, delete etc.
Ozone URL can point to a volume, bucket or keys in the following format:
Scheme - This should be
o3 which is the native RPC protocol to access
Ozone API. The usage of the schema is optional.
Server:Port - This is the address of the Ozone Manager. This can be server only, in that case, the default port is used. If this value is omitted then the defaults specified in the ozone-site.xml will be used for Ozone Manager address.
Depending on the call, the volume/bucket/key names will be part of the URL. Please see volume commands, bucket commands, and key commands section for more detail.
Ozone shell help can be invoked at object level or at action level. For example:
ozone sh volume --help
This will show all possible actions for volumes.
or it can be invoked to explain a specific action like
ozone sh volume create --help