|
@@ -631,8 +631,7 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
|
|
|
|
|
@Override // ClientProtocol
|
|
@Override // ClientProtocol
|
|
public void refreshNodes() throws IOException {
|
|
public void refreshNodes() throws IOException {
|
|
- namesystem.getBlockManager().getDatanodeManager().refreshNodes(
|
|
|
|
- new HdfsConfiguration());
|
|
|
|
|
|
+ namesystem.refreshNodes();
|
|
}
|
|
}
|
|
|
|
|
|
@Override // NamenodeProtocol
|
|
@Override // NamenodeProtocol
|
|
@@ -691,7 +690,7 @@ class NameNodeRpcServer implements NamenodeProtocols {
|
|
*/
|
|
*/
|
|
@Override // ClientProtocol
|
|
@Override // ClientProtocol
|
|
public void setBalancerBandwidth(long bandwidth) throws IOException {
|
|
public void setBalancerBandwidth(long bandwidth) throws IOException {
|
|
- namesystem.getBlockManager().getDatanodeManager().setBalancerBandwidth(bandwidth);
|
|
|
|
|
|
+ namesystem.setBalancerBandwidth(bandwidth);
|
|
}
|
|
}
|
|
|
|
|
|
@Override // ClientProtocol
|
|
@Override // ClientProtocol
|