修改 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
下图是按照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
最后的检测确认,发现需要修改内核参数如下(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 使之生效即可。
解决方法:
删除rm -f /opt/cloudera-manager/cm-5.11.1/lib/cloudera-scm-agent/cm_guid ,重启agent,命令为:systemctl restart cloudera-scm-agent
所有的建库命令为:
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;