@InterfaceAudience.Public public class ConverterUtils extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
APPLICATION_ATTEMPT_PREFIX |
static String |
APPLICATION_PREFIX |
static String |
CONTAINER_PREFIX |
コンストラクタと説明 |
---|
ConverterUtils() |
修飾子とタイプ | メソッドと説明 |
---|---|
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)
非推奨です。
|
static URL |
getYarnUrlFromPath(Path path)
非推奨です。
|
static URL |
getYarnUrlFromURI(URI uri)
非推奨です。
|
static ApplicationAttemptId |
toApplicationAttemptId(String applicationAttemptIdStr)
非推奨です。
|
static ApplicationId |
toApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
String applicationIdStr)
非推奨です。
|
static ApplicationId |
toApplicationId(String appIdStr)
非推奨です。
|
static ContainerId |
toContainerId(String containerIdStr)
非推奨です。
|
static NodeId |
toNodeId(String nodeIdStr)
非推奨です。
|
static String |
toString(ApplicationId appId)
非推奨です。
|
static String |
toString(ContainerId cId)
非推奨です。
|
public static final String APPLICATION_PREFIX
public static final String CONTAINER_PREFIX
public static final String APPLICATION_ATTEMPT_PREFIX
public ConverterUtils()
@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 © 2016 Apache Software Foundation. All rights reserved.