在root权限下,使用以下命令 # 编辑文件,增加以下两行 vim /etc/rc.d/rc.local echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag(重启服务器生效) # shell 下 echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag(即时生效,重启失效)
安装
安装过程就是页面点点点了。这里略过
遇到的问题记录
agent 依赖冲突
Transaction check error:
file /usr/lib/systemd/system/supervisord.service from install of cloudera-manager-agent-6.1.0-769885.el7.x86_64 conflicts with file from package supervisor-3.1.3-3.el7.noarch
Able to find the Database server, but not the specified database. Please check if the database name is correct and make sure that the user can access the database.
解决方法:创建需要的数据库
开启 gtid 问题
User cannot run DDL statements on the specified database. Attempt to create and drop a table failed.
因为 mysql 开启了gtid ,所以导致这个问题。
关闭 mysql 的gtid 即可。
修改 mysql的 my.cnf 配置
1 2 3
# GTID # gtid-mode = OFF enforce-gtid-consistency = 0