start-hbase.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. #
  3. #/**
  4. # * Copyright 2007 The Apache Software Foundation
  5. # *
  6. # * Licensed to the Apache Software Foundation (ASF) under one
  7. # * or more contributor license agreements. See the NOTICE file
  8. # * distributed with this work for additional information
  9. # * regarding copyright ownership. The ASF licenses this file
  10. # * to you under the Apache License, Version 2.0 (the
  11. # * "License"); you may not use this file except in compliance
  12. # * with the License. You may obtain a copy of the License at
  13. # *
  14. # * http://www.apache.org/licenses/LICENSE-2.0
  15. # *
  16. # * Unless required by applicable law or agreed to in writing, software
  17. # * distributed under the License is distributed on an "AS IS" BASIS,
  18. # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # * See the License for the specific language governing permissions and
  20. # * limitations under the License.
  21. # */
  22. # Modelled after $HADOOP_HOME/bin/start-hbase.sh.
  23. # Start hadoop hbase daemons.
  24. # Run this on master node.
  25. usage="Usage: start-hbase.sh"
  26. bin=`dirname "$0"`
  27. bin=`cd "$bin"; pwd`
  28. . "$bin"/hbase-config.sh
  29. # start hbase daemons
  30. "$bin"/hbase-daemon.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" master start
  31. "$bin"/hbase-daemons.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" regionserver start