Prasad, my query was more about the concept. Not the syntax. I hope
this will still work when hive 0.4 is released. I'm basing a lot on
it.

On 8/4/09, Prasad Chakka <[email protected]> wrote:
> Quotes should work.
>
> Prasad
>
>
> ________________________________
> From: Saurabh Nanda <[email protected]>
> Reply-To: <[email protected]>
> Date: Tue, 4 Aug 2009 05:43:34 -0700
> To: <[email protected]>
> Subject: Passing parameters to custom map/reduce scripts
>
> Can I pass parameters to custom map/reduce scripts like this:
>
>     from try_hits
>     select transform ip_address, aid, uid
>     using 'parse_logs.rb MY_PARAM_HERE' as ip_address, aid, uid
>
> I've tried it, and it seems to work, but I just want to be sure whether this
> is guaranteed to work under all circumstances. A large part of my current
> project depends on this :-)
>
> PS: Here's what I'm trying to do -- based on a profile ID (which is passed
> as a parameter), the map/reduce script is going to look up a DB and fetch a
> bunch of regular expressions from there. Based on these dynamically fetched
> regular expressions it'll process the input.
>
> Saurabh.
> --
> http://nandz.blogspot.com
> http://foodieforlife.blogspot.com
>
>


-- 
http://nandz.blogspot.com
http://foodieforlife.blogspot.com

Reply via email to