Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> $HOME


I wasn't aware shell commands are executed inline within pig scripts. Can
someone please point me to the JIRA or docs for this?

I used to pass these properties with 'param'
pig -param HOME=$(echo $HOME) script.pig

-Prashant
On Mon, Feb 11, 2013 at 12:08 AM, Russell Jurney
<[EMAIL PROTECTED]>wrote:

> Note: I am REGISTER'ing jars using $HOME:
>
> %default HOME `echo $HOME/Software`
> /* Avro uses json-simple, and is in piggybank until Pig 0.12, where
> AvroStorage and TrevniStorage are builtins */
> REGISTER $HOME/pig/build/ivy/lib/Pig/avro-1.5.3.jar
> REGISTER $HOME/pig/build/ivy/lib/Pig/json-simple-1.1.jar
> REGISTER $HOME/pig/contrib/piggybank/java/piggybank.jar
>
>
>
> On Mon, Feb 11, 2013 at 12:08 AM, Russell Jurney
> <[EMAIL PROTECTED]>wrote:
>
> > Unexpected internal error. Undefined parameter : HOME
> >
> >
> > On Sun, Feb 10, 2013 at 10:53 PM, Bill Graham <[EMAIL PROTECTED]
> >wrote:
> >
> >> try this:
> >>
> >> %default HOME `echo $HOME`
> >>
> >>
> >> On Sun, Feb 10, 2013 at 9:37 PM, Russell Jurney <
> [EMAIL PROTECTED]
> >> >wrote:
> >>
> >> > What should I do to fill in the user's home directory when writing
> about
> >> > pig?
> >> >
> >> > SET HOME `echo $HOME`  # Does not work
> >> >
> >> > --
> >> > Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]
> >> > datasyndrome.com
> >> >
> >>
> >
> >
> >
> > --
> > Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]atasyndrome.
> > com
> >
>
>
>
> --
> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]
> datasyndrome.com
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB