About how via keys get value in riak

2012-06-26 Thread
Hi guys, This is mnesia operation in the following: mnesia:dirty_match_object({comments,{Node, ItemId, '_'}, '_'}). Now, I want to get it from riak. For example:The KEY is {node, itemid, comment1} and {node,itemid, comment2}. I want to get comment1 and c

About second parameter of riakc_pb_socket:mapred

2012-07-12 Thread
Hi guys. To test mapred_inputs() in the program, These parameters ([*{**bucket() , key()} | {bucket()

Re: About second parameter of riakc_pb_socket:mapred

2012-07-13 Thread
Who can answer me? thanks. 2012/7/13 郎咸武 > Hi guys. > > To test mapred_inputs() in the program, These parameters > ([*{**bucket()<http://basho.github.com/riak-erlang-client/riakc_pb_socket.html#type-bucket> > , > key()<http://basho.github.com/riak-erlang-clien

MapReduce paging result

2012-08-09 Thread
Hi guys, How to do a paging in MapReduce queries? I try to write some method in the module(trend_riak.erl, Add -pa /home/jason/work/server/trunk/trend_riakto vm.args). I thought it will well, but unfortunately it does not work. Becase the "Reduce" ,the result is wrong. Is ther

Re: MapReduce paging result

2012-08-09 Thread
Who can answer me? thanks. 2012/8/10 郎咸武 > Hi guys, > How to do a paging in MapReduce queries? > I try to write some method in the module(trend_riak.erl, Add -pa > /home/jason/work/server/trunk/trend_riakto vm.args). > I thought it will well, but unfortunat

Re: How to search objects using riak_search method

2012-08-30 Thread
who can give me some idea 在 2012年8月30日星期四,郎咸武 写道: > Hi guys, >I need your help. > > Version: > 1)riak-erlang-client-1.3 > 2)riak-1.2 > 3)Erlang R14B04 (erts-5.8.5) [source] [64-bit] > > This is my bucket attributs in the following > > (riak@127.0.0.1

Re: How to search objects using riak_search method

2012-08-30 Thread
anyone may reply me,thanks a lot. 在 2012年8月30日星期四,郎咸武 写道: > who can give me some idea > > 在 2012年8月30日星期四,郎咸武 写道: > > Hi guys, >I need your help. > > Version: > 1)riak-erlang-client-1.3 > 2)riak-1.2 > 3)Erlang R14B04 (erts-5.8.5) [source] [64-bit] >

Re: How to search objects using riak_search method

2012-08-31 Thread
y("\"sex\":\"mal*\"")). *%% But this is empty. Why?* {ok,{search_results,[],0.0,0}} 74> riakc_pb_socket:search(Pid, <<"user2">>, list_to_binary("\"sex\":\"male\"")). {ok,{search_results,[{<<"user2">>, [{<

[MapReduce] in state wait_for_input terminated with reason: processing_error

2012-09-25 Thread
Hi guys, I need yours help. I using mapreduce in my server. I only query from riak, that is ok. But first delete some data,after query is error in the follow. My environment: Linux jason-lxw 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Erlang R14B04

Re: How to search objects using riak_search method

2012-10-09 Thread
ot;>>, <<195,169,194,131,194,142,195,165,194,147,194,178>>}, {<<"sex">>,<<"male1">>}]}], 0.0,1}} (ejabberd@meta)29> riakc_pb_socket:search(Pid, <<"user1">>, list_to_binary

How to delete the bucket?

2012-11-18 Thread
Hi guys, I create a <<"test">> bucket. Now i want to delete the bucket. But i can not found the API in the wiki. How to delete the bucket? Please give a piece idea. Cheers, Jason. -- 只为成功找方法,不为失败找理由 ___ riak-users mailing list riak-users@lists.basho.co

Why did not delete the key.

2012-12-31 Thread
Hi all, I met the problem yesterday. Now i have not method to delete. I delete an obj by a key. I found the value is delete, but the key is exists. Why? Please give me some idea. Thanks a lot. Jason -- 只为成功找方法,不为失败找理由 ___ riak-users mailing l

About the node show down when occur riak_searc error of too_many_resut

2013-01-22 Thread
Hi all The default value of 100,000 can be custom tuned with the max_search_results setting in the etc/app.config file. I using the default value. There are 1,000,000 K/V. I only invoke riakc_pb_socket:search(Pid, Bucket, "name:u1*")[1] when the node shutdown[2]. The error is an obvious out of t

Re: About the node show down when occur riak_searc error of too_many_resut

2013-01-22 Thread
Everyone can reply for me. Thanks for any advice. 2013/1/22 郎咸武 > Hi all > > The default value of 100,000 can be custom tuned with the > max_search_results setting in the etc/app.config file. > > I using the default value. There are 1,000,000 K/V. I only > invoke riakc

Pipe worker startup failed:fitting was gone before startup

2013-03-31 Thread
Hi: This is my code[1]. The error log is [2] and[3]. May be this is * [{<<"}~\bgQU&\331">>*,{1,63531874791}}] cause error. I am not sure. Please give some idea. Thanks all. Jason [1] 62 map(Record, undefined, {get_bucket_and_key, Bucket, Key}) -> 63 ?DEBUG("~p:map ~p Record=~p~n", [?MODULE

About Riak a using 50K at least?

2011-12-05 Thread
Hi all,I install riak with make rel in my ubuntu. I found a K-V consume 50K when i put a <"mine","bread"> to the riak. But, i am not sure. Please tell me the reason. Thank you. from jason about list. O0 = riak_object:new(<<"groceries">>, <<"mine">>, ["bread"]). C:put(Oo); du -h bitcask 16K

Re: About Riak a using 50K at least?

2011-12-06 Thread
./1278813932664540053428224228626747642198940975104 100K. 在2011-12-06,"Sean Cribbs" 写道: -原始邮件- 发件人:"Sean Cribbs" 发送时间:2011年12月6日 星期二 收件人:"郎咸武" 抄送:riak-users@lists.basho.com 主题:Re: About Riak a using 50K at least? Note that your filesystem uses 4KB blocks, so even if there are

A bout source compile error in freebsd 9.0

2012-02-07 Thread
Hey riak-users, There is a compile error in the following. I using freebsd. Eriang version is R14B03 . Riak version is 1.0.2. Please give me some idea. Thank everyone. ==> luke (compile) ==> erlang_js (compile) gunzip -c nsprpub-4.8.tar.gz | tar xf - (cd /nsprpub && ./configure --disable-debu

Re:Re: A bout source compile error in freebsd 9.0

2012-02-07 Thread
Jason > -原始邮件- > 发件人: "Andrew Thompson" > 发送时间: 2012年2月8日 星期三 > 收件人: riak-users@lists.basho.com > 抄送: > 主题: Re: A bout source compile error in freebsd 9.0 > > On Wed, Feb 08, 2012 at 11:12:27AM +0800, 郎咸武 wrote: > > Hey riak-users, > >

Re: A bout source compile error in freebsd 9.0

2012-02-07 Thread
Jason > -原始邮件- > 发件人: "Andrew Thompson" > 发送时间: 2012年2月8日 星期三 > 收件人: riak-users@lists.basho.com > 抄送: > 主题: Re: A bout source compile error in freebsd 9.0 > > On Wed, Feb 08, 2012 at 11:12:27AM +0800, 郎咸武 wrote: > > Hey riak-users, > >

Re:A bout source compile error in freebsd 9.0

2012-02-08 Thread
.basho.com > 抄送: > 主题: Re: A bout source compile error in freebsd 9.0 > > On Wed, Feb 08, 2012 at 11:12:27AM +0800, 郎咸武 wrote: > > Hey riak-users, > > There is a compile error in the following. I using freebsd. Eriang version > > is R14B03 . Riak version is 1.0.2. &g

Re: A bout source compile error in freebsd 9.0

2012-02-09 Thread
Indeed i using gmake. howerver i cannot foud /deps/erlang/rebar.cofing in my resource. Jason 在2012-02-09,"Witeman Zheng" 写道: -原始邮件- 发件人:"Witeman Zheng" 发送时间:2012年2月9日 星期四 收件人:"郎咸武" 主题:Re: A bout source compile error in freebsd 9.0 Hey Brother, Did y

How many TB to be store in riak

2012-02-21 Thread
Hi all, How many TB to be store in riak? Now i have about100TB picture. I want to store with riak. But i am not sure that is ok. Answer me, please. Thanks. jason___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/lis

Re: How many TB to be store in riak

2012-02-21 Thread
Hi mark, hmm you are right, I only have about 30TBs at present. may be individual is 50MB. There is a new requirement: Random read any file. Is it work well? Thanks again. Jason 在2012-02-22,"Mark Phillips" 写道: -原始邮件- 发件人:"Mark Phillips" 发送时间:2012年2月2

Re: How many TB to be store in riak

2012-02-26 Thread
Hi Mark,firsrt thanks If i usring file.erl r/w that big file, to store disk with zfs (Dynamic File System). How about this. thank you jason 在2012-02-24,"Mark Phillips" 写道: -原始邮件- 发件人:"Mark Phillips" 发送时间:2012年2月24日 星期五 收件人:"郎咸武" 抄送:"riak