cubefs/java
chihe 2d4c3db90e feat(client): update pom.xml for maven
Signed-off-by: chihe <chihe@oppo.com>
2024-07-22 17:10:59 +08:00
..
src/main feat(build): build with goreleaser 2023-12-06 18:43:46 +08: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 feat(client): update pom.xml for maven 2024-07-22 17:10:59 +08:00
README.md docs. update to cubefs 2023-05-26 11:17:10 +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/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient ls <dirpath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient read <filepath>
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient write <filepath>