启动server/agent失败,报错pstree: command not found

1)

# /opt/cm-5.7.0/etc/init.d/cloudera-scm-server start

/opt/cm-5.7.0/etc/init.d/cloudera-scm-server: line 109: pstree: command not found

Starting cloudera-scm-server: [FAILED]

原因:因为系统是最小化安装,默认没有安装

解决:安装psmisc   # yum -y install psmisc

2)

# /opt/cm-5.7.0/etc/init.d/cloudera-scm-server start install: invalid user ‘cloudera-scm’

原因:没有创建运行server的用户

解决:

#useradd --system --home=/opt/cm-5.7.0/run/cloudera-scm-server --shell=/bin/false --comment "Cloudera SCM User" cloudera-scm

3)

查询日志

[22/Jun/2016 11:02:09 +0000] 3695 MainThread agent INFO SCM Agent Version: 5.7.0 Unable to create the pidfile.

原因: /opt/cm-5.7.0/run目录下没有cloudera-scm-agent文件夹

解决:# mkdir /opt/cm-5.7.0/run/cloudera-scm-agent

修改属主(所有agent节点),重启所有agent

你可能感兴趣的:(CDH)