本文整理了Java中org.apache.hadoop.hdfs.server.datanode.DataNode.initBlockPool()
方法的一些代码示例,展示了DataNode.initBlockPool()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataNode.initBlockPool()
方法的具体详情如下:
包路径:org.apache.hadoop.hdfs.server.datanode.DataNode
类名称:DataNode
方法名:initBlockPool
[英]One of the Block Pools has successfully connected to its NN. This initializes the local storage for that block pool, checks consistency of the NN's cluster ID, etc. If this is the first block pool to register, this also initializes the datanode-scoped storage.
[中]其中一个块池已成功连接到其NN。这将初始化该块池的本地存储,检查NN的群集ID的一致性等。如果这是要注册的第一个块池,则还将初始化datanode范围的存储。
代码示例来源:origin: org.apache.hadoop/hadoop-hdfs
dn.initBlockPool(this);
success = true;
} finally {
代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs
return null;
}).when(mockDn).initBlockPool(Mockito.any(BPOfferService.class));
BPOfferService bpos = setupBPOSForNNs(mockDn, mockNN1, mockNN2);
List<BPServiceActor> actors = bpos.getBPServiceActors();
代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs
dn.initBlockPool(this);
success = true;
} finally {
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
dn.initBlockPool(this);
success = true;
} finally {
内容来源于网络,如有侵权,请联系作者删除!