x27;t notice this when we were running raw thrift library with out
> extension].
>
> ERROR [pool-2-thread-5314] 2011-12-05 20:26:47,729
> CustomTThreadPoolServer.java (line 201) Thrift error occurred during
> processing of message.
> org.apache.thrift.protocol.
>
> >
> >> > Do you remember how you fixed it or what the problem was exactly ?
> >> >
> >> > Thanks,
> >> >
> >> > Alain
> >> >
> >> > 2011/12/19 Tamil selvan R.S
> >> >
> >> >> Hi,
er how you fixed it or what the problem was exactly ?
>> >
>> > Thanks,
>> >
>> > Alain
>> >
>> > 2011/12/19 Tamil selvan R.S
>> >
>> >> Hi,
>> >> We are using PHPCassa to connect to Cassan
t;
> > Alain
> >
> > 2011/12/19 Tamil selvan R.S
> >
> >> Hi,
> >> We are using PHPCassa to connect to Cassandra 1.0.2. After we
> installed the thrift extension we started noticing the following in the
> error logs. [We didn't notice this when we
hrift library with out
>> extension].
>>
>> ERROR [pool-2-thread-5314] 2011-12-05 20:26:47,729
>> CustomTThreadPoolServer.java (line 201) Thrift error occurred during
>> processing of message.
>> org.apache.thrift.protocol.
>> TProtocolException: Missing ve
andra 1.0.2. After we installed
> the thrift extension we started noticing the following in the error logs.
> [We didn't notice this when we were running raw thrift library with out
> extension].
>
> ERROR [pool-2-thread-5314] 2011-12-05 20:26:47,729
> CustomTThreadPoolServer.jav
Message -*
> *From:* "A J"
> *Sent:* Tue, December 20, 2011 15:52
> *Subject:* java thrift error
>
> The following syntax :
> import org.apache.cassandra.thrift.*;
> .
> .
> ColumnOrSuperColumn col = client.get("count_key".getByt
A ByteBuffer is not a byte[] to convert a String to a ByteBuffer do something
likepublic static ByteBuffer toByteBuffer(String value)
throws UnsupportedEncodingException
{
return ByteBuffer.wrap(value.getBytes("UTF-8"));
} see http://wiki.apache.org/cassandra/ThriftExamples --
The following syntax :
import org.apache.cassandra.thrift.*;
.
.
ColumnOrSuperColumn col = client.get("count_key".getBytes("UTF-8"),
cp, ConsistencyLevel.QUORUM);
is giving the error:
get(java.nio.ByteBuffer,org.apache.cassandra.thrift.ColumnPath,org.apache.cassandra.thrift.ConsistencyLev
7,729
CustomTThreadPoolServer.java (line 201) Thrift error occurred during
processing of message.
org.apache.thrift.protocol.
TProtocolException: Missing version in readMessageBegin, old client?
at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213)
Try turning up the logging on the server side to DEBUG and see what it says. Chances are you are not sending what you think you are. Or if you feel like it put a breakpoint in o.a.c.thrift.Cassandra$Client.send_insert to see how when the client is doing. I agree with Tyler, higher level clients are
Is there a particular reason why you're not using a high level client?
http://wiki.apache.org/cassandra/ClientOptions
Raw thrift is painful in many ways.
- Tyler
On Wed, Dec 1, 2010 at 5:06 PM, Michael Fortin wrote:
> Hello,
>
> I'm trying to insert a super column but I can't get passed this
Hello,
I'm trying to insert a super column but I can't get passed this error.
the error:
InvalidRequestException(why:column name must not be empty)
at
org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:14408)
at
org.apache.cassandra.thrift.Cassandra$Client
13 matches
Mail list logo