centos7脚本离线化安装CDH6.3版本(ansible闪亮登场~~~)(二)

简介: centos7脚本离线化安装CDH6.3版本(ansible闪亮登场~~~)

 修改 vim /etc/cloudera-scm-agent/config.ini  将服务器地址指定好

[General]
# Hostname of the CM server.
server_host=192.168.88.11
# Port that the CM server is listening on.
server_port=7182

20210711225703438.png

20210711231350710.png

20210711231538396.png

下图是按照CDH了,这里需要注意,前面的免密是为了这一步而做得工作,

在客户端,比如192.168.88.12或者13,我们进入这个目录会看到很多文件:

[root@hdp-2 parcels]# du -sh CDH-6.3.2-1.cdh6.3.2.p0.1605554/
3.0G  CDH-6.3.2-1.cdh6.3.2.p0.1605554/
[root@hdp-2 parcels]# pwd
/opt/cloudera/parcels

20210711233350578.png

最后的检测确认,发现需要修改内核参数如下(3台服务器都修改):

echo never > /sys/kernel/mm/transparent_hugepage/defrag

echo never > /sys/kernel/mm/transparent_hugepage/enabled

永久修改:

/etc/sysctl.conf 文件里添加如下参数:

vm.swappiness=10

然后在每个服务器上执行命令:sysctl -p 使之生效即可。

20210711233833212.png

20210711233350578.png

解决方法:

删除rm -f /opt/cloudera-manager/cm-5.11.1/lib/cloudera-scm-agent/cm_guid ,重启agent,命令为:systemctl restart cloudera-scm-agent

20210711234129260.png

20210711234340265.png

20210711234537715.png

所有的建库命令为:

CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE DATABASE hive DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
grant all privileges on scm.* to scm@'localhost' identified by '密码';
grant all privileges on scm.* to scm@'%' identified by '密码';
grant all privileges on hive.* to hive@'localhost' identified by '密码';
grant all privileges on hive.* to hive@'%' identified by '密码';
CREATE DATABASE hue DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
grant all privileges on hue.* to hue@'%' identified by '密码';
grant all privileges on hue.* to hue@'localhost' identified by '密码2';
CREATE DATABASE rm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
grant all privileges on rm.* to rm@'localhost' identified by '密码';
grant all privileges on rm.* to rm@'%' identified by '密码';
flush privileges;

20210711235529910.png

20210711235810480.png

20210711235928126.png

目录
相关文章
|
18天前
|
应用服务中间件 Linux 网络安全
CentOS 7.4源码编译nginx1.12 并且隐藏nginx的版本
CentOS 7.4源码编译nginx1.12 并且隐藏nginx的版本
15 0
|
3月前
|
数据可视化 Linux 网络安全
CentOS7.9下离线安装OctoMation编排自动化SOAR开源社区免费版
CentOS7.9下离线安装OctoMation编排自动化SOAR开源社区免费版
65 0
|
3月前
|
Linux
CentOS7.9服务器一键脚本部署FRP内网穿透服务端与客户端
CentOS7.9服务器一键脚本部署FRP内网穿透服务端与客户端
231 0
|
3月前
|
安全 Linux
CentOS7下快速升级至OpenSSH9.4p1安全版本
CentOS7下快速升级至OpenSSH9.4p1安全版本
151 1
|
3月前
|
安全 Linux Shell
CentOS7下快速升级至OpenSSH9.3p2安全版本
CentOS7下快速升级至OpenSSH9.3p2安全版本
178 0
|
2月前
|
Linux 应用服务中间件 网络安全
CentOS7搭建本地离线局域网yum源(Httpd/Nginx+yum)
CentOS7搭建本地离线局域网yum源(Httpd/Nginx+yum)
326 0
|
3月前
|
PHP Apache
centos7.9 安装php7.0以上版本
centos7.9 安装php7.0以上版本
71 2
|
4天前
|
存储 运维 Shell
Ansible自动化运维工具安装和基本使用
Ansible 是一款无代理的IT自动化工具,通过SSH连接目标主机执行配置管理、应用部署和云端管理任务。它使用YAML编写的Playbook定义任务,核心组件包括Playbook、模块、主机清单、变量等。Ansible的优势在于易用、功能强大、无须在目标主机安装额外软件,并且开源。安装过程涉及配置网络源、yum安装和SSH密钥设置。通过定义主机清单和使用模块进行通信测试,确保连接成功。
Ansible自动化运维工具安装和基本使用
|
18天前
|
Linux
centos 查看服务器信息 版本cpu
centos 查看服务器信息 版本cpu
12 0

热门文章

最新文章