大数据技术之 HBase安装
1.hbase依赖于hadoop以及zookeeper,所以
1.1 首先myhadoop.sh start
1.2 然后zk.sh start
接下来安装hbase
1.3 HBase 的解压
[software]$ tar -zxvf hbase-1.3.1-bin.tar.gz -C /opt/module
1.4 HBase 的配置文件
修改 HBase 对应的配置文件。
1)hbase-env.sh 修改内容:
export JAVA_HOME=/opt/module/jdk1.6.0_144
export HBASE_MANAGES_ZK=false
2)hbase-site.xml 修改内容:
hbase.rootdir
hdfs://hadoop102:9000/HBase
hbase.cluster.distributed
true
3)regionservers:
hadoop102
hadoop103
hadoop104
4)软连接 hadoop 配置文件到 HBase:
[@hadoop102 module]$ ln -s /opt/module/hadoop3.1.3/etc/hadoop/core-site.xml /opt/module/hbase/conf/coresite.xml
[@hadoop102 module]$ ln -s /opt/module/hadoop3.1.3/etc/hadoop/hdfs-site.xml /opt/module/hbase/conf/hdfssite.xml
1.5 HBase 远程发送到其他集群
[@hadoop102 module]$ xsync hbase/
1.6 HBase 服务的启动
[@hadoop102 hbase]$ bin/start-hbase.sh
对应的停止服务:
[atguigu@hadoop102 hbase]$ bin/stop-hbase.sh