check your installations app.config file in the etc folder. @siculars http://siculars.posterous.com
Sent from my rotary phone. On Jul 11, 2012 11:18 PM, <sangeetha.pattabiram...@cognizant.com> wrote: > > > > > > > Hi team, > > > > Iam very new to riak ,can anyone say on loading onto riak > db 2 node cluster …where does it puts the data on the Local file > system.like we see on autosharding of mongodb or hadoop-hdfs over shards in > the cluster mode ….as in which of riak…………………… > > FYI: > > I use curl in loading the same > > > > -module(time). > > -export([starttime/0]). > > -export([main/1]). > > -export([format_and_insert/1]). > > -export([endtime/0]). > > starttime() -> > > starttime = {{Year,Month,Day},{Hour,Min,Sec}} = erlang:localtime(). > > main([Filename]) -> > > {ok, Data} = file:read_file(Filename), > > Lines = tl(re:split(Data, "\r?\n", [{return, binary},trim])), > > lists:foreach(fun(L) -> LS = re:split(L, ","), format_and_insert(LS) > end, Lines). > > > > format_and_insert(Line) -> > > JSON = > io_lib:format("{\"id\":\"~s\",\"phonenumber\":~s,\"callednumber\":~s,\"starttime\":~s,\"endtime\":~s,\"status\":~s}", > Line), > > Command = io_lib:format("curl -X PUT > http://10.232.5.169:8098/riak/goog1/~s -d '~s' -H 'content-type: > application/json'", [hd(Line),JSON]), > > io:format("Inserting: ~s~n", [hd(Line)]), > > os:cmd(Command). > > > > > > Thanks & regards > > sangeetha > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient(s), please reply to the > sender and destroy all copies of the original message. Any unauthorized > review, use, disclosure, dissemination, forwarding, printing or copying of > this email, and/or any action taken in reliance on the contents of this > e-mail is strictly prohibited and may be unlawful. > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com