Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread Bryan Fink
On Thu, Jan 31, 2013 at 1:46 PM, wrote: > I'm try fix this bug. > 1. Add fucntion for generating ConsHashCookie in riak_kv_mrc_pipe > ... > It's taking account of which nodes are up. > 2. Remove Hash = chash:key_of(ConstHashCookie) in reduce2pipe function. > > After that all work fine. Excellen

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread gunin
ные: Четверг, 31 Январь 2013 г 21:51:21 Тема: Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down. Hello Bryan. I'm detect problem. Problem is in reduce phase. 1. See riak_kv_mrc_pipe:mr2pipe_phases implementation. It convert MapReduce job

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread gunin
end. %%%%%% Thanks, Alexander Gunin. - Исходное сообщение - От: "Bryan Fink" Кому: gu...@mail.mipt.ru Копия: "John Daily" , "Riak-Users" Отправленные: Четверг, 31 Январь 2013 г 17:03:09 Тема: Re: Differences between riak_client and riak_k

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread gunin
pipe_mapreduce_check_n(Count,N-1,{Good+1,Bad}); {not_available,_}-> pipe_mapreduce_check_n(Count,N-1,{Good,Bad+1}); Else-> {0,{runtime_error,Else}} end. %%%%%% Thanks, Alexand

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread Bryan Fink
On Thu, Jan 31, 2013 at 6:07 AM, wrote: > Sorry John. You don't understand my question. > 1. One node(I mean physical(erlang) node) in cluster is down. > 2. It was down when i'm start job,when perform job and after it. We power off > this node. It's under repair. But we don't remove this node fr

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-31 Thread gunin
ое сообщение - От: "John Daily" Кому: gu...@mail.mipt.ru Копия: riak-users@lists.basho.com Отправленные: Четверг, 31 Январь 2013 г 1:58:38 Тема: Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down. Riak's MapReduce functionality cannot survive a

Re: Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-30 Thread John Daily
Riak's MapReduce functionality cannot survive a node failure. If a vnode involved with a query fails while actively processing the request, the entire query will have to be re-run. The failed query should be automatically terminated, but you'll have to re-run the query yourself. If you create q

Differences between riak_client and riak_kv_mrc_pipe MapReduce when one node is down.

2013-01-30 Thread gunin
We have 6 node riak cluster.I simple custom erlang application for custom MapReduce job. We start MapReduce job using riak_kv_mrc_pipe pipe module,for example - Query = [{map, {modfun,Mod,MapFun},[do_prereduce,{from,1}], false},{reduce, {modfun,Mod,ReduceFun},[{reduce_phase_batch_size, 1000}],