|
Spring for Apache Hadoop | ||||||||
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()
|
Method Summary | |
---|---|
static org.springframework.dao.DataAccessException |
convertYarnAccessException(org.apache.hadoop.ipc.RemoteException e)
Converts RemoteException to a Spring dao exception. |
static org.springframework.dao.DataAccessException |
convertYarnAccessException(org.apache.hadoop.yarn.YarnException e)
Converts YarnException to a Spring dao exception. |
static org.springframework.dao.DataAccessException |
convertYarnAccessException(org.apache.hadoop.yarn.exceptions.YarnRemoteException e)
Converts YarnRemoteException to a Spring dao exception. |
static java.net.InetSocketAddress |
getAddress(org.apache.hadoop.conf.Configuration conf)
Gets the address. |
static org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId(java.util.Map<java.lang.String,java.lang.String> environment)
Gets ApplicationAttemptId from environment variables. |
static java.lang.String |
getPrincipal(org.apache.hadoop.conf.Configuration conf)
Gets the principal. |
static java.lang.String |
getUserName(org.apache.hadoop.conf.Configuration conf)
Gets the user name. |
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 org.springframework.dao.DataAccessException convertYarnAccessException(org.apache.hadoop.yarn.exceptions.YarnRemoteException e)
YarnRemoteException
to a Spring dao exception.
e
- the YarnRemoteException
DataAccessException
public static org.springframework.dao.DataAccessException convertYarnAccessException(org.apache.hadoop.ipc.RemoteException e)
RemoteException
to a Spring dao exception.
e
- the RemoteException
DataAccessException
public static org.springframework.dao.DataAccessException convertYarnAccessException(org.apache.hadoop.yarn.YarnException e)
YarnException
to a Spring dao exception.
e
- the YarnException
DataAccessException
public static org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId(java.util.Map<java.lang.String,java.lang.String> environment)
ApplicationAttemptId
from environment variables.
environment
- Map of environment variables
ApplicationAttemptId
public static java.lang.String getPrincipal(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
conf
- the conf
java.io.IOException
- Signals that an I/O exception has occurred.public static java.lang.String getUserName(org.apache.hadoop.conf.Configuration conf)
conf
- the Yarn configuration
public static java.net.InetSocketAddress getAddress(org.apache.hadoop.conf.Configuration conf)
conf
- the Yarn configuration
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |