HADOOP-403 Fix build after move of hbase in svn
Create pid dir if it doesn't exist already. git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@618800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
415c16c1ef
commit
0a70afc862
|
@ -183,7 +183,6 @@ HBASE_OPTS="$HBASE_OPTS -Dhbase.log.file=$HBASE_LOGFILE"
|
|||
HBASE_OPTS="$HBASE_OPTS -Dhbase.home.dir=$HBASE_HOME"
|
||||
HBASE_OPTS="$HBASE_OPTS -Dhbase.id.str=$HBASE_IDENT_STRING"
|
||||
HBASE_OPTS="$HBASE_OPTS -Dhbase.root.logger=${HBASE_ROOT_LOGGER:-INFO,console}"
|
||||
HBASE_OPTS="$HBASE_OPTS -Dhbase.home.dir=$HBASE_HOME"
|
||||
if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
|
||||
HBASE_OPTS="$HBASE_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
|
||||
fi
|
||||
|
|
|
@ -103,6 +103,7 @@ fi
|
|||
case $startStop in
|
||||
|
||||
(start)
|
||||
mkdir -p "$HBASE_PID_DIR"
|
||||
if [ -f $pid ]; then
|
||||
if kill -0 `cat $pid` > /dev/null 2>&1; then
|
||||
echo $command running as process `cat $pid`. Stop it first.
|
||||
|
|
Loading…
Reference in New Issue