[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534343#comment-14534343 ] Vinayakumar B commented on HDFS-6576: - +1 Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Labels: BB2015-05-TBR Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534341#comment-14534341 ] Vinayakumar B commented on HDFS-6576: - Patch looks good to me. Committing soon. Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Labels: BB2015-05-TBR Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534516#comment-14534516 ] Hudson commented on HDFS-6576: -- SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #190 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/190/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534477#comment-14534477 ] Hudson commented on HDFS-6576: -- SUCCESS: Integrated in Hadoop-Yarn-trunk #921 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/921/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534671#comment-14534671 ] Hudson commented on HDFS-6576: -- FAILURE: Integrated in Hadoop-Hdfs-trunk #2119 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2119/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534903#comment-14534903 ] Hudson commented on HDFS-6576: -- FAILURE: Integrated in Hadoop-Mapreduce-trunk #2137 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2137/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534775#comment-14534775 ] Hudson commented on HDFS-6576: -- FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #179 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/179/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534974#comment-14534974 ] Hudson commented on HDFS-6576: -- SUCCESS: Integrated in Hadoop-Mapreduce-trunk-Java8 #189 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/189/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534421#comment-14534421 ] Hudson commented on HDFS-6576: -- FAILURE: Integrated in Hadoop-trunk-Commit #7774 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/7774/]) HDFS-6576. Datanode log is generating at root directory in security mode (Contributed by surendra singh lilhore) (vinayakumarb: rev 46509617b6296eeeabf9d99e8ba365040bec05ad) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.8.0 Attachments: HDFS-6576-branch-2.patch, HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14357507#comment-14357507 ] Allen Wittenauer commented on HDFS-6576: Actually, this is fixed in trunk so only if someone needs it in branch-2. Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode, scripts Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Attachments: HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14285384#comment-14285384 ] Hadoop QA commented on HDFS-6576: - {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12651661/HDFS-6576.patch against trunk revision 6b17eb9. {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9290//console This message is automatically generated. Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.4.0 Attachments: HDFS-6576.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-6576) Datanode log is generating at root directory in security mode
[ https://issues.apache.org/jira/browse/HDFS-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14285595#comment-14285595 ] Hadoop QA commented on HDFS-6576: - {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12693578/HDFS-6576_1.patch against trunk revision 6b17eb9. {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9291//console This message is automatically generated. Datanode log is generating at root directory in security mode - Key: HDFS-6576 URL: https://issues.apache.org/jira/browse/HDFS-6576 Project: Hadoop HDFS Issue Type: Bug Components: datanode Affects Versions: 2.4.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Priority: Minor Fix For: 2.4.0 Attachments: HDFS-6576.patch, HDFS-6576_1.patch In hadoop-env.sh script we are exporting HADOOP_SECURE_DN_LOG_DIR , but in above line export statement for HADOOP_LOG_DIR is commented If in user environment HADOOP_LOG_DIR is not exported then HADOOP_SECURE_DN_LOG_DIR env variable will export with / value and DN will logs in root directory. {noformat} # Where log files are stored. $HADOOP_HOME/logs by default. #export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER # Where log files are stored in the secure data environment. export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER} {noformat} I think we should comment this line. In hadoop-daemon.sh already handled case if value of HADOOP_SECURE_DN_LOG_DIR and HADOOP_LOG_DIR is empty. In hadoop-daemon.sh we assigning value of HADOOP_SECURE_DN_LOG_DIR in HADOOP_LOG_DIR and after that we are checking if HADOOP_LOG_DIR is empty then HADOOP_LOG_DIR env variable export with $HADOOP_PREFIX/logs value {noformat} # Determine if we're starting a secure datanode, and if so, redefine appropriate variables if [ $command == datanode ] [ $EUID -eq 0 ] [ -n $HADOOP_SECURE_DN_USER ]; then export HADOOP_PID_DIR=$HADOOP_SECURE_DN_PID_DIR export HADOOP_LOG_DIR=$HADOOP_SECURE_DN_LOG_DIR export HADOOP_IDENT_STRING=$HADOOP_SECURE_DN_USER starting_secure_dn=true fi if [ $HADOOP_IDENT_STRING = ]; then export HADOOP_IDENT_STRING=$USER fi # get log directory if [ $HADOOP_LOG_DIR = ]; then export HADOOP_LOG_DIR=$HADOOP_PREFIX/logs fi {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)