bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/docker/start_hbase.sh (about)

     1  #!/bin/bash
     2  #export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk/jre
     3  
     4  echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
     5  trap "echo stopping hbase; ${HBASE_HOME}/bin/hbase master stop>>/var/log/hbase-stop.log 2>&1; exit" HUP INT TERM EXIT
     6  echo "starting hbase"
     7  ${HBASE_HOME}/bin/hbase master start >> /var/log/hbase-start.log 2>&1 &
     8  while true
     9  do
    10    sleep 1
    11  done