HBASE installation - pseudo-distributed
1. First unpack, and rename
tar zxvf hbase-1.2.0-cdh5.14.2.tar.gz
mv hbase-1.2.0-cdh5.14.2 /opt/bigdata/hbase120
2. Configure hbase-env.sh
cd /opt/bigdata/hbase120/conf
vi hbase-env.sh
3. Configure hbase-site.xml
vi hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>hdfs://169.254.211.100:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/opt/zkdir</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
Modify environment variables:
vi /etc/profile
source /etc/profile
start up
start-hbase.sh
hbase shell
stop-hbase.sh