使用版本爲HBase1.2.2 使用版本爲Hadoop2.7.2html
Hadoop部署請參考:https://thelastdayandnight.github.io/2016/07/25/hadoop-001/#more Hbsse官網指導文件:http://hbase.apache.org/book.html#faqjava
須要修改的文件有:conf/hbase-env.sh conf/hbase-site.xml conf/regionservers 設置環境變量node
export JAVA_HOME=/usr/java/jdk1.7.0_67 export HBASE_CLASSPATH=/usr/hadoop/etc/hadoop export HBASE_MANAGES_ZK=true
<property> <name>hbase.rootdir</name> <value>hdfs://172.19.2.2:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.tmp.dir</name> <value>/usr/hbase/tmp</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>EMTestnode02,EMTestnode01,EMTestnode03</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/usr/hbase/zookeeper</value> </property>
EMTestnode02 EMTestnode01 EMTestnode03
export HBASE_HOME=/usr/hbase export PATH=$PATH:$HADOOP_HOME/bin:$HBASE_HOME/bin
start-hbase.shgit
[app@EMTestnode02 bin]$ jps 25172 HMaster 20145 SecondaryNameNode 20313 ResourceManager 19942 NameNode 25112 HQuorumPeer 30090 Jps 25315 HRegionServer [app@EMTestnode02 bin]$
[app@EMTestnode01 ~]$ jps 19271 Bootstrap 9307 NodeManager 29872 Bootstrap 25471 HRegionServer 9083 DataNode 14632 Bootstrap 18363 Jps 13133 Bootstrap 25388 HQuorumPeer [app@EMTestnode01 ~]$
參考:http://blog.csdn.net/yinlongfei_love/article/details/51786616github