|
@@ -18,17 +18,20 @@
|
|
|
|
|
|
package org.apache.hadoop.yarn.api.protocolrecords.impl.pb;
|
|
|
|
|
|
-import org.apache.hadoop.classification.InterfaceAudience.Private;
|
|
|
-import org.apache.hadoop.classification.InterfaceStability.Unstable;
|
|
|
import java.util.EnumSet;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
+
|
|
|
+import org.apache.hadoop.classification.InterfaceAudience.Private;
|
|
|
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
|
|
|
import org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest;
|
|
|
import org.apache.hadoop.yarn.api.records.NodeState;
|
|
|
+import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils;
|
|
|
import org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto;
|
|
|
import org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto;
|
|
|
import org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProtoOrBuilder;
|
|
|
-import org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils;
|
|
|
+
|
|
|
+import com.google.protobuf.TextFormat;
|
|
|
|
|
|
@Private
|
|
|
@Unstable
|
|
@@ -152,6 +155,6 @@ public class GetClusterNodesRequestPBImpl extends GetClusterNodesRequest {
|
|
|
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
- return getProto().toString().replaceAll("\\n", ", ").replaceAll("\\s+", " ");
|
|
|
+ return TextFormat.shortDebugString(getProto());
|
|
|
}
|
|
|
}
|