HDDS-483. Update ozone Documentation to fix below issues.

Contributed by  Namit Maheshwari.
This commit is contained in:
Anu Engineer 2018-09-18 10:23:36 -07:00
parent e4fca6aae4
commit 48319d6eee
2 changed files with 7 additions and 3 deletions

View File

@ -129,8 +129,12 @@ introStream.close();
Here is a complete example of the code that we just wrote. Please note the close functions being called in this program. Here is a complete example of the code that we just wrote. Please note the close functions being called in this program.
{{< highlight java >}} {{< highlight java >}}
// Let us create a client
OzoneClient ozClient = OzoneClientFactory.getClient(); OzoneClient ozClient = OzoneClientFactory.getClient();
// Get a reference to the ObjectStore using the client
ObjectStore objectStore = ozClient.getObjectStore();
// Let us create a volume to store our game assets. // Let us create a volume to store our game assets.
// This default arguments for creating that volume. // This default arguments for creating that volume.
objectStore.createVolume(“assets”); objectStore.createVolume(“assets”);

View File

@ -32,8 +32,8 @@ To create an ozone file system, we have to choose a bucket where the file system
Please run the following commands to create a volume and bucket, if you don't have them already. Please run the following commands to create a volume and bucket, if you don't have them already.
{{< highlight bash >}} {{< highlight bash >}}
ozone oz volume create /volume ozone sh volume create /volume
ozone oz bucket create /volume/bucket ozone sh bucket create /volume/bucket
{{< /highlight >}} {{< /highlight >}}
Once this is created, please make sure that bucket exists via the listVolume or listBucket commands. Once this is created, please make sure that bucket exists via the listVolume or listBucket commands.
@ -56,7 +56,7 @@ This will make this bucket to be the default file system for HDFS dfs commands a
You also need to add the ozone-filesystem.jar file to the classpath: You also need to add the ozone-filesystem.jar file to the classpath:
{{< highlight bash >}} {{< highlight bash >}}
export HADOOP_CLASSPATH=/opt/ozone/share/hadoop/ozonefs/hadoop-ozone-filesystem.jar export HADOOP_CLASSPATH=/opt/ozone/share/hadoop/ozonefs/hadoop-ozone-filesystem.jar:$HADOOP_CLASSPATH
{{< /highlight >}} {{< /highlight >}}