You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Bruno Mahé (Created JIRA)" <ji...@apache.org> on 2011/11/16 02:36:51 UTC
[jira] [Created] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
yarn-daemon.sh unconditionnaly sets yarn.root.logger
----------------------------------------------------
Key: MAPREDUCE-3408
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: mrv2, nodemanager, resourcemanager
Affects Versions: 0.23.0, 0.23.1
Reporter: Bruno Mahé
Assignee: Bruno Mahé
yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
>From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> export YARN_ROOT_LOGGER="INFO,DRFA"
> export YARN_JHS_LOGGER="INFO,JSA"
and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
This has at least 2 issues:
* I cannot override hadoop.root.logger when using the yarn-daemon.sh script
* I cannot have different values for hadoop.root.logger and yarn.root.logger
I currently see two different ways to proceed forward:
1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Bruno Mahé (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Mahé updated MAPREDUCE-3408:
----------------------------------
Status: Patch Available (was: Open)
Please find patch attached
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155533#comment-13155533 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #1388 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1388/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev)
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205200
Files :
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153116#comment-13153116 ]
Hadoop QA commented on MAPREDUCE-3408:
--------------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12504258/MAPREDUCE-3408.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.mapreduce.v2.TestMRJobs
org.apache.hadoop.mapred.TestMiniMRClientCluster
org.apache.hadoop.mapred.TestClientRedirect
org.apache.hadoop.mapreduce.v2.TestUberAM
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1322//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/1322//console
This message is automatically generated.
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155534#comment-13155534 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Common-trunk-Commit #1315 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1315/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev)
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205200
Files :
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155845#comment-13155845 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Hdfs-trunk #872 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/872/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev)
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205200
Files :
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155852#comment-13155852 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Mapreduce-0.23-Build #102 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/102/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev) - Merging r1205200 from trunk
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205201
Files :
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155525#comment-13155525 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Hdfs-0.23-Commit #203 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/203/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev) - Merging r1205200 from trunk
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205201
Files :
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155840#comment-13155840 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Hdfs-0.23-Build #85 (See [https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/85/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev) - Merging r1205200 from trunk
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205201
Files :
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155540#comment-13155540 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Mapreduce-0.23-Commit #217 (See [https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/217/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev) - Merging r1205200 from trunk
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205201
Files :
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155863#comment-13155863 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Mapreduce-trunk #906 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/906/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev)
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205200
Files :
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Bruno Mahé (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Mahé updated MAPREDUCE-3408:
----------------------------------
Attachment: MAPREDUCE-3408.patch
I changed my mind and went for option 1/
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Bruno Mahé (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151835#comment-13151835 ]
Bruno Mahé commented on MAPREDUCE-3408:
---------------------------------------
IMHO option 2/ is the safest and most conservative approach.
I will prepare a patch tomorrow.
Please let me know if you think of a better way.
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155552#comment-13155552 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #1338 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1338/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev)
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205200
Files :
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155526#comment-13155526 ]
Hudson commented on MAPREDUCE-3408:
-----------------------------------
Integrated in Hadoop-Common-0.23-Commit #206 (See [https://builds.apache.org/job/Hadoop-Common-0.23-Commit/206/])
MAPREDUCE-3408. yarn-daemon.sh unconditionnaly sets yarn.root.logger (Bruno Mahe via mahadev) - Merging r1205200 from trunk
mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1205201
Files :
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/branches/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3408) yarn-daemon.sh unconditionnaly
sets yarn.root.logger
Posted by "Mahadev konar (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated MAPREDUCE-3408:
-------------------------------------
Resolution: Fixed
Fix Version/s: 0.23.1
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Looks good. Just committed this to trunk and 0.23. Thanks Bruno.
> yarn-daemon.sh unconditionnaly sets yarn.root.logger
> ----------------------------------------------------
>
> Key: MAPREDUCE-3408
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3408
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, nodemanager, resourcemanager
> Affects Versions: 0.23.0, 0.23.1
> Reporter: Bruno Mahé
> Assignee: Bruno Mahé
> Labels: bigtop
> Fix For: 0.23.1
>
> Attachments: MAPREDUCE-3408.patch
>
>
> yarn-daemon.sh unconditionnaly sets yarn.root.logger which then prevent any override from happening.
> From ./hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh:
> > export YARN_ROOT_LOGGER="INFO,DRFA"
> > export YARN_JHS_LOGGER="INFO,JSA"
> and then yarn-daemon.sh will call "$YARN_HOME"/bin/yarn which does the following:
> > YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> > YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
> This has at least 2 issues:
> * I cannot override hadoop.root.logger when using the yarn-daemon.sh script
> * I cannot have different values for hadoop.root.logger and yarn.root.logger
> I currently see two different ways to proceed forward:
> 1/ Make the script yarn-daemon.sh only sets a default value for YARN_ROOT_LOGGER if this variable is not defined
> 2/ Remove the quoted code from yarn-daemon.sh since yarn already does something similar
> 3/ Entirely remove that chunk and let people define their logging however they want through some properties files (see log4j.properties in the conf directories for instance)
> I would also use the variable HADOOP_ROOT_LOGGER for hadoop.root.logger if either option 1/ or 2/ would be taken.
> I don't really have any preference toward any of these solutions. What would you recommend? What is the Apache Hadoop way for this matter?
> Note: This is probably happening as well for the other daemons, and I will take a look at it once this issue is resolved.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira