Step 1 - Download
hbase using below command or link
hduser@ubuntu:~$wget http://mirror.reverse.net/pub/apache/hbase/stable/
hduser@ubuntu:~$wget http://mirror.reverse.net/pub/apache/hbase/stable/
hbase-0.94.15.tar.gz
or
Download the tarbal from here
Step 2 - Untar the downloaded file
and Rename it
hduser@ubuntu:~$tar -xvzf hbase-0.94.15.tar.gz
hduser@ubuntu:~$mv
hbase-0.94.15.tar.gz hbase
Step 3 - Move the extracted folder in
/opt/hbase location
hduser@ubuntu:~$sudo mv hbase /opt/
Step 4 - Add permissions
hduser@ubuntu:~$sudo chown -R
hduser:hadoop hbase
Step 5 - Set the path in bash
environment
hduser@ubuntu:~$sudo vim ~ /.bashrc
Add the following text into the ~/.bashrc file
Add the following text into the ~/.bashrc file
export HBASE_HOME=/opt/hbase
export PATH=$PATH:$HBASE_HOME/bin
Step 6 - Configure hbase environment
settings
hduser@ubuntu:/opt/hbase/hbase-0.94.15/conf$
hbase-env.sh
Uncomment and modify the lines in
this file as shown
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
Step 7 - Add configuration
sudo vi
$HBASE_HOME/conf/hbase-site.xml
type the following in hbase-site.xml file
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>false</value>
</property>
</configuration>
Step 8 - Setup the region servers
hduser@ubuntu:/opt/hbase/hbase-0.94.15/conf$
sudo vi regionservers
localhost
Add the IP addresses inside one line
after another
Step 9 - Start the HBase using
command
hduser@ubuntu:/opt/hbase/hbase-0.94.15$
bin/start-hbase.sh
Step 10 - Start regionservers
Step 11 - Start HBASE shell
hduser@ubuntu:/opt/hbase/hbase-0.94.15$bin/hbase
shell
Congragulations,Thus
installation and configuration of the HBase server is done successfully and ready to proceed further.
In the next post i will explore some of the examples on HBase
In the next post i will explore some of the examples on HBase
Good Information about Hbase installation
ReplyDelete