1. 用brew来安装
brew install hbase
2. Hbase 配置
hbase-env.sh
#export JAVA_HOME="$(/usr/libexec/java_home --version 1.8)"
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
export HBASE_OPTS="-Djava.net.preferIPv4Stack=true -XX:+UseConcMarkSweepGC"
# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS"
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS"
# Where log files are stored. $HBASE_HOME/logs by default.
export HBASE_LOG_DIR="${HBASE_LOG_DIR:-/usr/local/var/log/hbase}"
# Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=false
hbase-site.xml
hbase.rootdir
hdfs://localhost:900