wget http://archive.apache.org/dist/hbase/hbase-1.0.0/hbase-1.0.0-bin.tar.gz
tar xf hbase-1.0.3-bin.tar.gz -C /opt/
cd hbase-1.0.3
配置
代码语言:javascript复制
vim conf/hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:/tmp/hbase</value>
</property>
</configuration>
代码语言:javascript复制
vim conf/hbase-env.sh
export JAVA_HOME=/opt/jdk1.8.0_91/
export HBASE_CLASSPATH=/opt/hbase-1.0.3/conf
export HBASE_MANAGES_ZK=true
启动hbase
代码语言:javascript复制
bin/start-hbase.sh
命令行
代码语言:javascript复制
bin/hbase shell
2018-02-03 23:35:08,901 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.0.3, rf1e1312f9790a7c40f6a4b5a1bab2ea1dd559890, Tue Jan 19 19:26:53 PST 2016
hbase(main):001:0>