If you're only interested in accessing data natively, I suggest you
try the "fat client."  It brings up a node that participates in
gossip, exposes the StorageProxy API, but does not receive a token and
so does not have storage responsibilities.

StorageService.instance.initClient();

in 0.7 you will want to loop until the node receives its storage
definitions via gossip.

Calling SS.instance.initServer() directly bypasses some of the routine
startup operations.  I don't recommend it unless you really know
what's going on (it might work now, but it's not guaranteed to in the
future).

Gary.


On Sun, Aug 29, 2010 at 10:28, Ruben de Laat <ru...@logic-labs.nl> wrote:
> Just for the people looking to run Cassandra embedded and access
> directly (not via Thrift/Avro).
>
> This works:
>
> StorageService.instance.initServer();
>
> And then just use the StorageProxy for data access.
>
> I have no idea if this is the right way, but is works.
>
> Kind regards,
> Ruben
>
>

Reply via email to