java.lang.IllegalStateException: Parent for temp dir not configured correctly: writeable=false

 问题:

Cloudera-Manager(CM) 6.3.0 安装完成后,运行下面命令后启动失败,

sudo systemctl start cloudera-scm-server

打开日志,

vim   /var/log/cloudera-scm-server/cloudera-scm-server.log

报错如下:

2020-08-14 18:01:40,283 WARN WebServerImpl:org.eclipse.jetty.webapp.WebAppContext: Failed startup of context o.e.j.w.WebAppContext@26c0a064{/,null,UNAVAILABLE}{/opt/cloudera/cm/webapp}
java.lang.IllegalStateException: Parent for temp dir not configured correctly: writeable=false
        at org.eclipse.jetty.webapp.WebInfConfiguration.makeTempDirectory(WebInfConfiguration.java:511)
        at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:479)
        at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:149)
        at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at com.cloudera.server.cmf.WebServerImpl.run(WebServerImpl.java:352)
2020-08-14 18:01:40,291 ERROR WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Failed to configure external authentication. Server will act as if 'Database Only' authentication has been configured.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.web.authentication.session.ConcurrentSessionControlAuthenticationStrategy' available
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:352)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:350)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:339)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1092)
        at com.cloudera.server.cmf.WebServerImpl.limitConcurrentSessions(WebServerImpl.java:844)
        at com.cloudera.server.cmf.WebServerImpl.initializeAuthentication(WebServerImpl.java:429)
        at com.cloudera.server.cmf.WebServerImpl.run(WebServerImpl.java:368)
2020-08-14 18:01:40,293 ERROR WebServerImpl:com.cloudera.server.cmf.WebServerImpl: Jetty server failed.  Quitting.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationManager' available
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1213)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080)
        at com.cloudera.server.cmf.WebServerImpl.patchSpringAuthenticationProvider(WebServerImpl.java:388)
        at com.cloudera.server.cmf.WebServerImpl.run(WebServerImpl.java:369)

分析:

根据报错内容“Parent for temp dir not configured correctly: writeable=false”  /tmp目录不可写

打开根目录查看 /tmp权限,发现组和其它用户没有写权限

解决:

添加写权限

# chmod a+w /tmp

打开日志,发现没有报错了,

打开浏览器输入:http://<server_host>:7180 可以正常打开网页了

参考:

https://community.bitnami.com/t/solr-fails-to-start-due-parent-for-temp-dir-not-configured-correctly/41329/3

猜你喜欢

转载自blog.csdn.net/abcdu1/article/details/107987040