Centos自动部署单机Hbase
1.部署版本及要求
OS: centos7
JDK:1.8.0_202
Hbase: 2.5.3
2.安装包下载
链接:https://pan.baidu.com/s/1HfT6_S_52fxXXBjXRp2Faw?pwd=hkey
提取码:hkey
博客园文章共享目录/程序部署/离线部署Hbase/hbase-deploy.zip
3.执行安装脚本
上传到服务器后解压执行
方式1:sh 执行(当前shell需要手动加载java环境配置)
root@localhost(192.168.199.101)/root> unzip hbase-deploy.zip
root@localhost(192.168.199.101)/root> cd hbase-deploy/
root@localhost(192.168.199.101)/root/hbase-deploy> sh install.sh
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
running master, logging to /opt/hbase-2.5.3/bin/../logs/hbase-root-master-localhost.localdomain.out
root@localhost(192.168.199.101)/root/hbase-deploy> netstat -ntplu | egrep java
tcp6 0 0 :::16030 :::* LISTEN 1924/java
tcp6 0 0 127.0.0.1:16000 :::* LISTEN 1924/java
tcp6 0 0 127.0.0.1:2181 :::* LISTEN 1924/java
tcp6 0 0 :::16010 :::* LISTEN 1924/java
tcp6 0 0 127.0.0.1:16020 :::* LISTEN 1924/java
### 通过 sh 执行脚本 当前shell 没有加载java 环境变量,需要手动执行:
root@localhost(192.168.199.101)~>source /etc/profile
root@localhost(192.168.199.101)~>java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
###Hbase数据存储目录:/opt/hbase-2.5.3/data
方式2:source 执行
root@localhost(192.168.199.102)/root> unzip hbase-deploy.zip
root@localhost(192.168.199.102)/root> cd hbase-deploy/
root@localhost(192.168.199.102)/root/hbase-deploy> sh install.sh
root@localhost(192.168.199.102)/root/hbase-deploy> source install.sh
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
running master, logging to /opt/hbase-2.5.3/bin/../logs/hbase-root-master-localhost.localdomain.out
root@localhost(192.168.199.102)~/hbase-deploy>netstat -ntplu | egrep java
tcp6 0 0 :::16030 :::* LISTEN 2220/java
tcp6 0 0 127.0.0.1:16000 :::* LISTEN 2220/java
tcp6 0 0 127.0.0.1:2181 :::* LISTEN 2220/java
tcp6 0 0 :::16010 :::* LISTEN 2220/java
tcp6 0 0 127.0.0.1:16020 :::* LISTEN 2220/java
root@localhost(192.168.199.102)~/hbase-deploy>java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
###Hbase数据存储目录:/opt/hbase-2.5.3/data
4.页面查看hbase
http://192.168.199.101:16010/master-status