3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrewでhbaseをinstallしstandaloneモードで立ち上げてhbase shellを起動するまで

Posted at

installするhbaseの情報を確認。まだ1系がstableのようだ。

$ brew info hbase
hbase: stable 1.3.4 (bottled)
Hadoop database: a distributed, scalable, big data store
https://hbase.apache.org
/usr/local/Cellar/hbase/1.3.4 (10,219 files, 345.8MB) *
  Poured from bottle on 2019-07-27 at 00:56:32
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/hbase.rb
==> Dependencies
Build: ant ✘
Required: lzo ✔
==> Requirements
Required: x86_64 architecture ✔, java = 1.8 ✔
==> Caveats
To have launchd start hbase now and restart at login:
  brew services start hbase
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/hbase/bin/start-hbase.sh
==> Analytics
install: 558 (30 days), 1,918 (90 days), 7,744 (365 days)
install_on_request: 467 (30 days), 1,554 (90 days), 6,130 (365 days)
build_error: 0 (30 days)

installする

$ brew install hbase

java8が必要であるが、もしmacに過去のversionがinstallされていない場合、
adoptopenjdkのjdkをhomebrew caskからinstallして利用する

$ brew tap adoptopenjdk/openjdk
$ brew cask install adoptopenjdk/openjdk/adoptopenjdk8
$ /usr/libexec/java_home --version 1.8

この段階でstart-hbase.shを起動するとうまく起動できないので、
/usr/local/Cellar/hbase/1.3.4/libexec/conf/hbase-site.xmlに記載されているhbase.rootdirで指定されたdirectoryを掘る

$ sudo mkdir /usr/local/var/hbase/
$ sudo chown ${USER}:admin /usr/local/var/hbase/

起動

$ start-hbase.sh

hbase shellを起動する

$ hbase shell

プロンプトが表示されればOK

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?