Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu cassandra错误键空间不存在_Ubuntu_Docker_Cassandra - Fatal编程技术网

Ubuntu cassandra错误键空间不存在

Ubuntu cassandra错误键空间不存在,ubuntu,docker,cassandra,Ubuntu,Docker,Cassandra,但是当我手动登录到cqlsh时,我能够选择表 cqlsh:日志>使用审核 cqlsh:审核>从事件日志中选择* 事件| id |事件|类型 我正在使用运行在docker上的Cassandra 3.9您已经缩小了问题的范围(在cqlsh中,查询正在工作), 因此,问题出在驾驶员方面 请确保: 1) 使用的驱动程序(datastax.cassandra-cassandra驱动程序核心-版本3.0.0-alpha5)与cassandra DB版本兼容 2) 如果项目中有任何spring数据cassa

但是当我手动登录到cqlsh时,我能够选择表

cqlsh:日志>使用审核

cqlsh:审核>从事件日志中选择*

事件| id |事件|类型



我正在使用运行在docker上的Cassandra 3.9

您已经缩小了问题的范围(在cqlsh中,查询正在工作), 因此,问题出在驾驶员方面

请确保:

1) 使用的驱动程序(datastax.cassandra-cassandra驱动程序核心-版本3.0.0-alpha5)与cassandra DB版本兼容

2) 如果项目中有任何spring数据cassandra库引用,请删除

请参考这些帖子了解更多信息


我正在使用datasax.cassandra-cassandra驱动程序核心-3.0.0版-alpha5sudo docker run-name dc101-p-d-e cassandra_CLUSTER\u name=“Cluster1”-e cassandra_DC=“datacenter1”-e cassandra_RACK=“rc1”-e cassandra_ENDPOINT\u SNITCH=“gossippingpropertyfilesnitch”-e cassandra_RPC_ADDRESS=“”e cassandra_广播地址=“”-p 9042:9042卡桑德拉:最新。这就是我创建cassandra节点的方式,这不是在听9042port@jAvA-这看起来像是另一个问题,请将其作为另一个问题发布
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JournalActions': Invocation of init method failed; nested exception is com.datastax.driver.core.exceptions.InvalidQueryException: Keyspace 'audit' does not exist
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
    at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
    at com.paypal.pps.activity.init.RaptorApplication.main(RaptorApplication.java:23)
Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: Keyspace 'audit' does not exist