我正在尝试使用sparkcassandraconnector和sparkcassandraconnectorjava从Spark连接到cassandra。我能够连接到spark master但是连接到Cassandra失败了,因为下面的ERROR。有人可以指导我如何解决这个问题。这是一个Jar问题。 我使用下面的依赖来实现它。
<dependency>
<groupId>com.datastax.spark</groupId>
<artifactId>spark-cassandra-connector_2.10</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>com.datastax.spark</groupId>
<artifactId>spark-cassandra-connector-java_2.10</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming_2.10</artifactId>
<version>1.4.1</version>
</dependency>
错误 - &gt;
线程中的异常&#34; main&#34; java.lang.NoSuchFieldError:DEFAULT_SSL_CIPHER_SUITES 在com.datastax.spark.connector.cql.CassandraConnectorConf $ CassandraSSLConf $ .apply $ default $ 6(CassandraConnectorConf.scala:47) 在com.datastax.spark.connector.cql.CassandraConnectorConf $。(CassandraConnectorConf.scala:114) at com.datastax.spark.connector.cql.CassandraConnectorConf $。(CassandraConnectorConf.scala) 在com.datastax.spark.connector.cql.CassandraConnector $ .apply(CassandraConnector.scala:192) 在com.datastax.spark.connector.rdd.CassandraTableScanRDD $ .apply(CassandraTableScanRDD.scala:285) 在com.datastax.spark.connector.japi.SparkContextJavaFunctions.cassandraTable(SparkContextJavaFunctions.java:94) 在com.datastax.spark.connector.japi.SparkContextJavaFunctions.cassandraTable(SparkContextJavaFunctions.java:70)