[ 
https://issues.apache.org/jira/browse/YARN-9519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839675#comment-16839675
 ] 

Hudson commented on YARN-9519:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16548 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/16548/])
YARN-9519. TFile log aggregation file format is not working for (sunilg: rev 
7d831eca645f93d064975ebae35a7cbea3bbad31)
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/ifile/LogAggregationIndexedFileController.java
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/logaggregation/filecontroller/TestLogAggregationFileControllerFactory.java
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/tfile/LogAggregationTFileController.java
* (edit) 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/filecontroller/LogAggregationFileController.java


> TFile log aggregation file format is not working for 
> yarn.log-aggregation.TFile.remote-app-log-dir config
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-9519
>                 URL: https://issues.apache.org/jira/browse/YARN-9519
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: log-aggregation
>    Affects Versions: 3.2.0
>            Reporter: Adam Antal
>            Assignee: Adam Antal
>            Priority: Major
>             Fix For: 3.3.0, 3.2.1, 3.1.3
>
>         Attachments: YARN-9519.001.patch, YARN-9519.002.patch, 
> YARN-9519.003.patch, YARN-9519.004.patch, YARN-9519.005.patch
>
>
> The TFile log aggregation file format is not sensitive to the 
> yarn.log-aggregation.TFile.remote-app-log-dir config.
> In {{LogAggregationTFileController$initInternal}}:
> {code:java}
>     this.remoteRootLogDir = new Path(
>         conf.get(YarnConfiguration.NM_REMOTE_APP_LOG_DIR,
>             YarnConfiguration.DEFAULT_NM_REMOTE_APP_LOG_DIR));
> {code}
> So the remoteRootLogDir is only aware of the 
> yarn.nodemanager.remote-app-log-dir config, while other file format, like 
> IFile defaults to the file format config, so its priority is higher.
> From {{LogAggregationIndexedFileController$initInternal}}:
> {code:java}
>     String remoteDirStr = String.format(
>         YarnConfiguration.LOG_AGGREGATION_REMOTE_APP_LOG_DIR_FMT,
>         this.fileControllerName);
>     String remoteDir = conf.get(remoteDirStr);
>     if (remoteDir == null || remoteDir.isEmpty()) {
>       remoteDir = conf.get(YarnConfiguration.NM_REMOTE_APP_LOG_DIR,
>           YarnConfiguration.DEFAULT_NM_REMOTE_APP_LOG_DIR);
>     }
> {code}
> (Where these configs are: )
> {code:java}
> public static final String LOG_AGGREGATION_REMOTE_APP_LOG_DIR_FMT
>       = YARN_PREFIX + "log-aggregation.%s.remote-app-log-dir";
> public static final String NM_REMOTE_APP_LOG_DIR = 
>     NM_PREFIX + "remote-app-log-dir";
> {code}
> I suggest TFile should try to obtain the remote dir config from 
> yarn.log-aggregation.TFile.remote-app-log-dir first, and only if that is not 
> specified falls back to the yarn.nodemanager.remote-app-log-dir config.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to