|
@@ -21,14 +21,14 @@ with simple authentication.
|
|
|
|
|
|
The Ozone commands take the following format.
|
|
|
|
|
|
-* `hdfs oz --command_ http://hostname:port/volume/bucket/key -user
|
|
|
+* `ozone oz --command_ http://hostname:port/volume/bucket/key -user
|
|
|
<name> -root`
|
|
|
|
|
|
The *port* specified in command should match the port mentioned in the config
|
|
|
property `dfs.datanode.http.address`. This property can be set in `hdfs-site.xml`.
|
|
|
The default value for the port is `9864` and is used in below commands.
|
|
|
|
|
|
-The *--root* option is a command line short cut that allows *hdfs oz*
|
|
|
+The *--root* option is a command line short cut that allows *ozone oz*
|
|
|
commands to be run as the user that started the cluster. This is useful to
|
|
|
indicate that you want the commands to be run as some admin user. The only
|
|
|
reason for this option is that it makes the life of a lazy developer more
|
|
@@ -44,7 +44,7 @@ ozone cluster.
|
|
|
|
|
|
Volumes can be created only by Admins. Here is an example of creating a volume.
|
|
|
|
|
|
-* `hdfs oz -createVolume http://localhost:9864/hive -user bilbo -quota
|
|
|
+* `ozone oz -createVolume http://localhost:9864/hive -user bilbo -quota
|
|
|
100TB -root`
|
|
|
|
|
|
The above command creates a volume called `hive` owned by user `bilbo`. The
|
|
@@ -55,26 +55,26 @@ admin in the cluster.
|
|
|
|
|
|
Updates information like ownership and quota on an existing volume.
|
|
|
|
|
|
-* `hdfs oz -updateVolume http://localhost:9864/hive -quota 500TB -root`
|
|
|
+* `ozone oz -updateVolume http://localhost:9864/hive -quota 500TB -root`
|
|
|
|
|
|
The above command changes the volume quota of hive from 100TB to 500TB.
|
|
|
|
|
|
### Delete Volume
|
|
|
Deletes a Volume if it is empty.
|
|
|
|
|
|
-* `hdfs oz -deleteVolume http://localhost:9864/hive -root`
|
|
|
+* `ozone oz -deleteVolume http://localhost:9864/hive -root`
|
|
|
|
|
|
|
|
|
### Info Volume
|
|
|
Info volume command allows the owner or the administrator of the cluster to read meta-data about a specific volume.
|
|
|
|
|
|
-* `hdfs oz -infoVolume http://localhost:9864/hive -root`
|
|
|
+* `ozone oz -infoVolume http://localhost:9864/hive -root`
|
|
|
|
|
|
### List Volumes
|
|
|
|
|
|
List volume command can be used by administrator to list volumes of any user. It can also be used by a user to list volumes owned by him.
|
|
|
|
|
|
-* `hdfs oz -listVolume http://localhost:9864/ -user bilbo -root`
|
|
|
+* `ozone oz -listVolume http://localhost:9864/ -user bilbo -root`
|
|
|
|
|
|
The above command lists all volumes owned by user bilbo.
|
|
|
|
|
@@ -89,7 +89,7 @@ Following examples assume that these commands are run by the owner of the volume
|
|
|
|
|
|
Create bucket call allows the owner of a volume to create a bucket.
|
|
|
|
|
|
-* `hdfs oz -createBucket http://localhost:9864/hive/january`
|
|
|
+* `ozone oz -createBucket http://localhost:9864/hive/january`
|
|
|
|
|
|
This call creates a bucket called `january` in the volume called `hive`. If
|
|
|
the volume does not exist, then this call will fail.
|
|
@@ -98,23 +98,23 @@ the volume does not exist, then this call will fail.
|
|
|
### Update Bucket
|
|
|
Updates bucket meta-data, like ACLs.
|
|
|
|
|
|
-* `hdfs oz -updateBucket http://localhost:9864/hive/january -addAcl
|
|
|
+* `ozone oz -updateBucket http://localhost:9864/hive/january -addAcl
|
|
|
user:spark:rw`
|
|
|
|
|
|
### Delete Bucket
|
|
|
Deletes a bucket if it is empty.
|
|
|
|
|
|
-* `hdfs oz -deleteBucket http://localhost:9864/hive/january`
|
|
|
+* `ozone oz -deleteBucket http://localhost:9864/hive/january`
|
|
|
|
|
|
### Info Bucket
|
|
|
Returns information about a given bucket.
|
|
|
|
|
|
-* `hdfs oz -infoBucket http://localhost:9864/hive/january`
|
|
|
+* `ozone oz -infoBucket http://localhost:9864/hive/january`
|
|
|
|
|
|
### List Buckets
|
|
|
List buckets on a given volume.
|
|
|
|
|
|
-* `hdfs oz -listBucket http://localhost:9864/hive`
|
|
|
+* `ozone oz -listBucket http://localhost:9864/hive`
|
|
|
|
|
|
Ozone Key Commands
|
|
|
------------------
|
|
@@ -125,26 +125,26 @@ Ozone key commands allows users to put, delete and get keys from ozone buckets.
|
|
|
Creates or overwrites a key in ozone store, -file points to the file you want
|
|
|
to upload.
|
|
|
|
|
|
-* `hdfs oz -putKey http://localhost:9864/hive/january/processed.orc -file
|
|
|
+* `ozone oz -putKey http://localhost:9864/hive/january/processed.orc -file
|
|
|
processed.orc`
|
|
|
|
|
|
### Get Key
|
|
|
Downloads a file from the ozone bucket.
|
|
|
|
|
|
-* `hdfs oz -getKey http://localhost:9864/hive/january/processed.orc -file
|
|
|
+* `ozone oz -getKey http://localhost:9864/hive/january/processed.orc -file
|
|
|
processed.orc.copy`
|
|
|
|
|
|
### Delete Key
|
|
|
Deletes a key from the ozone store.
|
|
|
|
|
|
-* `hdfs oz -deleteKey http://localhost:9864/hive/january/processed.orc`
|
|
|
+* `ozone oz -deleteKey http://localhost:9864/hive/january/processed.orc`
|
|
|
|
|
|
### Info Key
|
|
|
Reads key metadata from the ozone store.
|
|
|
|
|
|
-* `hdfs oz -infoKey http://localhost:9864/hive/january/processed.orc`
|
|
|
+* `ozone oz -infoKey http://localhost:9864/hive/january/processed.orc`
|
|
|
|
|
|
### List Keys
|
|
|
List all keys in an ozone bucket.
|
|
|
|
|
|
-* `hdfs oz -listKey http://localhost:9864/hive/january`
|
|
|
+* `ozone oz -listKey http://localhost:9864/hive/january`
|