作者: | 来源:互联网 | 2023-07-20 11:53
本文整理了Java中org.apache.hadoop.fs.LocalFileSystem.get()
方法的一些代码示例,展示了LocalFileSystem.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalFileSystem.get()
方法的具体详情如下:
包路径:org.apache.hadoop.fs.LocalFileSystem
类名称:LocalFileSystem
方法名:get
LocalFileSystem.get介绍
[英]Return the protocol scheme for the FileSystem.
[中]返回文件系统的协议方案。
代码示例
代码示例来源:origin: apache/oozie
private FileSystem newLocalFileSystem() throws IOException {
final Configuration emptyCOnfig= new Configuration(false);
return LocalFileSystem.get(emptyConfig);
}
代码示例来源:origin: org.apache.hadoop/hadoop-mapred-test
Path[] files = context.getLocalCacheFiles();
Path[] archives = context.getLocalCacheArchives();
FileSystem fs = LocalFileSystem.get(conf);
代码示例来源:origin: apache/oozie
localFs = LocalFileSystem.get(new Configuration(false));
代码示例来源:origin: org.apache.oozie/oozie-core
localFs = LocalFileSystem.get(new Configuration(false));
代码示例来源:origin: org.apache.hadoop/hadoop-mapreduce-client-app
assertTrue("Minicluster contains some history files",
dfsFileSystem.globStatus(new Path(t.dfsWorkDir + "/*")).length != 0);
FileSystem localFileSystem = LocalFileSystem.get(conf);
assertFalse("No history directory on non-default file system",
localFileSystem.exists(new Path(t.dfsWorkDir)));