tjake / Solandra

Solandra = Solr + Cassandra
Apache License 2.0
882 stars 150 forks source link

Issue with CassandraUtils. #107

Closed mevivs closed 13 years ago

mevivs commented 13 years ago

Currently i am facing 1 issue with Solandra. I have my cassandra server running standalone on 9160. I have a thrift client connected to server for inserting my schema. Now for indexing i have intialized Solandra with CassandraUtils.startUpClient() and CassandraUtils.CreateCassandraSchema(). But somehow system tables like ('L', 'TI' etc.) are not getting created.

But interestingly this works fine when i start Cassandra Server in embedded mode using EmbeddedCassandraService.

tjake commented 13 years ago

Sorry, I'm confused... Why are you not using SolandraServer?

mevivs commented 13 years ago

Reason for this is i want to start this implicitly within my app. Thanks, i am able to resolve this issue. But just wanted to ask, is there any specific reason for using CassandraServer cs = new CassandraServer() in CassandraUtils.java?

Should it be flxible enough to configure a client via external app?

tjake commented 13 years ago

solandra has a client mode "-c" flag that lets you run it against a existing cassandra cluster. internally this calls the CassandraUtils startupClient() method. Is this what you need?

mevivs commented 13 years ago

Thanks... But will that load my updated db, as same is done by CassandraDaemon.activate() ? I mean loading metadata, DatabaseDescription defs etc.