Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Keyspace and column family not created #9

judepayne opened this Issue Feb 7, 2012 · 7 comments


None yet
4 participants

when I run together the first three snippets of code from Getting Started i.e. 'Initializing Astyanax', 'Define your column family structure' and 'Inserting data' I get a connection exception with executing the mutation batch: com.netflix.astyanax.connectionpool.exceptions.BadRequestException: BadRequestException: [host=, latency=8(40), attempts=1] InvalidRequestException(why:Keyspace KeySpaceName does not exist).
Only when I manually create the Keyspace and ColumnFamily on cassandra do the inserts work. Am I missing some obvious steps here?


elandau commented Feb 8, 2012

The Keyspace serves as a client only and does not create the keyspace or column family on cassandra. You can use the AsytanaxContext.Builder to construct a Cluster interface through which you can actually create the keyspace and column families.


elandau commented May 1, 2012

There is a bug where the keyspace is not selected prior to issuing the command to add the column family. It will be fixed and release shortly.


elandau commented May 1, 2012

Fixed in 1.0.0.

@elandau elandau closed this May 1, 2012

Thank you

On 1 May 2012, at 09:44, elandau reply@reply.github.com wrote:

Fixed in 1.0.0.

Reply to this email directly or view it on GitHub:
#9 (comment)

Still i am facing the same error


elandau commented May 2, 2012

The examples only address reading/writing to an existing keyspace. I still need to document the API to create a keyspace programmatically. In the meantime look at the unit test for an example. https://github.com/Netflix/astyanax/blob/master/src/test/java/com/netflix/astyanax/thrift/ThrifeKeyspaceImplTest.java

orrgal1 commented Aug 24, 2012

how to use AsytanaxContext.Builder ??? where are the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment