Attached is the app.config and here's the code snippet: import riak
client = riak.RiakClient(host='xxx.xxx.xxx.xxx', port=8087,
transport_class=riak.RiakPbcTransport)
query = riak.RiakMapReduce(client).add('nodes')
query.add_key_filters(riak.key_filter.tokenize('-', 2) +
riak.key_filter.starts_with('jim'))
query.map('''
function(v) {
return [[v.key]];
}''')
for result in query.run(timeout=6000000):
print '%s' % (result)
Thanks!
Jim
From: Reid Draper <[email protected]>
Date: Sat, 29 Oct 2011 16:13:03 -0400
To: Jim Adler <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: Python Client Protocol Buffers Error
Do you have some code that you can send to reproduce the issue? Would you
mind sending your app.config as well?
On Sat, Oct 29, 2011 at 3:58 PM, Jim Adler <[email protected]> wrote:
> Ried,
>
> Riak 1.0.1 from package, Ubuntu 11.04
>
> Jim
>
> From: Reid Draper <[email protected]>
> Date: Sat, 29 Oct 2011 13:47:02 -0400
> To: Jim Adler <[email protected]>
> Cc: "[email protected]" <[email protected]>
> Subject: Re: Python Client Protocol Buffers Error
>
> Jim,
>
> What version of Riak are you using? Are you using a package or did you build
> from source? If you built from source, what version of Erlang are you using?
>
> Reid
>
> On Sat, Oct 29, 2011 at 1:38 PM, Jim Adler <[email protected]> wrote:
>> I'm consistently seeing a key filter query fail with protocol buffers that
>> works fine with http. I've seen similar problems reported
>> (http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-April/004
>> 002.html
>> <http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-April/00400
>> 2.html> ,
>> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-October/00
>> 6056.html
>> <http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-October/006
>> 056.html> ,
>> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-January/00
>> 3015.html
>> <http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-January/003
>> 015.html> ). I am using the latest python client 1.3.0 which should have
>> fixed some of the earlier reported problems.
>>
>> Any ideas?
>>
>> Jim
>>
>> Here's the stack trace:
>>
>> 2011-10-29 10:32:03 ERROR __main__,545 'Socket returned short packet
>> length \x00\x00\x00 - expected 4' Traceback (most recent call last):
>> File
>> "/Users/jadler/projects/dg/usr/jadler/projects/score/twitter/twitter_crawl.
>> py", line 270, in main for result in query.run(timeout=6000000):
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa
>> ges/riak/mapreduce.py", line 211, in run result = t.mapred(self._inputs,
>> query, timeout)
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa
>> ges/riak/transports/pbc.py", line 311, in mapred msg_code, resp =
>> self.recv_msg()
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa
>> ges/riak/transports/pbc.py", line 365, in recv_msg self.recv_pkt()
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa
>> ges/riak/transports/pbc.py", line 410, in recv_pkt format(nmsglen))
>> RiakError: 'Socket returned short packet length \x00\x00\x00 - expected 4'
>>
>>
>>
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
app.config
Description: Binary data
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
