mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
|
|
||
|---|---|---|
| .. | ||
| src/main/java/io/chubao/fs | ||
| .gitignore | ||
| pom.xml | ||
| README.md | ||
Usage
Build shared library
cd libsdk
sh build.sh
sudo cp libcfs.so /usr/lib/libcfs.so
Build jar with dependencies
cd java
mvn clean package
Deploy single-node cluster using docker
cd docker
./run_docker.sh -r
Run the java test program
java -cp target/libchubaofs-1.0-SNAPSHOT-jar-with-dependencies.jar io.chubao.fs.TestCfsClient ls <dirpath>
java -cp target/libchubaofs-1.0-SNAPSHOT-jar-with-dependencies.jar io.chubao.fs.TestCfsClient read <filepath>
java -cp target/libchubaofs-1.0-SNAPSHOT-jar-with-dependencies.jar io.chubao.fs.TestCfsClient write <filepath>