cloudera-scm-server dead but pid file exists

原因:CDH没有正常关闭,直接管的集群,再次启动时报错。

[root@hadoop102 commands]# /opt/module/cm/cm-5.16.2/etc/init.d/cloudera-scm-server status
cloudera-scm-server dead but pid file exists

解决方法:删除pid文件,重新启动。
pid 所在路径为:[root@hadoop102 proc]# cd /opt/module/cm/cm-5.16.2/run/

[root@hadoop102 proc]# cd /opt/module/cm/cm-5.16.2/run/
[root@hadoop102 run]#
[root@hadoop102 run]# ll
total 12
drwxr-x–x 6 root root 4096 May 11 23:20 cloudera-scm-agent
drwxr-xr-x 3 cloudera-scm cloudera-scm 4096 May 4 21:23 cloudera-scm-server
-rw-r–r-- 1 root root 5 May 11 22:54 cloudera-scm-server.pid
[root@hadoop102 run]# rm cloudera-scm-server.pid
rm: remove regular file ‘cloudera-scm-server.pid’? y
[root@hadoop102 run]# ll
total 8
drwxr-x–x 6 root root 4096 May 11 23:20 cloudera-scm-agent
drwxr-xr-x 3 cloudera-scm cloudera-scm 4096 May 4 21:23 cloudera-scm-server
[root@hadoop102 run]# /opt/module/cm/cm-5.16.2/etc/init.d/cloudera-scm-server status
cloudera-scm-server is stopped
[root@hadoop102 run]# /opt/module/cm/cm-5.16.2/etc/init.d/cloudera-scm-server start
Starting cloudera-scm-server: [ OK ]
[root@hadoop102 run]# /opt/module/cm/cm-5.16.2/etc/init.d/cloudera-scm-agent start
Starting cloudera-scm-agent: [ OK ]
[root@hadoop102 run]#

问题解决!!!

你可能感兴趣的:(CDH,cloudera)