Skip to content

Commit

Permalink
HDDS-6376. Docs: Fix classpath for ofs and o3fs (#3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Feb 28, 2022
1 parent ebbe9b5 commit 898ccbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hadoop-hdds/docs/content/interface/O3fs.md
Expand Up @@ -76,7 +76,7 @@ This will make this bucket to be the default Hadoop compatible file system and r
You also need to add the ozone-filesystem-hadoop3.jar file to the classpath:

{{< highlight bash >}}
export HADOOP_CLASSPATH=/opt/ozone/share/ozonefs/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
export HADOOP_CLASSPATH=/opt/ozone/share/ozone/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
{{< /highlight >}}

(Note: with Hadoop 2.x, use the `ozone-filesystem-hadoop2-*.jar`)
Expand Down
4 changes: 2 additions & 2 deletions hadoop-hdds/docs/content/interface/O3fs.zh.md
Expand Up @@ -72,7 +72,7 @@ ozone sh bucket create /volume/bucket
你还需要将 ozone-filesystem.jar 文件加入 classpath:

{{< highlight bash >}}
export HADOOP_CLASSPATH=/opt/ozone/share/ozonefs/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
export HADOOP_CLASSPATH=/opt/ozone/share/ozone/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
{{< /highlight >}}

(注意:当使用Hadoop 2.x时,应该在classpath上添加ozone-filesystem-hadoop2-*.jar)
Expand Down Expand Up @@ -145,7 +145,7 @@ hdfs dfs -ls o3fs://bucket.volume.om-host.example.com:6789/key
你还需要将 ozone-filesystem.jar 文件加入 classpath:

{{< highlight bash >}}
export HADOOP_CLASSPATH=/opt/ozone/share/ozonefs/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
export HADOOP_CLASSPATH=/opt/ozone/share/ozone/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
{{< /highlight >}}

(注意:当使用Hadoop 2.x时,应该在classpath上添加ozone-filesystem-hadoop2-*.jar)
Expand Down
2 changes: 1 addition & 1 deletion hadoop-hdds/docs/content/interface/Ofs.md
Expand Up @@ -82,7 +82,7 @@ This will make all the volumes and buckets to be the default Hadoop compatible f
You also need to add the ozone-filesystem-hadoop3.jar file to the classpath:

{{< highlight bash >}}
export HADOOP_CLASSPATH=/opt/ozone/share/ozonefs/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
export HADOOP_CLASSPATH=/opt/ozone/share/ozone/lib/ozone-filesystem-hadoop3-*.jar:$HADOOP_CLASSPATH
{{< /highlight >}}

(Note: with Hadoop 2.x, use the `ozone-filesystem-hadoop2-*.jar`)
Expand Down

0 comments on commit 898ccbb

Please sign in to comment.