我有Cassandra 1.1.1安装在我的电脑,我正试图连接到它通过Hector API。我使用的是developerstation.org中的示例。我已经启动了服务器,还通过CLI创建了所需的键空间和列族。现在,当我尝试执行程序插入数据时,我得到以下错误。
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:unconfigured columnfamily authCollection)
at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:42)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:95)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:88)
Error encountered while inserting data!!
at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101)
at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:224)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(KeyspaceServiceImpl.java:129)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(KeyspaceServiceImpl.java:100)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(KeyspaceServiceImpl.java:106)
at me.prettyprint.cassandra.model.MutatorImpl$3.doInKeyspace(MutatorImpl.java:219)
at me.prettyprint.cassandra.model.MutatorImpl$3.doInKeyspace(MutatorImpl.java:216)
at me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(KeyspaceOperationCallback.java:20)
at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeyspace.java:85)
at me.prettyprint.cassandra.model.MutatorImpl.execute(MutatorImpl.java:216)
at me.prettyprint.cassandra.model.MutatorImpl.insert(MutatorImpl.java:55)
at com.examples.cassandra.CassandraExample.insertData(CassandraExample.java:31)
at com.examples.cassandra.CassandraExample.main(CassandraExample.java:131)
Caused by: InvalidRequestException(why:unconfigured columnfamily authCollection)
at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:16477)
at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:916)
at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:890)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:93)
... 14 more
“未配置的columnfamily X”意味着您需要在尝试插入columnfamily X之前创建它。
当我尝试从Scala应用程序通过幻影插入卡桑德拉时,我收到以下错误代码。 Cassandra版本捆绑了:dsc-cassandra-3.0.1 [错误](run-main-0)com . datas tax . driver . core . exceptions . nohostavailableexception:尝试查询的所有主机都失败(尝试:localhost/127 . 0 . 0 .
输出 错误。jcall(drv@jdrv,“Ljava/sql/Connection;”,“连接”,如图所示。字符(url)[1],:java。lang.NoClassDefFoundError:org/apache/thrift/transport/ttTransportException
我得到了一个错误:- 线程“main”java.lang.nosuchmethoderror:com.datastax.driver.core.queryoptions.setrefreshnodeintervalmillis(I)lcom/datastax/driver/core/queryoptions;**在com.datastax.spark.connector.cql.defaultCo
我正在寻找的ans是通过Play-Scala连接到cassandra所需要的依赖项。cassandra版本2.2.0,play版本2.4 我的build.sbt文件: 惰性val root=(文件中的项目(“.”))。enablePlugins(PlayScala) scalaVersion:=“2.11.6”libraryDependencies++=Seq( “com.typesafe.akk
我想问一下,我们是否可以在数据库连接url示例中传递用户名和密码: 我正在使用apache cassandra的cdata驱动程序。如果是,我如何创建一个使用密码的用户,我将通过连接url访问该用户?不,关于税收的文件对我没有帮助。
Presto与Cassandra/ScylLadb的默认连接数是多少?如何设置此属性?谢谢