HBase

hbase-0.96.0-hadoop2-bin.tar.gz

Japanese

Server

conf/hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///var/tmp/hbase</value>
</property>
</configuration>
bin/start-hbase.sh
bin/stop-hbase.sh
HBase expects the loopback IP address to be 127.0.0.1. Ubuntu and some other distributions, for example, will default to 127.0.1.1 and this will cause problems for you.

/etc/hosts should look something like this:

127.0.0.1 localhost
127.0.0.1 ubuntu.ubuntu-domain ubuntu
Stargate
bin/hbase-daemon.sh start rest -p 28080
bin/hbase-daemon.sh stop rest
Client
curl -X Get http://localhost:28080/version

curl -H "Accept: text/xml" http://localhost:28080/version

curl -H "Accept: application/json" http://localhost:28080/version

curl -X PUT http://localhost:28080/sample_aa/
curl -X PUT http://localhost:28080/sample_bb/

Python

Java

/home/uchida/dbm/hbase/hbase-0.90.5/conf/log4j.properties

C#


$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/
$ bin/hbase shell
2013-11-27 15:23:16,179 WARN  [main] conf.Configuration: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.96.0-hadoop2, r1531434, Fri Oct 11 15:28:08 PDT 2013

hbase(main):001:0> version
0.96.0-hadoop2, r1531434, Fri Oct 11 15:28:08 PDT 2013

hbase(main):002:0> status
2013-11-27 15:24:06,564 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
1 servers, 0 dead, 2.0000 average load

hbase(main):003:0> exit
result_aa

outarea_aa
outarea_bb
outarea_cc
outarea_dd
outarea_ee
outarea_ff
outarea_gg
outarea_hh

Return

May/09/2023 AM 08:15