HBase单机模式配置

1.在hbase-env.sh中修改Java路径

1
2
export JAVA_HOME=/csh/link/jdk
export HBASE_PID_DIR=/csh/hadoop/hbase/pids

2.在hbase-site.xml中修改

1
2
3
4
5
6
7
8
<property>
<name>hbase.rootdir</name>
<value>file:///csh/hadoop/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/csh/hadoop/zookeeper</value>
</property>

3.启动HBase

1
bin/start-hbase.sh

4.连接HBase

1
bin/hbase shell