ConverterUtils { @Private @InterfaceStability.Unstable public static NodeId toNodeIdWithDefaultPort(String nodeIdStr) { if (nodeIdStr.indexOf(":") < 0) { return NodeId.fromString(nodeIdStr + ":0"); } return NodeId.fromString(nodeIdStr); }  @Public @Deprecated static Path getPathFromYarnURL(URL url); @Public @Deprecated static URL getYarnUrlFromPath(Path path); @Public @Deprecated static URL getYarnUrlFromURI(URI uri); @Public @Deprecated static String toString(ApplicationId appId); @Public @Deprecated static ApplicationId toApplicationId(RecordFactory recordFactory,
      String applicationIdStr); @Public @Deprecated static String toString(ContainerId cId); @Private @InterfaceStability.Unstable static NodeId toNodeIdWithDefaultPort(String nodeIdStr); @Public @Deprecated static NodeId toNodeId(String nodeIdStr); @Public @Deprecated static ContainerId toContainerId(String containerIdStr); @Public @Deprecated static ApplicationAttemptId toApplicationAttemptId(
      String applicationAttemptIdStr); @Public @Deprecated static ApplicationId toApplicationId(
      String appIdStr); static Token<T> convertFromYarn(
      org.apache.hadoop.yarn.api.records.Token protoToken,
      InetSocketAddress serviceAddr); static Token<T> convertFromYarn(
      org.apache.hadoop.yarn.api.records.Token protoToken,
      Text service); static final String APPLICATION_PREFIX; static final String CONTAINER_PREFIX; static final String APPLICATION_ATTEMPT_PREFIX; }
@Test public void testNodeIdWithDefaultPort() throws URISyntaxException { NodeId nid; nid = ConverterUtils.toNodeIdWithDefaultPort("node:10"); assertEquals(nid.getPort(), 10); assertEquals(nid.getHost(), "node"); nid = ConverterUtils.toNodeIdWithDefaultPort("node"); assertEquals(nid.getPort(), 0); assertEquals(nid.getHost(), "node"); }