“无法绑定到端口”启用Cassandra客户端加密
发布时间:2020-12-13 13:31:26 所属栏目:百科 来源:网络整理
导读:我在Debian 7上运行带有三节点集群的Cassandra 1.2.集群工作正常.但是我想为客户端启用加密,如下所示:ttp://www.datastax.com/documentation/cassandra/1.2/webhelp/cassandra/security/secureSSLClientToNode_t.html 但是当我在进行必要的配置更改后重新
我在Debian 7上运行带有三节点集群的Cassandra 1.2.集群工作正常.但是我想为客户端启用加密,如下所示:ttp://www.datastax.com/documentation/cassandra/1.2/webhelp/cassandra/security/secureSSLClientToNode_t.html
但是当我在进行必要的配置更改后重新启动Cassandra时,我在日志中收到此错误,并且Cassandra崩溃: INFO 20:12:16,734 enabling encrypted thrift connections between client and server java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243) Caused by: java.lang.RuntimeException: Unable to create thrift socket to /192.168.0.1:9160 at org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory.buildTServer(CustomTThreadPoolServer.java:267) at org.apache.cassandra.thrift.TServerCustomFactory.buildTServer(TServerCustomFactory.java:46) at org.apache.cassandra.thrift.ThriftServer$ThriftServerThread.<init>(ThriftServer.java:105) at org.apache.cassandra.thrift.ThriftServer.start(ThriftServer.java:52) at org.apache.cassandra.service.CassandraDaemon.start(CassandraDaemon.java:400) ... 5 more Caused by: org.apache.thrift.transport.TTransportException: Could not bind to port 9160 at org.apache.thrift.transport.TSSLTransportFactory.createServer(TSSLTransportFactory.java:117) at org.apache.thrift.transport.TSSLTransportFactory.getServerSocket(TSSLTransportFactory.java:103) at org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory.buildTServer(CustomTThreadPoolServer.java:257) ... 9 more Caused by: java.lang.IllegalArgumentException: Cannot support TLS_RSA_WITH_AES_256_CBC_SHA with currently installed providers at sun.security.ssl.CipherSuiteList.<init>(Unknown Source) at sun.security.ssl.SSLServerSocketImpl.setEnabledCipherSuites(Unknown Source) at org.apache.thrift.transport.TSSLTransportFactory.createServer(TSSLTransportFactory.java:113) ... 11 more Cannot start daemon Service exit with a return value of 5 Full log output Gist cassandra.yaml Gist 我错过了什么?
您需要添加java加密扩展.在这里查看有关此问题的博文:
http://www.pathin.org/tutorials/java-cassandra-cannot-support-tls_rsa_with_aes_256_cbc_sha-with-currently-installed-providers/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |