@InterfaceAudience.Private public class LogAggregationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TMP_FILE_SUFFIX |
| Constructor and Description |
|---|
LogAggregationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getNodeString(NodeId nodeId)
Converts a nodeId to a form used in the app log file name.
|
static String |
getNodeString(String nodeId) |
static Path |
getRemoteAppLogDir(Path remoteRootLogDir,
ApplicationId appId,
String user,
String suffix)
Gets the remote app log dir.
|
static Path |
getRemoteLogSuffixedDir(Path remoteRootLogDir,
String user,
String suffix)
Gets the remote suffixed log dir for the user.
|
static Path |
getRemoteLogUserDir(Path remoteRootLogDir,
String user)
Gets the remote log user dir.
|
static String |
getRemoteNodeLogDirSuffix(Configuration conf)
Returns the suffix component of the log dir.
|
static Path |
getRemoteNodeLogFileForApp(Path remoteRootLogDir,
ApplicationId appId,
String user,
NodeId nodeId,
String suffix)
Constructs the full filename for an application's log file per node.
|
public static final String TMP_FILE_SUFFIX
public static Path getRemoteNodeLogFileForApp(Path remoteRootLogDir, ApplicationId appId, String user, NodeId nodeId, String suffix)
remoteRootLogDir - appId - user - nodeId - suffix - public static Path getRemoteAppLogDir(Path remoteRootLogDir, ApplicationId appId, String user, String suffix)
remoteRootLogDir - appId - user - suffix - public static Path getRemoteLogSuffixedDir(Path remoteRootLogDir, String user, String suffix)
remoteRootLogDir - user - suffix - public static Path getRemoteLogUserDir(Path remoteRootLogDir, String user)
remoteRootLogDir - user - public static String getRemoteNodeLogDirSuffix(Configuration conf)
conf - public static String getNodeString(NodeId nodeId)
nodeId - Copyright © 2018 CERN. All Rights Reserved.