You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by mo...@gmail.com on 2009/11/03 23:59:15 UTC
TypeError: batch_insert() takes exactly 4 arguments (5 given)
in this simple example
http://pastie.org/682435
i got this error
http://pastie.org/682436
Can you please clarify what is the bug
this uses latest cassandra from git and latest lazyboy from git
THanks
Re: TypeError: batch_insert() takes exactly 4 arguments (5 given)
Posted by Michael Greene <mi...@gmail.com>.
There's nothing about Thrift that doesn't work in Python 2.6. I've
been using it in daily operation for several months now. There's the
DeprecationWarning message, but that's a false positive and doesn't
affect operation. What he's seeing with parameter inconsistencies is
something else.
Michael
On Nov 6, 2009, at 12:13 AM, Ian Eure <ia...@digg.com> wrote:
> On Nov 3, 2009, at 3:26 PM, mobiledreamers@gmail.com wrote:
>
>> Latest cassandra causing these problems?
>>
> The Thrift code doesn't play nice with Python 2.6. This _may_ be
> fixed in the 2.6.4, but I haven't checked.
>
> I suggest sticking with Python 2.5.x for the time being.
>
> - Ian
Re: TypeError: batch_insert() takes exactly 4 arguments (5 given)
Posted by Ian Eure <ia...@digg.com>.
On Nov 3, 2009, at 3:26 PM, mobiledreamers@gmail.com wrote:
> Latest cassandra causing these problems?
>
The Thrift code doesn't play nice with Python 2.6. This _may_ be fixed
in the 2.6.4, but I haven't checked.
I suggest sticking with Python 2.5.x for the time being.
- Ian
Re: TypeError: batch_insert() takes exactly 4 arguments (5 given)
Posted by mo...@gmail.com.
*Latest cassandra causing these problems*?
/usr/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-i686.egg/thrift/Thrift.py:58:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
/usr/lib/python2.6/site-packages/Thrift-0.1-py2.6-linux-i686.egg/thrift/Thrift.py:99:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
/home/mark/work/common/lazyboy/connection.py:101: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
if tx.message:
/home/mark/work/common/lazyboy/connection.py:102: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
message = tx.message
Traceback (most recent call last):
File "simplecass.py", line 8, in <module>
x.save()
File "/home/mark/work/common/lazyboy/record.py", line 168, in save
client.batch_insert(*self._get_batch_args(self.key, changed))
File "/home/mark/work/common/lazyboy/connection.py", line 106, in func
raise ErrorThriftMessage(message)
lazyboy.exceptions.ErrorThriftMessage: Internal error processing
batch_insert
ERROR - Internal error processing batch_insert
java.lang.NullPointerException
at
org.apache.cassandra.service.CassandraServer.batch_insert(CassandraServer.java:328)
at
org.apache.cassandra.service.Cassandra$Processor$batch_insert.process(Cassandra.java:691)
at
org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:560)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
On Tue, Nov 3, 2009 at 2:59 PM, <mo...@gmail.com> wrote:
> in this simple example
> http://pastie.org/682435
>
> i got this error
> http://pastie.org/682436
>
> Can you please clarify what is the bug
> this uses latest cassandra from git and latest lazyboy from git
>
> THanks
>
--
Bidegg worlds best auction site
http://bidegg.com