The error is that the specified colum family doesn't exist.  If you
connect with the CLI and describe the keyspace does it show up?  Also,
after adding a new column family programmatically you can't use it
immediately, you have to wait for it to propagate.  You can use calls to
describe schema to do so, keep calling it until every node is on the
same schema.

 

-Jeremiah

 

From: Tharindu Mathew [mailto:mcclou...@gmail.com] 
Sent: Wednesday, February 29, 2012 8:27 AM
To: user
Subject: Schema change causes exception when adding data

 

Hi,

I have a 3 node cluster and I'm dynamically updating a keyspace with a
new column family. Then, when I try to write records to it I get the
following exception shown at [1].

How do I avoid this. I'm using Hector and the default consistency level
of QUORUM is used. Cassandra version 0.7.8. Replication Factor is 1.

How can I solve my problem?

[1] -
me.prettyprint.hector.api.exceptions.HInvalidRequestException:
InvalidRequestException(why:unconfigured columnfamily proxySummary)

at
me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(Exce
ptionsTranslatorImpl.java:42)

at
me.prettyprint.cassandra.service.KeyspaceServiceImpl$10.execute(Keyspace
ServiceImpl.java:397)

at
me.prettyprint.cassandra.service.KeyspaceServiceImpl$10.execute(Keyspace
ServiceImpl.java:383)

at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation
.java:101)

at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailov
er(HConnectionManager.java:156)

at
me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover
(KeyspaceServiceImpl.java:129)

at
me.prettyprint.cassandra.service.KeyspaceServiceImpl.multigetSlice(Keysp
aceServiceImpl.java:401)

at
me.prettyprint.cassandra.model.thrift.ThriftMultigetSliceQuery$1.doInKey
space(ThriftMultigetSliceQuery.java:67)

at
me.prettyprint.cassandra.model.thrift.ThriftMultigetSliceQuery$1.doInKey
space(ThriftMultigetSliceQuery.java:59)

at
me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAnd
Measure(KeyspaceOperationCallback.java:20)

at
me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeys
pace.java:72)

at
me.prettyprint.cassandra.model.thrift.ThriftMultigetSliceQuery.execute(T
hriftMultigetSliceQuery.java:58)



-- 
Regards,

Tharindu

 

blog: http://mackiemathew.com/

 

Reply via email to