cubefs/java
slasher 3fd0354057 feat(build): build with goreleaser
Signed-off-by: slasher <shenjie1@oppo.com>
2023-12-06 18:43:46 +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 refactor:rename package name. 2022-06-30 14:07:17 +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>