Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Opentsdb fix.
Browse files Browse the repository at this point in the history
Change-Id: Ie7b1f2db281e498f7e1c561ffc1d3edccb5c89cb
  • Loading branch information
lisbakke committed Oct 16, 2012
1 parent e0f870a commit 986b1db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jobs/opentsdb/templates/opentsdb_ctl.erb
Expand Up @@ -21,10 +21,11 @@ case $1 in
start)
pid_guard $PIDFILE "OpenTSDB"

if [ ! -f /etc/hosts_saved ]; then
cp /etc/hosts /etc/hosts_saved
echo "<%= properties.hbase_master.address %> $FAKE_ZOOKEEPER_HOSTNAME" >> /etc/hosts
fi
if ! grep -q "$FAKE_ZOOKEEPER_HOSTNAME" /etc/hosts
then
cp /etc/hosts /etc/hosts_saved
echo "<%= properties.hbase_master.address %> $FAKE_ZOOKEEPER_HOSTNAME" >> /etc/hosts
fi

mkdir -p $RUN_DIR
mkdir -p $LOG_DIR
Expand Down

0 comments on commit 986b1db

Please sign in to comment.