cubefs/client/java
leonrayang ac733c4791 Clean the libsdk.so file, which is the output of the compilation.
close:#22458839

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