/// <exception cref="System.IO.IOException"/> /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> private int RemoveFromClusterNodeLabels(string args) { ICollection <string> labels = BuildNodeLabelsSetFromStr(args); if (directlyAccessNodeLabelStore) { GetNodeLabelManagerInstance(GetConf()).RemoveFromClusterNodeLabels(labels); } else { ResourceManagerAdministrationProtocol adminProtocol = CreateAdminProtocol(); RemoveFromClusterNodeLabelsRequest request = RemoveFromClusterNodeLabelsRequest.NewInstance (labels); adminProtocol.RemoveFromClusterNodeLabels(request); } return(0); }
RemoveFromClusterNodeLabels(RpcController controller, YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto proto) { RemoveFromClusterNodeLabelsRequestPBImpl request = new RemoveFromClusterNodeLabelsRequestPBImpl (proto); try { RemoveFromClusterNodeLabelsResponse response = real.RemoveFromClusterNodeLabels(request ); return(((RemoveFromClusterNodeLabelsResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }