@InterfaceAudience.Public public class ConverterUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_ATTEMPT_PREFIX |
static String |
APPLICATION_PREFIX |
static String |
CONTAINER_PREFIX |
Constructor and Description |
---|
ConverterUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends TokenIdentifier> |
convertFromYarn(Token protoToken,
InetSocketAddress serviceAddr)
Convert a protobuf token into a rpc token and set its service.
|
static <T extends TokenIdentifier> |
convertFromYarn(Token protoToken,
Text service)
Convert a protobuf token into a rpc token and set its service.
|
static Path |
getPathFromYarnURL(URL url)
Deprecated.
|
static URL |
getYarnUrlFromPath(Path path)
Deprecated.
|
static URL |
getYarnUrlFromURI(URI uri)
Deprecated.
|
static ApplicationAttemptId |
toApplicationAttemptId(String applicationAttemptIdStr)
Deprecated.
|
static ApplicationId |
toApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
String applicationIdStr)
Deprecated.
|
static ApplicationId |
toApplicationId(String appIdStr)
Deprecated.
|
static ContainerId |
toContainerId(String containerIdStr)
Deprecated.
|
static NodeId |
toNodeId(String nodeIdStr)
Deprecated.
|
static String |
toString(ApplicationId appId)
Deprecated.
|
static String |
toString(ContainerId cId)
Deprecated.
|
public static final String APPLICATION_PREFIX
public static final String CONTAINER_PREFIX
public static final String APPLICATION_ATTEMPT_PREFIX
@InterfaceAudience.Public @Deprecated public static Path getPathFromYarnURL(URL url) throws URISyntaxException
URL.toPath()
instead.url
- url to convertURL
URISyntaxException
@InterfaceAudience.Public @Deprecated public static URL getYarnUrlFromPath(Path path)
@InterfaceAudience.Public @Deprecated public static URL getYarnUrlFromURI(URI uri)
@InterfaceAudience.Public @Deprecated public static String toString(ApplicationId appId)
@InterfaceAudience.Public @Deprecated public static ApplicationId toApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory, String applicationIdStr)
@InterfaceAudience.Public @Deprecated public static String toString(ContainerId cId)
@InterfaceAudience.Public @Deprecated public static NodeId toNodeId(String nodeIdStr)
@InterfaceAudience.Public @Deprecated public static ContainerId toContainerId(String containerIdStr)
@InterfaceAudience.Public @Deprecated public static ApplicationAttemptId toApplicationAttemptId(String applicationAttemptIdStr)
@InterfaceAudience.Public @Deprecated public static ApplicationId toApplicationId(String appIdStr)
public static <T extends TokenIdentifier> Token<T> convertFromYarn(Token protoToken, InetSocketAddress serviceAddr)
convertFromYarn(org.apache.hadoop.yarn.api.records.Token,
org.apache.hadoop.io.Text)
instead.protoToken
- the yarn tokenserviceAddr
- the connect address for the servicepublic static <T extends TokenIdentifier> Token<T> convertFromYarn(Token protoToken, Text service)
protoToken
- the yarn tokenservice
- the service for the tokenCopyright © 2020 Apache Software Foundation. All rights reserved.