安装cloudermanager时出现Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory)

发布时间:2017-7-9 7:07:32编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"安装cloudermanager时出现Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory) ",主要涉及到安装cloudermanager时出现Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory) 方面的内容,对于安装cloudermanager时出现Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory) 感兴趣的同学可以参考一下。

  

问题详情

   查看/var/log/cloudera-scm-server.log的启动日志

问题来源

  我在用cloudermanager安装好之后,然后,在对如下。

  配置kerberos后,在web界面重启服务ok。
  但有一个警告:Cloudera recommends at least Level 1 TLS when Kerberos is enabled for CDH clusters.

  设置好上面之后,我再

  

    vim /etc/cloudera-scm-agent/config.ini配置文件

  然后,就再重启service cloudera-scm-server restart 服务,但一直起不来,报错如下:

2016-05-24 15:31:54,843 INFO MainThread:org.mortbay.log: jetty-6.1.26.cloudera.42016-05-24 15:31:54,888 WARN MainThread:org.mortbay.log: failed SslSelectChannelConnector@0.0.0.0:7182: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (没有那个文件或目录)2016-05-24 15:31:54,888 WARN MainThread:org.mortbay.log: failed Server@17a7ad7b: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (没有那个文件或目录)2016-05-24 15:31:54,889 ERROR MainThread:com.cloudera.server.cmf.Main: Failed to start Agent listener.2016-05-24 15:31:54,889 ERROR MainThread:com.cloudera.server.cmf.Main: Server failed.org.apache.avro.AvroRuntimeException: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file or directory)        at com.cloudera.server.common.HttpConnectorServer.start(HttpConnectorServer.java:89)        at com.cloudera.server.cmf.Main.startAgentServer(Main.java:571)        at com.cloudera.server.cmf.Main.startAvro(Main.java:483)        at com.cloudera.server.cmf.Main.run(Main.java:620)        at com.cloudera.server.cmf.Main.main(Main.java:217)Caused by: java.io.FileNotFoundException: /var/lib/cloudera-scm-server/.keystore (No such file  or  directory)        at java.io.FileInputStream.open(Native Method)        at java.io.FileInputStream.<init>(FileInputStream.java:146)        at org.mortbay.resource.FileResource.getInputStream(FileResource.java:275)        at org.mortbay.jetty.security.SslSelectChannelConnector.createSSLContext(SslSelectChannelConnector.java:639)        at org.mortbay.jetty.security.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:613)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at org.mortbay.jetty.Server.doStart(Server.java:235)        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)        at com.cloudera.server.common.HttpConnectorServer.start(HttpConnectorServer.java:87)        ... 4 more

  但是,我的确,进入/var/lib/cloudera-scm-server目录里去看了。没有 /var/lib/cloudera-scm-server/.keystore 这个文件的确不存在的,要如何解决这个问题呢?

  原理

了解Hadoop Kerberos安全机制
http://www.aboutyun.com/forum.php?mod=viewthread&tid=9943


  如何产生,大家可以参考官网:
http://www.cloudera.com/documentation/enterprise/5-2-x/topics/cm_sg_create_key_trust.html

  方法一:解决办法 

Creating Java Keystores and Truststores(创建Java密钥库和信任库)

Typically, a keystore is used in one of two distinct ways:
  • The keystore contains private keys and certificates used by SSL servers to authenticate themselves to SSL clients. By convention, such files are referred to as keystores.
  • When used as a truststore, the file contains certificates of trusted SSL servers, or of Certificate Authorities trusted to identify servers. There are no private keys in the truststore.



上一篇:Elasticsearch之CURL命令的mget查询
下一篇:KRBTabControl(中文)Windows选项卡控件

相关文章

相关评论

本站评论功能暂时取消,后续此功能例行通知。

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。

好贷网好贷款