public class YarnUtils extends Object
| Constructor and Description |
|---|
YarnUtils() |
public static DataAccessException convertYarnAccessException(YarnRuntimeException e)
YarnRuntimeException to a Spring dao exception.e - the YarnRuntimeExceptionDataAccessExceptionpublic static DataAccessException convertYarnAccessException(IOException e)
IOException to a Spring dao exception.e - the IOExceptionDataAccessExceptionpublic static DataAccessException convertYarnAccessException(org.apache.hadoop.ipc.RemoteException e)
RemoteException to a Spring dao exception.e - the RemoteExceptionDataAccessExceptionpublic static DataAccessException convertYarnAccessException(YarnException e)
YarnException to a Spring dao exception.e - the YarnExceptionDataAccessExceptionpublic static ApplicationAttemptId getApplicationAttemptId(Map<String,String> environment)
ApplicationAttemptId from environment variables.environment - Map of environment variablesApplicationAttemptIdpublic static String getPrincipal(Configuration conf) throws IOException
conf - the confIOException - Signals that an I/O exception has occurred.public static String getUserName(Configuration conf)
conf - the Yarn configurationpublic static InetSocketAddress getAddress(Configuration conf)
conf - the Yarn configurationpublic static Configuration merge(Configuration base, Configuration merge)
base - the configuration to merge tomerge - the configuration to mergepublic static String toString(Configuration conf)
Configuration.conf - the configuration