Search in sources :

Example 1 with CancelPlanRequestProto

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);
    }
}
Also used : CancelPlanRequestProto(org.apache.hadoop.hdfs.protocol.proto.ClientDatanodeProtocolProtos.CancelPlanRequestProto) ServiceException(com.google.protobuf.ServiceException)

Aggregations

ServiceException (com.google.protobuf.ServiceException)1 CancelPlanRequestProto (org.apache.hadoop.hdfs.protocol.proto.ClientDatanodeProtocolProtos.CancelPlanRequestProto)1