@InterfaceAudience.Private 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() |
public static final String APPLICATION_PREFIX
public static final String CONTAINER_PREFIX
public static final String APPLICATION_ATTEMPT_PREFIX
public static Path getPathFromYarnURL(URL url) throws URISyntaxException
url - url to convertURLURISyntaxExceptionpublic static Map<String,String> convertToString(Map<CharSequence,CharSequence> env)
env - map for convertingpublic static String toString(ApplicationId appId)
public static ApplicationId toApplicationId(RecordFactory recordFactory, String appIdStr)
public static String toString(ContainerId cId)
public static ContainerId toContainerId(String containerIdStr)
public static ApplicationAttemptId toApplicationAttemptId(String applicationAttmeptIdStr)
public static ApplicationId toApplicationId(String appIdStr)
public static <T extends org.apache.hadoop.security.token.TokenIdentifier> org.apache.hadoop.security.token.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 org.apache.hadoop.security.token.TokenIdentifier> org.apache.hadoop.security.token.Token<T> convertFromYarn(Token protoToken, Text service)
protoToken - the yarn tokenservice - the service for the tokenCopyright © 2018 CERN. All Rights Reserved.