(一)hive远程模式搭建
一.集群规划
Name | Master | Slave1 | Slave2 |
IP | 192.168.2.98 | 192.168.2.99 | 192.168.2.100 |
Jdk版本 | 1.8.0.171 | 1.8.0.171 | 1.8.0.171 |
Hadoop版本 | 2.7.3 | 2.7.3 | 2.7.3 |
Hive版本 | 2.1.1(客户端) | 2.1.1(服务端) | 无 |
Mysql版本 | 无 | 无 | 5.7.18(数据库) |
二.安装部署Mysql
离线安装MySQL 主结点master上执行 # scp -r /opt/soft/mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar :/usr/ 发安装包 转至子结点slave2操作 # rpm -qa|grep mariadb 检查:这是离线包安装方式所以要检查并且卸载mariadb # rpm -qa|grep mariadb|xargs rpm -e --nodeps 卸载 # mkdir /usr/mysql 建立MySQL目录 # tar -xvf mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar -C /usr/mysql 解压 # cd /usr/mysql 进入MySQL目录下依次执行安装 # rpm -ivh mysql-community-common-5.7.18-1.el7.x86_64.rpm # rpm -ivh mysql-community-libs-5.7.18-1.el7.x86_64.rpm # rpm -ivh mysql-community-client-5.7.18-1.el7.x86_64.rpm # rpm -ivh mysql-community-server-5.7.18-1.el7.x86_64.rpm # rpm -ivh mysql-community-devel-5.7.18-1.el7.x86_64.rpm # rpm -ivh mysql-community-libs-compat-5.7.18-1.el7.x86_64.rpm # systemctl start mysqld 启动MySQL服务 # systemctl enable mysqld 开机自启 # grep "temporary p" /var/log/mysqld.log 获取MySQL的临时密码复制密码 # mysql -uroot -p临时密码 # set global validate_password_policy=0; 修改密码强度为最低 # set global validate_password_length=4; 修改密码的长度为4 # alter user "localhost" identified by "master"; 修改root的密码为master # use mysql; 切换到MySQL数据库下 # update user set host="%" where user="root"; 修改host为%表示让所有结点机器能连接 # flush privileges; 刷新 # \q 退出
相关推荐
云中舞步 2020-11-12
emmm00 2020-11-17
王艺强 2020-11-17
aydh 2020-11-12
世樹 2020-11-11
zry 2020-11-11
URML 2020-11-11
spurity 2020-11-10
yifangs 2020-10-13
Andrea0 2020-09-18
Ida 2020-09-16
ltd00 2020-09-12
tufeiax 2020-09-03
xjd0 2020-09-10
greatboylc 2020-09-10
adsadadaddadasda 2020-09-08
疯狂老司机 2020-09-08
CoderToy 2020-11-16
ribavnu 2020-11-16