- download hbase.
[hadoopuser@cent63VM01 app]$ wget http://apache.osuosl.org/hbase/stable/hbase-0.94.2.tar.gz
- untar the file
[hadoopuser@cent63VM01 app]$ tar xvf hbase-0.94.2.tar.gz
-
create a soft link for HBase.
[hadoopuser@cent63VM01 app]$ ln -s /hadoop/hbase-0.94.2/ /hbase
-
copy sample configuration file.
[hadoopuser@cent63VM01 app]$ cp /hbase/sr/resources/hbase-default.xml /hbase/conf/hbase-site.xml
-
Edit hbase-site.xml as below.
sfds
-
copy configuration files to all nodes..
sfdsrsync -avz ./hbase-0.94.2 hadoopuser@cent63V4.corp.ybusa.net:/hadoop/
-
Zookeeper's port numbers are troublesome. To be simple, I disable the firewall.
service iptables status service save iptables service stop iptables chkconfig iptables off
system-config-firewall open HBase REST port 8080; open port 60000 and 60010 for master. for eegional server open port 60020 and port 60030; for zookeeper, open port 2888, 3888, 2181
check file /etc/hosts
rm -Rf /tmp/hadoop-username clean data fo
service iptables status
service save iptables
service stop iptables
chkconfig iptables off
No comments:
Post a Comment