hadoop 集群分布式安装目录(一直更新) 安装开始:

1、解压

[hadoop@new-cdh5 soft]$ tar -zvxf hbase-1.2.0-cdh5.7.0.tar.gz

2、配置HBASE 的环境遍历

[hadoop@new-cdh6 soft]$ vi ~/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
export HBASE_HOME=/hadoop/soft/hbase-1.2.0-cdh5.7.0
export HADOOP_HOME=/hadoop/soft/hadoop-2.6.0-cdh5.7.0
PATH=PATH:PATH:HOME/bin:HADOOP_HOME/bin:HADOOP\_HOME/bin:HADOOP_HOME/sbin:$HBASE_HOME/bin

export PATH

3、修改hbase-env.sh

在文件的最下面追加

export JAVA_HOME=/opt/jdk1.7.0_79
export HBASE_MANAGES_ZK=false
export HBASE_HEAPSIZE=8000
export HBASE_LOG_DIR=/hadoop/soft/hbase-1.2.0-cdh5.7.0/logs
export HBASE_HOME=//hadoop/soft/hbase-1.2.0-cdh5.7.0/
export HADOOP_HOME=/hadoop/soft/hadoop-2.6.0-cdh5.7.0
export HBASE_CLASSPATH=$HADOOP_HOME/conf

4、修改hbase-site.xml

<!–
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* “License”); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
–>


hbase.rootdir
hdfs://familyha/hbase


hbase.tmp.dir
file:/hadoop/data/hbase/tmp


hbase.cluster.distributed
true


hbase.zookeeper.quorum
new-cdh12,new-cdh13,new-cdh14,new-cdh15,new-cdh16,new-cdh17


hbase.zookeeper.property.clientPort
2181


hbase.zookeeper.property.dataDir
/hadoop/data/hbase/data

5、修改regionservers

[hadoop@new-cdh5 ~]$ vi soft/hbase-1.2.0-cdh5.7.0/conf/regionservers
new-cdh6
new-cdh7
new-cdh9
new-cdh10
new-cdh11

6、同步到其他机器(略)

7、启动并查看服务

[hadoop@new-cdh5 ~]$ start-hbase.sh
starting master, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-master-new-cdh5.out
new-cdh10: starting regionserver, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-regionserver-new-cdh10.out
new-cdh11: starting regionserver, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-regionserver-new-cdh11.out
new-cdh6: starting regionserver, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-regionserver-new-cdh6.out
new-cdh9: starting regionserver, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-regionserver-new-cdh9.out
new-cdh7: starting regionserver, logging to /hadoop/soft/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-regionserver-new-cdh7.out
[hadoop@new-cdh5 ~]$ jps
3766 DataNode
3906 NodeManager
3653 JournalNode
5156 Jps
5008 HMaster

[hadoop@new-cdh6 soft]$ jps
3855 NodeManager
3645 JournalNode
4386 HRegionServer
3745 DataNode
4492 Jps

new-cdh5hbase