HDFS-15839. RBF: Cannot get method setBalancerBandwidth on Router Client. Contributed by Yang Yun.
Only Prod Changes: Test already cherry-picked as part of HDFS-16310 via (496657c63f
)
This commit is contained in:
parent
0ff544951a
commit
df4e59318f
@ -1179,7 +1179,7 @@ public void setBalancerBandwidth(long bandwidth) throws IOException {
|
|||||||
rpcServer.checkOperation(NameNode.OperationCategory.UNCHECKED);
|
rpcServer.checkOperation(NameNode.OperationCategory.UNCHECKED);
|
||||||
|
|
||||||
RemoteMethod method = new RemoteMethod("setBalancerBandwidth",
|
RemoteMethod method = new RemoteMethod("setBalancerBandwidth",
|
||||||
new Class<?>[] {Long.class}, bandwidth);
|
new Class<?>[] {long.class}, bandwidth);
|
||||||
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
|
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
|
||||||
rpcClient.invokeConcurrent(nss, method, true, false);
|
rpcClient.invokeConcurrent(nss, method, true, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user