2009年9月16日水曜日

HbaseのInstallをしたんだけど

見事に資料がねぇ('A`)
と、いう事で取り敢えず■Hbase/10Minutesを訳してみた。
毎度おなじみ、間違いあったら連絡ください。
1.Download the latest stable release from the [WWW] HBase download page

2.Move the download to wherever you want to run hbase from, say to ~/hbase

3.If running a remote HDFS that you want hbase to connnect to, edit conf/hbase-site.xml and add a property for hbase.rootdir. Set it to hdfs://NAMENODE_HOST:NAMENODE_PORT/HBASE_ROOTDIR. For example, hdfs://localhost:9000/hbase. Otherwise, use the default: file:///tmp/hbase-${user.home}/hbase UNLESS you are running on windows (TODO: Restore what you do here when on windows -- St.Ack).

4.Edit conf/hbase-env.sh and define JAVA_HOME

5.Make sure that you can log into localhost without a password (see [WWW] Hadoop Quick Start, "Setup passphraseless ssh"). Test this out first! New versions of ssh require accepting a new foreign host key before logging in, even if the host is configured with authorized keys.

6.Start hbase with ~/hbase/bin/start-hbase.sh (hbase logs are viewable in ~/hbase/logs by default)

7.Enter hbase shell by running ~/hbase/bin/hbase shell; type 'help' to see shell help

8.Have fun with hbase

9.Stop the hbase servers with ~/hbase/bin/stop-hbase.sh. Wait until the servers are finished stopping. Avoid killing servers (though a 'kill pid' should be fine as opposed to a 'kill -9 pid').

1.最新版をDLする
2.~/hbase等、hbaseをInstallしたい先へ移動させる
3.hbaseで接続したいHDFSが動作している場合、「conf/hbase-site.xml」の「hbase.rootdir」を編集して下記の様にする
「hdfs://NAMENODE_HOST:NAMENODE_PORT/HBASE_ROOTDIR」例えば「hdfs://localhost:9000/hbase.」
4.conf/hbase-env.shにJAVA_HOMEを設定する
5.Password無しでローカルホストにログイン出来る様にしておく。
Make sure that you can log into localhost without a password
(see [WWW] Hadoop Quick Start, "Setup passphraseless ssh").
Test this out first!
New versions of ssh require accepting a new foreign host key before logging in, even if the host is configured with authorized keys.

6.「~/hbase/bin/start-hbase.sh」を蹴って起動する。Logは初期値だと「~/hbase/logs」にでる
7.「~/hbase/bin/hbase shell」と打った後、「help」と打つとhelpがでる
8.Hbaseを楽しんでね
9.「~/hbase/bin/stop-hbase.sh」で停止する。

0 件のコメント: