For hadoop installation check this out
http://biforbeginners.blogspot.in/2012/07/step-by-step-installation-of-hadoop-on.html
1)Extract HBase in /usr/local/hbase-0.92.1
http://biforbeginners.blogspot.in/2012/07/step-by-step-installation-of-hadoop-on.html
1)Extract HBase in /usr/local/hbase-0.92.1
$ cd /usr/local $ sudo tar xzf hbase-0.92.1.tar.gz $ sudo chown -R hduser hbase-0.92.1
2) In HBase-env.sh
For master and slaves,add or uncomment these
export JAVA_HOME=/usr/java/jdk1.6.0_33 export HBASE_CLASSPATH=/usr/local/hadoop/conf export HBASE_HEAPSIZE=1000
export HBASE_OPTS="-XX:+UseConcMarkSweepGC" export HBASE_MANAGES_ZK=true
3) In Hbase-site.xml
For master and slaves,add
hbase.rootdir hdfs://master:54310/hbase hbase.cluster.distributed true
hbase.zookeeper.property.clientPort 2222 hbase.master master:60000 hbase.zookeeper.property.maxClientCnxns 300
dfs.support.append true
hbase.zookeeper.quorum
master
hbase.zookeeper.property.dataDir /usr/local/hadoop/zookeeper/data
4) In usr/local/hbase-0.92.1/conf/regionservers,write
master
slave
5)Copy the hadoop-core-0.20.203.0.jar in
hadoop folder to the hbase/lib folder.
6)Copy commons-configuration-1.6.jar from
hadoop lib folder to hbase lib folder. 7)Create a directory /hadoop/zookeeper/data and insert myid in that
For master
mkdir -p /hadoop/zookeeper/data && echo '0' > /hadoop/zookeeper/data/myid
For Slaves
mkdir -p /hadoop/zookeeper/data && echo '10' > /hadoop/zookeeper/data/myid
Caution:Make sure you assign permissions to hadoop group and hduser to access this folder,else it will
show permission denied error.
copy hbase jar and zookeeper jar to hadoop library
ReplyDelete