cubefs/java
lixiang 51212f8301 rename cfs to cbfs & optimize the libsdk module
Signed-off-by: lixiang <lixiang11@oppo.com>
2021-08-16 05:01:32 -07:00
..
src/main/java/io/chubao/fs rename cfs to cbfs & optimize the libsdk module 2021-08-16 05:01:32 -07:00
.gitignore add libsdk compilation to project Makefile 2021-01-28 14:37:33 +08:00
build.sh enhance: pack libcfs.so into jar 2021-01-28 14:37:33 +08:00
pom.xml feature: introduce java sdk 2021-01-28 14:37:33 +08:00
README.md enhance: pack libcfs.so into jar 2021-01-28 14:37:33 +08:00

Usage

Build jar with dependencies

cd java
./build.sh

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>