cloudera-scm-server 已死,pid 文件存在

cloudera-scm-server is dead and pid file exists

我也是 Ubuntu 和 Cloudera 的新手。我已经从 documentation given on Cloudera site. I am not able to connect to http://localhost:7180 在 Ubuntu 14.04 上安装了 Cloudera 管理器 (5.7.1)。我使用 sudo service cloudera-scm-server status 命令检查了 cloudera-scm-server 的状态。

它是 cloudera-scm-server 已死并且 pid 文件存在 所以我在删除后重新启动了 cloudera-scm-server文件。重启服务器后显示状态 运行。然后我再次尝试连接到 http://localhost:7180。一旦我这样做,服务器状态再次变为 cloudera-scm-server 已死并且 pid 文件存在

谁能帮我解决一下?提前致谢

编辑:

我为命令

找到了这个输出
tail -f /var/log/cloudera-scm-server/cloudera-scm-server.out

... 34 more Caused by: java.io.FileNotFoundException: Unable to locate the Cloudera Manager log file in the log4j settings at com.cloudera.server.web.cmf.logs.LogUtil.getServerLogfile(LogUtil.java:34) at com.cloudera.server.cmf.log.components.ServerLogFetcherImpl.(ServerLogFetcherImpl.java:77) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 36 more

尝试以下方法,我能够解决同样的问题:

$sudo rm /var/run/cloudera-scm-server.pid
$sudo service cloudera-scm-server-db stop
$/etc/rc.d/init.d/postgresql restart ----------------> Fixed in this or($/etc/init.d/postgresql restart in Ubuntu)
$sudo service cloudera-scm-server-db start
$sudo service cloudera-scm-server start

让我知道这是否适合您,否则我会建议其他解决方案。

检查以下内容,如果存在则删除:

    /var/run/cloudera-scm-server.pid

接下来,如果启动有问题,日志中可能会有有价值的线索。查看 /var/log/cloudera-scm-server/cloudera-scm-server.log

也许tail -f while开始看有没有异常

或者

如果上述步骤没有解决您的问题,那么 postgresql 不是 运行 identitfy 它尝试 运行 命令

$service postgresql restart

如果上面的命令失败那么你必须检查 /etc/hosts 如果环回地址丢失 127.0.0.1 localhost

添加127.0.0.1行本地主机保存,然后尝试启动postgresql服务

$service postgresql 启动

希望这会有所帮助