Installing:
- HBase 2.3.4 (current stable version)
On
- MacOS 10.14
- Homebrew is available
- Java 8 and 11 installed (either system Java and/or installed via homebrew... not sure...)
Generally following instructions from https://hbase.apache.org/book.html#quickstart. Interesting notes and specific suggestions:
- seems like Java 8 is preferred. 11 is ok as well. https://hbase.apache.org/book.html#java
- The internet suggests using
/usr/libexec/java_home
(and specifically/usr/libexec/java_home -v 1.8
) to find theJAVA_HOME
location
Fuller guide:
- Install Java 8 JDK via homebrew
brew cask install homebrew/cask-versions/adoptopenjdk8
- Download and unzip
hbase-2.3.4-bin.tar.gz
from thestable
folder in the first link: https://www.apache.org/dyn/closer.lua/hbase/ - Configure env vars for HBase (Java 8 home dir)
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
- Start HBase with
./bin/start-hbase.sh
- Success?! View the admin interface at http://localhost:16010
- Connect to HBase via shell
./bin/hbase shell
- Success?!? Do your HBase thing
- Stop HBase.
./bin/stop-hbase.sh