BIGTOP-1006: Explicitly state the working directory to be used in init scripts instea...
authorMark Grover <grover.markgrover@gmail.com>
Tue, 11 Jun 2013 22:59:09 +0000 (15:59 -0700)
committerRoman Shaposhnik <rvs@cloudera.com>
Sat, 22 Jun 2013 00:08:59 +0000 (17:08 -0700)
17 files changed:
bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc
bigtop-packages/src/common/hadoop/hadoop-hdfs-journalnode.svc
bigtop-packages/src/common/hadoop/hadoop-hdfs-namenode.svc
bigtop-packages/src/common/hadoop/hadoop-hdfs-secondarynamenode.svc
bigtop-packages/src/common/hadoop/hadoop-hdfs-zkfc.svc
bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
bigtop-packages/src/common/hadoop/hadoop-mapreduce-historyserver.svc
bigtop-packages/src/common/hadoop/hadoop-yarn-nodemanager.svc
bigtop-packages/src/common/hadoop/hadoop-yarn-proxyserver.svc
bigtop-packages/src/common/hadoop/hadoop-yarn-resourcemanager.svc
bigtop-packages/src/common/hbase/hbase.svc
bigtop-packages/src/common/hcatalog/hcatalog-server.svc
bigtop-packages/src/common/hcatalog/webhcat-server.svc
bigtop-packages/src/common/hive/hive-metastore.svc
bigtop-packages/src/common/hive/hive-server.svc
bigtop-packages/src/common/sqoop/sqoop-server.svc
bigtop-packages/src/templates/init.d.tmpl

index 9f7ef8a..10d45e4 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-hdfs-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
 SVC_USER="hdfs"
+WORKING_DIR="/var/lib/hadoop-hdfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index 431a99c..a0a43a1 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-hdfs-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
 SVC_USER="hdfs"
+WORKING_DIR="/var/lib/hadoop-hdfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index 6ace898..f17014e 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-hdfs-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
 SVC_USER="hdfs"
+WORKING_DIR="/var/lib/hadoop-hdfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index 3164566..625ca3e 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-hdfs-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
 SVC_USER="hdfs"
+WORKING_DIR="/var/lib/hadoop-hdfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index aaa1d28..c055def 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-hdfs-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop/sbin/hadoop-daemon.sh"
 SVC_USER="hdfs"
+WORKING_DIR="/var/lib/hadoop-hdfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-hdfs/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index def1c65..de4d6d2 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop-httpfs/sbin/httpfs.sh"
 SVC_USER="$HADOOP_NAME"
+WORKING_DIR="/var/run/hadoop-httpfs"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/$DAEMON/conf"
 PIDFILE="/var/run/$DAEMON/hadoop-$SVC_USER-$HADOOP_NAME.pid"
index ee4c4f7..b5b6935 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-mapreduce-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop-mapreduce/sbin/mr-jobhistory-daemon.sh"
 SVC_USER="mapred"
+WORKING_DIR="/var/lib/hadoop-mapreduce"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-mapreduce/mapred-$SVC_USER-$HADOOP_NAME.pid"
index e5950cd..925371a 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-yarn-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop-yarn/sbin/yarn-daemon.sh"
 SVC_USER="yarn"
+WORKING_DIR="/var/lib/hadoop-yarn"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-yarn/yarn-$SVC_USER-$HADOOP_NAME.pid"
index 0cd2e1c..c97a21b 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-yarn-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop-yarn/sbin/yarn-daemon.sh"
 SVC_USER="yarn"
+WORKING_DIR="/var/lib/hadoop-yarn"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-yarn/yarn-$SVC_USER-$HADOOP_NAME.pid"
index f3b724e..4c402d9 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hadoop-yarn-$HADOOP_NAME"
 DESC="Hadoop $HADOOP_NAME"
 EXEC_PATH="/usr/lib/hadoop-yarn/sbin/yarn-daemon.sh"
 SVC_USER="yarn"
+WORKING_DIR="/var/lib/hadoop-yarn"
 DAEMON_FLAGS="$HADOOP_NAME"
 CONF_DIR="/etc/hadoop/conf"
 PIDFILE="/var/run/hadoop-yarn/yarn-$SVC_USER-$HADOOP_NAME.pid"
index 091c4d9..93b776d 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hbase-@HBASE_DAEMON@"
 DESC="HBase @HBASE_DAEMON@ daemon"
 EXEC_PATH="/usr/lib/hbase/bin/hbase-daemon.sh"
 SVC_USER="hbase"
+WORKING_DIR="/var/run/hbase"
 DAEMON_FLAGS=""
 CONF_DIR="/etc/hbase/conf"
 PIDFILE="/var/run/hbase/hbase-${DAEMON}.pid"
index 2b67904..9a369a9 100644 (file)
@@ -16,8 +16,8 @@ DAEMON="hcatalog-server"
 DESC="HCatalog server"
 EXEC_PATH="/usr/lib/hcatalog/sbin/hcat_server.sh"
 SVC_USER="hive"
+WORKING_DIR="/var/run/hcatalog"
 DAEMON_FLAGS=""
 CONF_DIR="/etc/hcatalog/conf"
 # FIXME: HCATALOG-636
 PIDFILE="/var/run/hcatalog/hcat.pid"
-WORKING_DIR="/var/run/hcatalog"
index 6e54c55..0c26311 100644 (file)
@@ -16,8 +16,8 @@ DAEMON="webhcat-server"
 DESC="WEBHCat server"
 EXEC_PATH="/usr/lib/hcatalog/sbin/webhcat_server.sh"
 SVC_USER="hive"
+WORKING_DIR="/var/run/hcatalog"
 DAEMON_FLAGS=""
 CONF_DIR="/etc/webhcat/conf"
 # FIXME: HCATALOG-636
 PIDFILE="/var/run/hcatalog/webhcat.pid"
-WORKING_DIR="/var/run/hcatalog"
index d552f95..66506f9 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hive-metastore"
 DESC="Hive Metastore"
 EXEC_PATH="/usr/lib/hive/bin/hive"
 SVC_USER="hive"
+WORKING_DIR="/var/lib/hive"
 DAEMON_FLAGS=""
 CONF_DIR="/etc/hive/conf"
 PIDFILE="/var/run/hive/${DAEMON}.pid"
index 8e1bce9..cac9efa 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="hive-server"
 DESC="Hive Server"
 EXEC_PATH="/usr/lib/hive/bin/hive"
 SVC_USER="hive"
+WORKING_DIR="/var/lib/hive"
 DAEMON_FLAGS=""
 CONF_DIR="/etc/hive/conf"
 PIDFILE="/var/run/hive/${DAEMON}.pid"
index 916032d..26be910 100644 (file)
@@ -17,6 +17,7 @@ DAEMON="sqoop-server"
 DESC="Sqoop Server"
 EXEC_PATH="/usr/bin/sqoop-server"
 SVC_USER="${SQOOP_USER:-sqoop}"
+WORKING_DIR="/var/run/sqoop"
 DAEMON_FLAGS=""
 CONF_DIR="${SQOOP_CONFIG:-/etc/sqoop/conf}"
 PIDFILE="${SQOOP_PID:-/var/run/sqoop/sqoop-server-$SVC_USER.pid}"
index 037b3ed..cd5e592 100644 (file)
@@ -29,6 +29,7 @@
 #     EXEC_PATH="path to the upstream daemon management script"
 #     SVC_USER="user to run this service as"
 #     DAEMON_FLAGS="flags to be passed to the $EXEC_PATH"
+#     WORKING_DIR="working directory to cd into before starting the daemon"
 #     CONF_DIR="path to the configuration directory"
 #     PIDFILE="file holding a PID of the running daemon"
 #     LOCKFILE="file signifying the service lock"