zookeeper.sh 287 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -e
  3. start_zookeeper()
  4. {
  5. check spark
  6. #ln -s /share/lib/hbase /usr/local/hbase
  7. if [ "$1" != '' ]; then
  8. echo $1 > /root/zookeeper/tmp/myid
  9. fi
  10. zkServer.sh start
  11. #hdfs zkfc -formatZK
  12. }
  13. stop_zookeeper()
  14. {
  15. #rm -rf /usr/local/hbase
  16. zkServer.sh stop
  17. }