首先看下我刚刚遇到的一个报错信息:
sed: can't read /etc/cloudera-scm-agent/config.ini: No such file or directory
这个报错信息是在cm安装成功后再cm界面下安装节点时详细日志里发现的,找不到这个文件,导致一系列问题,就是因为service cloudera-scm-agent启动不起来。一个很笨但是很直接的方法:(/etc/cloudera-scm-agent/)
[root@slave cloudera-scm-agent]# scp /etc/cloudera-scm-agent/config.ini root@master:/etc/cloudera-scm-agent
再启动就ok了
[root@master etc]# service cloudera-scm-agent start
Starting cloudera-scm-agent: [ OK ]
[root@master etc]# service cloudera-scm-agent status
cloudera-scm-agent (pid 37807) is running...