|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.YarnUtils
public class YarnUtils
Different utilities.
| Constructor Summary | |
|---|---|
YarnUtils()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YarnUtils()
| Method Detail |
|---|
public static DataAccessException convertYarnAccessException(YarnRuntimeException e)
YarnRuntimeException to a Spring dao exception.
e - the YarnRuntimeException
DataAccessExceptionpublic static DataAccessException convertYarnAccessException(IOException e)
IOException to a Spring dao exception.
e - the IOException
DataAccessExceptionpublic static DataAccessException convertYarnAccessException(org.apache.hadoop.ipc.RemoteException e)
RemoteException to a Spring dao exception.
e - the RemoteException
DataAccessExceptionpublic static DataAccessException convertYarnAccessException(YarnException e)
YarnException to a Spring dao exception.
e - the YarnException
DataAccessExceptionpublic static ApplicationAttemptId getApplicationAttemptId(Map<String,String> environment)
ApplicationAttemptId from environment variables.
environment - Map of environment variables
ApplicationAttemptId
public static String getPrincipal(Configuration conf)
throws IOException
conf - the conf
IOException - Signals that an I/O exception has occurred.public static String getUserName(Configuration conf)
conf - the Yarn configuration
public static InetSocketAddress getAddress(Configuration conf)
conf - the Yarn configuration
public static Configuration merge(Configuration base,
Configuration merge)
base - the configuration to merge tomerge - the configuration to merge
public static String toString(Configuration conf)
Configuration.
conf - the configuration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||