org.apache.hadoop.yarn.logaggregation
Class LogAggregationUtils

java.lang.Object
  extended by org.apache.hadoop.yarn.logaggregation.LogAggregationUtils

public class LogAggregationUtils
extends Object


Constructor Summary
LogAggregationUtils()
           
 
Method Summary
static org.apache.hadoop.fs.Path getRemoteAppLogDir(org.apache.hadoop.fs.Path remoteRootLogDir, org.apache.hadoop.yarn.api.records.ApplicationId appId, String user, String suffix)
          Gets the remote app log dir.
static org.apache.hadoop.fs.Path getRemoteLogSuffixedDir(org.apache.hadoop.fs.Path remoteRootLogDir, String user, String suffix)
          Gets the remote suffixed log dir for the user.
static org.apache.hadoop.fs.Path getRemoteLogUserDir(org.apache.hadoop.fs.Path remoteRootLogDir, String user)
          Gets the remote log user dir.
static String getRemoteNodeLogDirSuffix(org.apache.hadoop.conf.Configuration conf)
          Returns the suffix component of the log dir.
static org.apache.hadoop.fs.Path getRemoteNodeLogFileForApp(org.apache.hadoop.fs.Path remoteRootLogDir, org.apache.hadoop.yarn.api.records.ApplicationId appId, String user, org.apache.hadoop.yarn.api.records.NodeId nodeId, String suffix)
          Constructs the full filename for an application's log file per node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogAggregationUtils

public LogAggregationUtils()
Method Detail

getRemoteNodeLogFileForApp

public static org.apache.hadoop.fs.Path getRemoteNodeLogFileForApp(org.apache.hadoop.fs.Path remoteRootLogDir,
                                                                   org.apache.hadoop.yarn.api.records.ApplicationId appId,
                                                                   String user,
                                                                   org.apache.hadoop.yarn.api.records.NodeId nodeId,
                                                                   String suffix)
Constructs the full filename for an application's log file per node.

Parameters:
remoteRootLogDir -
appId -
user -
nodeId -
suffix -
Returns:
the remote log file.

getRemoteAppLogDir

public static org.apache.hadoop.fs.Path getRemoteAppLogDir(org.apache.hadoop.fs.Path remoteRootLogDir,
                                                           org.apache.hadoop.yarn.api.records.ApplicationId appId,
                                                           String user,
                                                           String suffix)
Gets the remote app log dir.

Parameters:
remoteRootLogDir -
appId -
user -
suffix -
Returns:
the remote application specific log dir.

getRemoteLogSuffixedDir

public static org.apache.hadoop.fs.Path getRemoteLogSuffixedDir(org.apache.hadoop.fs.Path remoteRootLogDir,
                                                                String user,
                                                                String suffix)
Gets the remote suffixed log dir for the user.

Parameters:
remoteRootLogDir -
user -
suffix -
Returns:
the remote suffixed log dir.

getRemoteLogUserDir

public static org.apache.hadoop.fs.Path getRemoteLogUserDir(org.apache.hadoop.fs.Path remoteRootLogDir,
                                                            String user)
Gets the remote log user dir.

Parameters:
remoteRootLogDir -
user -
Returns:
the remote per user log dir.

getRemoteNodeLogDirSuffix

public static String getRemoteNodeLogDirSuffix(org.apache.hadoop.conf.Configuration conf)
Returns the suffix component of the log dir.

Parameters:
conf -
Returns:
the suffix which will be appended to the user log dir.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.