Solving "bad_utf8_character_code" error returned by Riak MR

Samuel Elliott sam at lenary.co.uk
Sat Mar 10 12:59:05 EST 2012


On Fri, Mar 9, 2012 at 8:32 PM, Matthew Tovbin <matthew at tovbin.com> wrote:
> Thanks, Sean!
>
> What are the suggestions for solving this issue, except of cleaning data
> before putting it to Riak?

pre- or post-commit hook maybe? That means your clients won't need to
do an explicit clean, but the data will still be clean once it gets
stored (presumably). Others on this list will know far better than me
though, it's just an idea.

Sam

>
>
> -Matthew
>
>
>
> On Fri, Mar 9, 2012 at 10:38, Sean Cribbs <sean at basho.com> wrote:
>>
>> Matthew,
>>
>> Even if your map function doesn't use the object, the Erlang side doesn't
>> know that (Javascript funargs are exceptionally lazy anyway). It will still
>> try to serialize the object into JSON to send marshal it into the VM. That's
>> where the error is generated.
>>
>> On Fri, Mar 9, 2012 at 12:20 PM, Matthew Tovbin <matthew at tovbin.com>
>> wrote:
>>>
>>>  Good day!
>>>
>>>   As previously discussed here
>>> (https://github.com/basho/riak_kv/pull/252#issuecomment-4415767) I am unable
>>> to perform MR on my cluster due to wrong encoding in some of my values.
>>>
>>> What are the suggestions for solving this issue, except of cleaning data
>>> before putting it to Riak?
>>>
>>> Why does even this map function fail "function map () { return [1]; }"
>>> ? It's not supposed to parse the value.
>>>
>>>
>>> Thanks in advance for any tips.
>>>
>>> -Matthew
>>>
>>>
>>> _______________________________________________
>>> riak-users mailing list
>>> riak-users at lists.basho.com
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>>
>>
>>
>>
>> --
>> Sean Cribbs <sean at basho.com>
>> Software Engineer
>> Basho Technologies, Inc.
>> http://basho.com/
>>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>



-- 
Samuel Elliott
sam at lenary.co.uk
http://lenary.co.uk/
+44 (0)7891 993 664




More information about the riak-users mailing list