incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schuller <>
Subject Re: Unable to integrate Cassandra with Hadoop
Date Thu, 30 Dec 2010 13:00:45 GMT
> I am trying to integrate Cassandra with Hadoop. I tried with Cassandra 0.7
> rc3 trunk, but failed to do so with following exception,
> java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer
>         at
> I tried with another branch [1] of Cassandra 0.7 rc3
> But it failed with following exception,
> java.lang.ClassCastException: java.nio.HeapByteBuffer cannot be cast to [B

Sounds like a thrift or API version mismatch somewhere. Cassandra
recently switched to thrift 0.5, which uses java.nio.ByteBuffer
instead of byte[]. This would affect the thrift API and some internal
stuff in Cassandra. Likely whatever code is passing a byte[] needs to
be updated.

(I haven't used the hadoop support though so I'm not sure what the
culprit is specifically. Perhaps someone can fill in.)

/ Peter Schuller

View raw message