Aboutmyself

Submitted by: Submitted by

Views: 85

Words: 339

Pages: 2

Category: Other Topics

Date Submitted: 03/17/2014 10:01 PM

Report This Essay

Step 1 - Download hbase-0.94.15.tar.gz from the mirror website hbase.apache.org

wgethttp://mirror.reverse.net/pub/apache/hbase/stable/hbase-0.94.15.tar.gz

Step 2 - Untar the downloaded file

tar -xvzfhbase-0.94.15.tar.gz

Step 3 - Copy the extracted folder in /usr/local/hbaselocation

sudocp -r hbase-0.94.15.tar.gz /usr/local/hbase

Step 4 - Add permissions

sudochown username /usr/local/hbase

Step 5 - Set the path in bash environment

sudo vi $HOME/.bashrc

type the following at the end of the line

export HBASE_PREFIX=/usr/local/hbase

export PATH=$PATH:$HBASE_PREFIX/bin

Step 6 - Configure hbase environment settings

sudo vi $HBASE_PREFIX/conf/hbase-env.sh

Uncomment and modify the lines in this file as shown

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

Step 7 - Add configuration

sudo vi $HBASE_PREFIX/conf/hbase-site.xml

type the following

<configuration>

<property>

<name>hbase.rootdir</name>

<value>hdfs://IPADDRESS:10001/hbase</value>

</property>

<property>

<name>hbase.zookeeper.quorum</name>

<value>IPADDRESS_OF_ZOOKEEPERS_IF_MULTIPLE_SEPERATE_BY_COMMAS</value>

</property>

<property>

<name>hbase.cluster.distributed</name>

<value>false</value>

</property>

</configuration>

Step 8 - Setup the region servers.

sudo vi $HBASE_PREFIX/conf/regionservers

Add the IP addresses inside one line after another

Step 9 - Start the HBase using command

start-hbase.sh

Step 10 - Check the configuration via web browser using

http://IPADDRESS_OF_SYSTEM_WHERE_HBASE_IS_INSTALLED:60010/

Step 11 - Start regionservers

local-regionservers.sh start 1

Step 12 - Start HBASE shell

hbase shell

Thus installation and configuration of the HBase server is done successfully.

Example

hbase-shell

create 'hbdemo' , 'name'

put 'hbdemo' , 'r1', 'name:c1' , 'prashant'

put 'hbdemo' , 'r2', 'name:c2' ,...

More like this