master:195
RegionServer:196,1971,修改三台hadoop的配置hdfs-site.xml,
dfs.support.append
true dfs.datanode.max.xcievers4096restart hdfs
#替换 hbase lib下的hadoop.jar为hdfs集群用的hadoop.jar
2,修改hbase-site.xml
hbase.rootdir
hdfs://master:54310/hbase The directory shared by RegionServers. hbase.cluster.distributedtrue The mode the cluster will be in. Possible values are false: standalone and pseudo-distributed setups with managed Zookeeper true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh) dfs.support.appendtrue3,修改regionservers
echo master > regionservers echo slaver1 >> regionservers echo slaver2 >> regionservers4,修改hbase-env.sh :
export HBASE_MANAGES_ZK=false #使用了单独安装的zookeeper,export JAVA_HOME=/export/servers/jdk1.6.0_25
5,将zookeeper集群的zoo.cfg 复制到 hbase的conf目录下。6,复制配置好hbase到slaver1,slaver2 /opt/hadoop目录下
7,增加可以打开的文件句柄数,三台机器都执行。
su root echo -ne " * soft nofile 65536 * hard nofile 65536 " >>/etc/security/limits.conf安装完成,启动
cd /opt/hadoop/hbase-0.92.0/bin./start-hbase.sh
master的web 端口,默认为60010,RegionServer web 端口 60030