mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-18 20:40:54 +02:00
Updated Hadoop Compatible File System (markdown)
@@ -8,15 +8,12 @@ $cd $GOPATH/src/github.com/chrislusf/seaweedfs/other/java/client
|
||||
$ mvn install
|
||||
$cd $GOPATH/src/github.com/chrislusf/seaweedfs/other/java/hdfs
|
||||
$ mvn package
|
||||
$ ls -al target/seaweedfs-hadoop-client-1.0.4.jar
|
||||
$ ls -al target/seaweedfs-hadoop-client-x.x.x.jar
|
||||
|
||||
```
|
||||
Or you can download the latest version from MavenCentral
|
||||
https://mvnrepository.com/artifact/com.github.chrislusf/seaweedfs-hadoop-client
|
||||
|
||||
https://oss.sonatype.org/content/repositories/public/com/github/chrislusf/seaweedfs-hadoop-client/1.0.4/seaweedfs-hadoop-client-1.0.4.jar
|
||||
|
||||
|
||||
# Test SeaweedFS on Hadoop
|
||||
|
||||
Suppose you are getting a new Hadoop installation. Here are the minimum steps to get SeaweedFS to run.
|
||||
@@ -29,7 +26,7 @@ $ cd ${HADOOP_HOME}
|
||||
$ echo "<configuration></configuration>" > etc/hadoop/mapred-site.xml
|
||||
$ bin/hdfs dfs -Dfs.defaultFS=seaweedfs://localhost:8888 \
|
||||
-Dfs.seaweedfs.impl=seaweed.hdfs.SeaweedFileSystem \
|
||||
-libjars ./seaweedfs-hadoop-client-1.0.4.jar \
|
||||
-libjars ./seaweedfs-hadoop-client-x.x.x.jar \
|
||||
-ls /
|
||||
|
||||
```
|
||||
@@ -59,7 +56,7 @@ $ bin/hadoop classpath
|
||||
|
||||
# Copy SeaweedFS HDFS client jar to one of the folders
|
||||
$ cd ${HADOOP_HOME}
|
||||
$ cp ./seaweedfs-hadoop-client-1.0.4.jar share/hadoop/common/lib/
|
||||
$ cp ./seaweedfs-hadoop-client-x.x.x.jar share/hadoop/common/lib/
|
||||
```
|
||||
|
||||
Now you can do this:
|
||||
|
||||
Reference in New Issue
Block a user