cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asif Jan <>
Subject Re: connect to cassandra using java
Date Wed, 08 Sep 2010 08:03:52 GMT

once I am using cli script, it is able to connect to the local server  
and see all keyspaces etc. Do I still need to load schemas when using  
the same local server ?

On Sep 7, 2010, at 8:58 PM, Peter Harrison wrote:

> On Wed, Sep 8, 2010 at 3:20 AM, Asif Jan <> wrote:
>> Hi
>> I need to use the low level java API in order to test bulk  
>> ingestion to
>> cassandra. I have already looked at the code in contrib/bmt_example  
>> and
>> contrib/client_only.
>> When I try and run the following code, I get following exception ;  
>> using
>> cassandra-cli I am able to see the "Keyspace1' and column family  
>> 'Standard1'
>> .
> On the server you need to load the schema from the yaml. To do this  
> you will
> need to use jconsole to connect and run the schema load method. You  
> only
> need to do this once on a single node.
> I have written some code to load and drop keyspaces and column  
> families
> for hector; but I'm not quite happy with it yet. This will enable you
> to do everything
> programatically.

View raw message