2021SC@SDUSC
Hadoop源码分析(二)——HDFS架构和分布式文件系统
4.DistributedFileSystem分布式文件系统
4.3 成员方法
public void initialize (URI uri, Configuration conf) throws IOException{
super.initialize(uri, conf);
setConf(conf);
String host = uri.getHost();
if(host == null) {
throw new IOException("Incomplete HDFS URI, no host: "+ uri);
}
InetSocketAddress namenode = NameNode.getAdress( uri.getAuthority());
this.dfs = new DFSClient(nanenode, conf, statistics);
this.uri = URI.create(uri.getScheme