mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
# Usage
|
|
|
|
### Build jar with dependencies
|
|
|
|
```bash
|
|
cd java
|
|
./build.sh
|
|
```
|
|
|
|
### Deploy single-node cluster using docker
|
|
|
|
```bash
|
|
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>
|
|
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 chmod <filepath>
|
|
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient unlink <filepath>
|
|
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient rmdir <dirpath>
|
|
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient mkdir <dirpath>
|
|
java -cp target/libcubefs-1.0-SNAPSHOT-jar-with-dependencies.jar io.cube.fs.TestCfsClient rename <frompath> <topath>
|
|
```
|