svn commit: r360157 - head/devel/hadoop/files
Dmitry Sivachenko
demon at FreeBSD.org
Wed Jul 2 08:52:16 UTC 2014
Author: demon
Date: Wed Jul 2 08:52:14 2014
New Revision: 360157
URL: http://svnweb.freebsd.org/changeset/ports/360157
QAT: https://qat.redports.org/buildarchive/r360157/
Log:
Both LOG_DIR and PID_DIR are created during package installation with
correct permissions.
Do not try to do the same every time daemon starts.
Modified:
head/devel/hadoop/files/datanode.in
head/devel/hadoop/files/jobtracker.in
head/devel/hadoop/files/namenode.in
head/devel/hadoop/files/secondarynamenode.in
head/devel/hadoop/files/tasktracker.in
Modified: head/devel/hadoop/files/datanode.in
==============================================================================
--- head/devel/hadoop/files/datanode.in Wed Jul 2 08:25:06 2014 (r360156)
+++ head/devel/hadoop/files/datanode.in Wed Jul 2 08:52:14 2014 (r360157)
@@ -50,18 +50,6 @@ datanode_init()
do
. ${f}
done
- if [ -n "${datanode_log_dir}" ]
- then
- HADOOP_LOG_DIR=${datanode_log_dir}
- fi
-
- if [ -n "${datanode_pid_dir}" ]
- then
- HADOOP_LOG_DIR=${datanode_pid_dir}
- fi
-
- install -d -m 755 -o ${datanode_user} -g ${datanode_group} ${HADOOP_PID_DIR}
- install -d -m 755 -o ${datanode_user} -g ${datanode_group} ${HADOOP_LOG_DIR}
}
datanode_stop ()
Modified: head/devel/hadoop/files/jobtracker.in
==============================================================================
--- head/devel/hadoop/files/jobtracker.in Wed Jul 2 08:25:06 2014 (r360156)
+++ head/devel/hadoop/files/jobtracker.in Wed Jul 2 08:52:14 2014 (r360157)
@@ -50,18 +50,6 @@ jobtracker_init()
do
. ${f}
done
- if [ -n "${jobtracker_log_dir}" ]
- then
- HADOOP_LOG_DIR=${jobtracker_log_dir}
- fi
-
- if [ -n "${jobtracker_pid_dir}" ]
- then
- HADOOP_LOG_DIR=${jobtracker_pid_dir}
- fi
-
- install -d -m 755 -o ${jobtracker_user} -g ${jobtracker_group} ${HADOOP_PID_DIR}
- install -d -m 755 -o ${jobtracker_user} -g ${jobtracker_group} ${HADOOP_LOG_DIR}
}
jobtracker_stop ()
Modified: head/devel/hadoop/files/namenode.in
==============================================================================
--- head/devel/hadoop/files/namenode.in Wed Jul 2 08:25:06 2014 (r360156)
+++ head/devel/hadoop/files/namenode.in Wed Jul 2 08:52:14 2014 (r360157)
@@ -50,18 +50,6 @@ namenode_init()
do
. ${f}
done
- if [ -n "${namenode_log_dir}" ]
- then
- HADOOP_LOG_DIR=${namenode_log_dir}
- fi
-
- if [ -n "${namenode_pid_dir}" ]
- then
- HADOOP_LOG_DIR=${namenode_pid_dir}
- fi
-
- install -d -m 755 -o ${namenode_user} -g ${namenode_group} ${HADOOP_PID_DIR}
- install -d -m 755 -o ${namenode_user} -g ${namenode_group} ${HADOOP_LOG_DIR}
}
namenode_stop ()
Modified: head/devel/hadoop/files/secondarynamenode.in
==============================================================================
--- head/devel/hadoop/files/secondarynamenode.in Wed Jul 2 08:25:06 2014 (r360156)
+++ head/devel/hadoop/files/secondarynamenode.in Wed Jul 2 08:52:14 2014 (r360157)
@@ -50,18 +50,6 @@ secondarynamenode_init()
do
. ${f}
done
- if [ -n "${secondarynamenode_log_dir}" ]
- then
- HADOOP_LOG_DIR=${secondarynamenode_log_dir}
- fi
-
- if [ -n "${secondarynamenode_pid_dir}" ]
- then
- HADOOP_LOG_DIR=${secondarynamenode_pid_dir}
- fi
-
- install -d -m 755 -o ${secondarynamenode_user} -g ${secondarynamenode_group} ${HADOOP_PID_DIR}
- install -d -m 755 -o ${secondarynamenode_user} -g ${secondarynamenode_group} ${HADOOP_LOG_DIR}
}
secondarynamenode_stop ()
Modified: head/devel/hadoop/files/tasktracker.in
==============================================================================
--- head/devel/hadoop/files/tasktracker.in Wed Jul 2 08:25:06 2014 (r360156)
+++ head/devel/hadoop/files/tasktracker.in Wed Jul 2 08:52:14 2014 (r360157)
@@ -50,18 +50,6 @@ tasktracker_init()
do
. ${f}
done
- if [ -n "${tasktracker_log_dir}" ]
- then
- HADOOP_LOG_DIR=${tasktracker_log_dir}
- fi
-
- if [ -n "${tasktracker_pid_dir}" ]
- then
- HADOOP_LOG_DIR=${tasktracker_pid_dir}
- fi
-
- install -d -m 755 -o ${tasktracker_user} -g ${tasktracker_group} ${HADOOP_PID_DIR}
- install -d -m 755 -o ${tasktracker_user} -g ${tasktracker_group} ${HADOOP_LOG_DIR}
}
tasktracker_stop ()
More information about the svn-ports-all
mailing list