卡桑德拉不为人知的例外

Swi*_*tch 4 cassandra

我已经设法为Thrift LazyBoy设置了Cassandra + Thrift和Python包装器,并且我遵循了LazyBoy Wiki中提到的一个示例.在测试该示例之后,我遇到了一个异常错误.

cassandra.ttypes.InvalidRequestException: InvalidRequestException(why='Keyspace
UserData does not exist in this schema.')
Run Code Online (Sandbox Code Playgroud)

这是例外.我期待一些帮助.

谢谢.

Sch*_*jer 6

确保配置文件中存在键空间'UserData'(conf/storage-conf.xml)

例如

<Keyspaces>
    <Keyspace Name="UserData">
     ....
</Keyspaces>
Run Code Online (Sandbox Code Playgroud)