Skip to content

Commit 3538027

Browse files
author
lijinglun
committed
Integration of TOS: Improve the documentation.
1 parent 5907569 commit 3538027

File tree

1 file changed

+10
-6
lines changed
  • hadoop-cloud-storage-project/hadoop-tos/hadoop-tos-core/src/site/markdown/cloud-storage

1 file changed

+10
-6
lines changed

hadoop-cloud-storage-project/hadoop-tos/hadoop-tos-core/src/site/markdown/cloud-storage/index.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ In quick start, we will use hadoop shell command to access a tos bucket.
3232
3. Install hadoop to the dev environment. Hadoop is installed at `$HADOOP_HOME`.
3333

3434
### Usage
35-
36-
* Copy hadoop-tos bundler jar to hdfs lib path. The bundle jar is placed
37-
at `$HADOOP_HOME/share/hadoop/tools/hadoop-cloud-storage/hadoop-tos-{VERSION}.jar`. The hdfs lib
38-
path is `$HADOOP_HOME/share/hadoop/hdfs`. Remember copying on all hadoop nodes.
39-
* Configure properties.
35+
* Compile hadoop-tos bundle jar. The hadoop-tos bundle jar is not packaged in hadoop final tar file.
36+
So we have to compile it manually. Download the hadoop project, and build it with command below.
37+
```bash
38+
mvn install -Pdist -Dhbase.profile=2.0 -DskipTests -Dtar -Dmaven.javadoc.skip=true
39+
```
40+
* Copy hadoop-tos bundle jar to hdfs lib path. The bundle jar is placed at
41+
`$HADOOP_HOME/hadoop-cloud-storage-project/hadoop-tos/hadoop-tos-core/target/hadoop-tos-core-{VERSION}.jar`.
42+
The hdfs lib path is `$HADOOP_HOME/share/hadoop/hdfs`. Remember copying to all hadoop nodes.
43+
* Configure properties below.
4044

4145
```xml
4246

@@ -414,7 +418,7 @@ export TOS_BUCKET={YOUR_BUCKET_NAME}
414418
export TOS_UNIT_TEST_ENABLED=true
415419
```
416420

417-
Then cd to `$HADOOP_HOME`, and run the test command below.
421+
Then cd to hadoop project root directory, and run the test command below.
418422

419423
```bash
420424
mvn -Dtest=org.apache.hadoop.fs.tosfs.** test -pl org.apache.hadoop:hadoop-tos-core

0 commit comments

Comments
 (0)