Kassandra's Unknown Exception

I managed to configure Cassandra + Thrift and the Python wrapper for Thrift LazyBoy , and I followed the example mentioned in the LazyBoy Wiki. After testing this example, I get an error with an exception.

cassandra.ttypes.InvalidRequestException: InvalidRequestException(why='Keyspace UserData does not exist in this schema.') 

here is the exception. I expect some help.

Thanks.

+4
source share
2 answers

Make sure the 'UserData' keyspace exists in your configuration file (conf / storage-conf.xml)

eg

 <Keyspaces> <Keyspace Name="UserData"> .... </Keyspaces> 
+6
source

For those just starting out with Cassandra / Pycassa, you may have worked through this tutorial and you are stuck on the line

 col_fam = pycassa.ColumnFamily(pool, 'Standard1') 

with an error that looks like

 pycassa.cassandra.ttypes.InvalidRequestException: InvalidRequestException(why='Keyspace Keyspace1 does not exist') 

To solve this problem, run Cassandra

 bin/cassandra -f 

And then, in another terminal window, load the sample circuit with

 bin/cassandra-cli -host localhost --file conf/schema-sample.txt 

Then you have to go through this line in the tutorial.

+2
source

Source: https://habr.com/ru/post/1303344/


All Articles