cubefs/client/java
leonrayang c23b847714 Clean the libsdk.so file, which is the output of the compilation.
Signed-off-by: leonrayang <chl696@sina.com>
2024-10-18 09:38:08 +08:00
..
src/main/java/io/cubefs/fs Clean the libsdk.so file, which is the output of the compilation. 2024-10-18 09:38:08 +08:00
.gitignore feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
build.sh feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
pom.xml feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +08:00
README.md feat(project-structure): Reorganize the module directory in the root to a suitable subdirectory 2024-10-18 09:37:58 +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>