freebsd-ports/devel/hadoop2/files/patch-hadoop-common-project-hadoop-common-src-main-bin-hadoop-daemon.sh
Dmitry Sivachenko d838ee7023 Add a port for hadoop version 2.
Not perfect but reasonable starting point.
2014-07-04 14:11:02 +00:00

14 lines
473 B
Bash

--- hadoop-common-project/hadoop-common/src/main/bin/hadoop-daemon.sh.orig 2014-06-21 09:40:05.000000000 +0400
+++ hadoop-common-project/hadoop-common/src/main/bin/hadoop-daemon.sh 2014-07-03 21:37:24.000000000 +0400
@@ -97,11 +97,6 @@
export HADOOP_LOG_DIR="$HADOOP_PREFIX/logs"
fi
-if [ ! -w "$HADOOP_LOG_DIR" ] ; then
- mkdir -p "$HADOOP_LOG_DIR"
- chown $HADOOP_IDENT_STRING $HADOOP_LOG_DIR
-fi
-
if [ "$HADOOP_PID_DIR" = "" ]; then
HADOOP_PID_DIR=/tmp
fi