public class YarnAppUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.permission.FsPermission |
APP_DIR_PERMISSION
File permission to be used for any application specific directory.
|
static org.apache.hadoop.fs.permission.FsPermission |
APP_FILE_PERMISSION
File permission used for any application specific file.
|
static org.apache.hadoop.fs.permission.FsPermission |
RM_STAGING_DIR_PERMISSION
Permission for the staging directory on RM.
|
static org.apache.hadoop.fs.permission.FsPermission |
RM_SYSTEM_DIR_PERMISSION
Permission for the system directory on RM.
|
| Constructor and Description |
|---|
YarnAppUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.Path |
getMapRTicketPath(org.apache.hadoop.fs.Path appDir) |
static java.lang.String |
getNMPrivateRelativeTicketLocation(java.lang.String appIdStr)
Returns the MapR ticket location relative to NodeManager private directory.
|
static org.apache.hadoop.fs.Path |
getNMPrivateTicketPath(java.lang.String appIdStr,
org.apache.hadoop.conf.Configuration conf)
Returns the absolute MapR ticket path on NodeManager private directory.
|
static org.apache.hadoop.fs.Path |
getRMStagedMapRTicketPath(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
Returns the path of MapR ticket for the given app from the staging
directory on resource manager.
|
static org.apache.hadoop.fs.Path |
getRMStagingDir(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
Returns staging dir for the given app on resource manager.
|
static org.apache.hadoop.fs.Path |
getRMSystemDir(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
Returns system dir for the given app on resource manager.
|
static org.apache.hadoop.fs.Path |
getRMSystemMapRTicketPath(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
Returns the path of MapR ticket for the given app from the system
directory on resource manager.
|
public static final org.apache.hadoop.fs.permission.FsPermission APP_DIR_PERMISSION
public static final org.apache.hadoop.fs.permission.FsPermission APP_FILE_PERMISSION
public static final org.apache.hadoop.fs.permission.FsPermission RM_SYSTEM_DIR_PERMISSION
public static final org.apache.hadoop.fs.permission.FsPermission RM_STAGING_DIR_PERMISSION
public static org.apache.hadoop.fs.Path getRMStagingDir(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.Path getRMSystemDir(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.Path getRMStagedMapRTicketPath(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.Path getRMSystemMapRTicketPath(java.lang.String appIdStr,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.fs.Path getMapRTicketPath(org.apache.hadoop.fs.Path appDir)
public static java.lang.String getNMPrivateRelativeTicketLocation(java.lang.String appIdStr)
public static org.apache.hadoop.fs.Path getNMPrivateTicketPath(java.lang.String appIdStr,
org.apache.hadoop.conf.Configuration conf)