[ https://issues.apache.org/jira/browse/HADOOP-8433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289352#comment-13289352 ]
Brahma Reddy Battula commented on HADOOP-8433: ---------------------------------------------- HI Jay Finger, Thanks For look.. fyi ..I had proposed following two solutions when I raised.. {quote} Solution can be removing $user or commenting HADOOP_LOG_DIR in hadoop-env.sh.. {quote} I am agreeing with you.. {quote} I don't like the approach of commenting this line out. I think a lot of admins will infer from this that uncommenting the line will result in some useful behavior {quote} It wn't harm by commenting this property since it'll be set in hadoop-daemon.sh...I think it's better to remove $USER..Please let me know.. {quote} A bigger problem is that hadoop-env.sh is sometimes included twice {quote} Anyway this will be addressed by HADOOP-8464. > Logs are getting misplaced after introducing hadoop-env.sh > ---------------------------------------------------------- > > Key: HADOOP-8433 > URL: https://issues.apache.org/jira/browse/HADOOP-8433 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 2.0.1-alpha, 3.0.0 > Reporter: Brahma Reddy Battula > Assignee: Brahma Reddy Battula > Attachments: HADOOP-8433.patch, Hadoop-8433.patch > > > It's better to comment the following in hadoop-env.sh > # Where log files are stored. $HADOOP_HOME/logs by default. > export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER > Because of this logs are placing under root($user) and this getting called > two times while starting process. > hence logs are placing at /root/root/ -- 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