File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
hadoop-common-project/hadoop-common
hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff 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+
225228Release 2.0.0-alpha - UNRELEASED
226229
227230 INCOMPATIBLE CHANGES
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER
6767export 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.
7073export HADOOP_PID_DIR=${HADOOP_PID_DIR}
7174export HADOOP_SECURE_DN_PID_DIR=${HADOOP_PID_DIR}
7275
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments