Skip to content

Commit 53b8865

Browse files
committed
HADOOP-8460. Document proper setting of HADOOP_PID_DIR and HADOOP_SECURE_DN_PID_DIR (bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1345304 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1cec5c9 commit 53b8865

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ Release 2.0.1-alpha - UNRELEASED
222222
HADOOP-8452. DN logs backtrace when running under jsvc and /jmx is loaded
223223
(Andy Isaacson via bobby)
224224

225+
HADOOP-8460. Document proper setting of HADOOP_PID_DIR and
226+
HADOOP_SECURE_DN_PID_DIR (bobby)
227+
225228
Release 2.0.0-alpha - UNRELEASED
226229

227230
INCOMPATIBLE CHANGES

hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER
6767
export HADOOP_SECURE_DN_LOG_DIR=${HADOOP_LOG_DIR}/${HADOOP_HDFS_USER}
6868

6969
# The directory where pid files are stored. /tmp by default.
70+
# NOTE: this should be set to a directory that can only be written to by
71+
# the user that will run the hadoop daemons. Otherwise there is the
72+
# potential for a symlink attack.
7073
export HADOOP_PID_DIR=${HADOOP_PID_DIR}
7174
export HADOOP_SECURE_DN_PID_DIR=${HADOOP_PID_DIR}
7275

hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ClusterSetup.apt.vm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ Hadoop MapReduce Next Generation - Cluster Setup
8585
At the very least you should specify the <<<JAVA_HOME>>> so that it is
8686
correctly defined on each remote node.
8787

88+
In most cases you should also specify <<<HADOOP_PID_DIR>>> and
89+
<<<HADOOP_SECURE_DN_PID_DIR>>> to point to directories that can only be
90+
written to by the users that are going to run the hadoop daemons.
91+
Otherwise there is the potential for a symlink attack.
92+
8893
Administrators can configure individual daemons using the configuration
8994
options shown below in the table:
9095

0 commit comments

Comments
 (0)