Note that Riak already depends on mochiweb, which has the mochijson2 module
(used in Riak for bucket properties and MapReduce).

On Thu, Feb 9, 2012 at 1:57 PM, Ori Bar <ori....@nivertech.com> wrote:

> A good erlang library for JSON is  https://github.com/davisp/jiffy
>
> On Thu, Feb 9, 2012 at 7:27 PM, Jeffrey Eliasen <j...@jke.net> wrote:
> > I've been playing with Riak for a few weeks now using Python, and
> > JavaScript, so I have ~8M records in JSON stored in my cluster. Now I
> would
> > like to run a map/reduce job that adds links and index data to every
> item.
> >
> > From what I understand, this can't be done using JavaScript and
> map/reduce,
> > so I need to use Erlang. I've been learning Erlang for a couple weeks,
> but
> > I'm still pretty new to it overall.
> >
> > My question is this: what's the easiest way to manipulate this data? I
> see
> > three options:
> >
> > Learn me some Erlang and do it that way...
> >
> > Where can I find specific help in learning to manipulate JSON data using
> > Erlang?
> > Am I better off converting every node to Erlang data structures and just
> > using only Erlang from this point forward?
> >
> > Use Erlang but call Python code that does the data manipulation...
> >
> > Any good references for hooking into Python or other external code from
> > within Erlang?
> >
> > Use JavaScript but call Python code that does the re-writes back to the
> > cluster...
> >
> > This appears to be less desireable as M/R jobs will timeout quickly and I
> > can't configure this; any other gotcha's I need to know about?
> >
> >
> > Thanks!
> >
> > jeffrey k eliasen
> >
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
>
>
> --
> Best Regards,
>
> Ori Bar, Software Engineer
> Nivertech Ltd
>
> email:    ori....@nivertech.com
> phone:   +972-52-2838429
> www:     http://www.nivertech.com
>
> The content of this message is Nivertech Ltd Confidential.  If you are
> not the intended recipient and have received this message in error,
> any use or distribution is prohibited. Please notify me immediately by
> reply e-mail and delete this message from your computer system. Thank
> you.
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>



-- 
Sean Cribbs <s...@basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to