File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ Curvine adopts a modular design and is mainly composed of the following core com
6363```
6464use curvine_common::conf::ClusterConf;
6565use curvine_common::fs::Path;
66+ use std::sync::Arc;
6667
6768let 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() );
6970let fs = CurvineFileSystem::with_rt(conf, rt)?;
7071
7172let 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+
8185Configuration conf = new Configuration();
8286conf.set("fs.cv.impl", "io.curvine.CurvineFileSystem");
8387
You can’t perform that action at this time.
0 commit comments