HBase_安装
Damoncai 3/2/2019 HBase
# 前置
- hadoop
- zk
# HBase安装
上传文件并解压
tar -zxvf hbase-1.3.1-bin.tar.gz
1hbase-env.sh 修改内容
export JAVA_HOME=/usr/local/jdk export HBASE_MANAGES_ZK=false # 不使用自带ZK
1
2hbase-site.xml 修改内容
<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://ha01.prdigital.cn:8020/HBase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <!-- 0.98 后的新变动,之前版本没有.port,默认端口为 60000 --> <property> <name>hbase.master.port</name> <value>16000</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>ha01.prdigital.cn,ha02.prdigital.cn,ha03.prdigital.cn</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/opt/module/zookeeper/data</value> </property> </configuration>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23regionservers
ha01.prdigital.cn ha02.prdigital.cn ha03.prdigital.cn
1
2
3远程发送到其他集群
xsync hbase/
1启动服务
方式一
bin/hbase-daemon.sh start master
1方式二
bin/start-hbase.sh # 启动 bin/stop-hbase.sh # 停止
1
2
3
查看页面
http://ha01.prdigital.cn:16010
1