hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject hadoop git commit: HDDS-483. Update ozone Documentation to fix below issues. Contributed by Namit Maheshwari.
Date Tue, 18 Sep 2018 17:25:36 GMT
Repository: hadoop
Updated Branches:
  refs/heads/ozone-0.2 a71aea732 -> 9913b8d3d


HDDS-483. Update ozone Documentation to fix below issues.
Contributed by  Namit Maheshwari.

(cherry picked from commit 48319d6eee6ecea9992f3959ed75c892aa09f66c)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9913b8d3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9913b8d3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9913b8d3

Branch: refs/heads/ozone-0.2
Commit: 9913b8d3d49bfe2c670dfa0f92f614636af8f325
Parents: a71aea7
Author: Anu Engineer <aengineer@apache.org>
Authored: Tue Sep 18 10:23:36 2018 -0700
Committer: Anu Engineer <aengineer@apache.org>
Committed: Tue Sep 18 10:25:24 2018 -0700

----------------------------------------------------------------------
 hadoop-ozone/docs/content/JavaApi.md | 4 ++++
 hadoop-ozone/docs/content/OzoneFS.md | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/9913b8d3/hadoop-ozone/docs/content/JavaApi.md
----------------------------------------------------------------------
diff --git a/hadoop-ozone/docs/content/JavaApi.md b/hadoop-ozone/docs/content/JavaApi.md
index 589122c..1d32bed 100644
--- a/hadoop-ozone/docs/content/JavaApi.md
+++ b/hadoop-ozone/docs/content/JavaApi.md
@@ -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.
 
 {{< highlight java >}}
+// Let us create a client
 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.
 // This default arguments for creating that volume.
 objectStore.createVolume(“assets”);

http://git-wip-us.apache.org/repos/asf/hadoop/blob/9913b8d3/hadoop-ozone/docs/content/OzoneFS.md
----------------------------------------------------------------------
diff --git a/hadoop-ozone/docs/content/OzoneFS.md b/hadoop-ozone/docs/content/OzoneFS.md
index 07961d9..d0621be 100644
--- a/hadoop-ozone/docs/content/OzoneFS.md
+++ b/hadoop-ozone/docs/content/OzoneFS.md
@@ -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.
 
 {{< highlight bash >}}
-ozone oz volume create /volume
-ozone oz bucket create /volume/bucket
+ozone sh volume create /volume
+ozone sh bucket create /volume/bucket
 {{< /highlight >}}
 
 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:
 
 {{< 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 >}}
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message