@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 org.apache.hadoop.security.token.TokenIdentifier> |
convertFromYarn(org.apache.hadoop.yarn.api.records.Token protoToken,
InetSocketAddress serviceAddr)
Convert a protobuf token into a rpc token and set its service.
|
static <T extends org.apache.hadoop.security.token.TokenIdentifier> |
convertFromYarn(org.apache.hadoop.yarn.api.records.Token protoToken,
org.apache.hadoop.io.Text service)
Convert a protobuf token into a rpc token and set its service.
|
static org.apache.hadoop.fs.Path |
getPathFromYarnURL(org.apache.hadoop.yarn.api.records.URL url)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.URL |
getYarnUrlFromPath(org.apache.hadoop.fs.Path path)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.URL |
getYarnUrlFromURI(URI uri)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
toApplicationAttemptId(String applicationAttemptIdStr)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.ApplicationId |
toApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
String applicationIdStr)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.ApplicationId |
toApplicationId(String appIdStr)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.ContainerId |
toContainerId(String containerIdStr)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.NodeId |
toNodeId(String nodeIdStr)
Deprecated.
|
static org.apache.hadoop.yarn.api.records.NodeId |
toNodeIdWithDefaultPort(String nodeIdStr) |
static String |
toString(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Deprecated.
|
static String |
toString(org.apache.hadoop.yarn.api.records.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 org.apache.hadoop.fs.Path getPathFromYarnURL(org.apache.hadoop.yarn.api.records.URL url) throws URISyntaxException
URL.toPath()
instead.url
- url to convertURL
URISyntaxException
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.URL getYarnUrlFromPath(org.apache.hadoop.fs.Path path)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.URL getYarnUrlFromURI(URI uri)
@InterfaceAudience.Public @Deprecated public static String toString(org.apache.hadoop.yarn.api.records.ApplicationId appId)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.ApplicationId toApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory, String applicationIdStr)
@InterfaceAudience.Public @Deprecated public static String toString(org.apache.hadoop.yarn.api.records.ContainerId cId)
@InterfaceAudience.Private @InterfaceStability.Unstable public static org.apache.hadoop.yarn.api.records.NodeId toNodeIdWithDefaultPort(String nodeIdStr)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.NodeId toNodeId(String nodeIdStr)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.ContainerId toContainerId(String containerIdStr)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.ApplicationAttemptId toApplicationAttemptId(String applicationAttemptIdStr)
@InterfaceAudience.Public @Deprecated public static org.apache.hadoop.yarn.api.records.ApplicationId toApplicationId(String appIdStr)
public static <T extends org.apache.hadoop.security.token.TokenIdentifier> org.apache.hadoop.security.token.Token<T> convertFromYarn(org.apache.hadoop.yarn.api.records.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 org.apache.hadoop.security.token.TokenIdentifier> org.apache.hadoop.security.token.Token<T> convertFromYarn(org.apache.hadoop.yarn.api.records.Token protoToken, org.apache.hadoop.io.Text service)
protoToken
- the yarn tokenservice
- the service for the tokenCopyright © 2008–2018 Apache Software Foundation. All rights reserved.