Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - $HOME


+
Russell Jurney 2013-02-11, 05:37
+
Bill Graham 2013-02-11, 06:53
+
Russell Jurney 2013-02-11, 08:08
+
Russell Jurney 2013-02-11, 08:08
+
Prashant Kommireddi 2013-02-11, 09:02
+
Russell Jurney 2013-02-11, 09:19
+
Prashant Kommireddi 2013-02-11, 09:31
+
Russell Jurney 2013-02-11, 11:36
+
Jonathan Coveney 2013-02-11, 15:52
Copy link to this message
-
Re: $HOME
Russell Jurney 2013-02-11, 16:47
It works! Thanks!
On Mon, Feb 11, 2013 at 7:52 AM, Jonathan Coveney <[EMAIL PROTECTED]>wrote:

> Bill was right, he just forgot an escape:
>
> %default HOME `echo \$HOME`
>
> I believe that should work
>
>
> 2013/2/11 Russell Jurney <[EMAIL PROTECTED]>
>
> > Yes, I agree. Please edit! :)
> >
> >
> > On Mon, Feb 11, 2013 at 1:31 AM, Prashant Kommireddi <
> [EMAIL PROTECTED]
> > >wrote:
> >
> > > Only suggesting a workaround, not implying it's the best solution.
> > >
> > > Looked at the JIRA you've opened for this, I think it should work for
> > > shell statements in general and not just HOME. Do you agree?
> > >
> > > Sent from my iPhone
> > >
> > > On Feb 11, 2013, at 1:19 AM, Russell Jurney <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Asking a user to add that param every single time he runs Pig is
> > > > unacceptable.
> > > >
> > > >
> > > > On Mon, Feb 11, 2013 at 1:02 AM, Prashant Kommireddi <
> > > [EMAIL PROTECTED]>wrote:
> > > >
> > > >> 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/[EMAIL PROTECTED]atasyndrome.
> > > >>>> com
> > > >>>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]
> > > >>> datasyndrome.com
> > > >>>
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]
> > > datasyndrome.com
> > >
> >
> >
> >
> > --
> > Russell Jurney twitter.com/rjurney [EMAIL PROTECTED]
> > datasyndrome.com
> >
>

--
Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com
+
Prashant Kommireddi 2013-02-11, 16:50
+
Evert Lammerts 2013-02-11, 08:29
+
Russell Jurney 2013-02-11, 17:30
+
Jonathan Coveney 2013-02-11, 17:44