Skip to content

Commit c4c94c7

Browse files
authored
Update README.md
1 parent a301a65 commit c4c94c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ Curvine adopts a modular design and is mainly composed of the following core com
6363
```
6464
use curvine_common::conf::ClusterConf;
6565
use curvine_common::fs::Path;
66+
use std::sync::Arc;
6667
6768
let conf = ClusterConf::from(conf_path);
68-
let rt = conf.client_rpc_conf().create_runtime();
69+
let rt = Arc::new(conf.client_rpc_conf().create_runtime());
6970
let fs = CurvineFileSystem::with_rt(conf, rt)?;
7071
7172
let path = Path::from_str("/dir")?;
@@ -78,6 +79,9 @@ ls /curvine-fuse
7879
```
7980
### 🐘 Hadoop Compatible API
8081
```
82+
import org.apache.hadoop.conf.Configuration;
83+
import org.apache.hadoop.fs.*;
84+
8185
Configuration conf = new Configuration();
8286
conf.set("fs.cv.impl", "io.curvine.CurvineFileSystem");
8387

0 commit comments

Comments
 (0)