use of org.apache.hadoop.hdfs.protocol.proto.ClientDatanodeProtocolProtos.CancelPlanRequestProto in project hadoop by apache.
the class ClientDatanodeProtocolTranslatorPB method cancelDiskBalancePlan.
/**
* Cancels an executing disk balancer plan.
*
* @param planID - A SHA-1 hash of the plan string.
* @throws IOException on error
*/
@Override
public void cancelDiskBalancePlan(String planID) throws IOException {
try {
CancelPlanRequestProto request = CancelPlanRequestProto.newBuilder().setPlanID(planID).build();
rpcProxy.cancelDiskBalancerPlan(NULL_CONTROLLER, request);
} catch (ServiceException e) {
throw ProtobufHelper.getRemoteException(e);
}
}
Aggregations