You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Baraa Mohamad <ba...@gmail.com> on 2011/09/15 18:48:25 UTC

pig stream give error " you can only run one pig script at a time from commande line"

Hello
I have a folder with many xml files i want to load them and parse them in
order to get some information and them store this info to a file

My problem is that I cannot send the xml file to my java script in order to
parse them, I tried the follow script;

*A = load 'xmlFiles/' ;*
*parsing = stream A through mypigudf.myXMLParser();*
*store parsing into 'teststream';*

I'm working locally (pig -x local )

and in my java script I tried to get the file by reading the stdin
                            * java.io.BufferedReader stdin = new
java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
 is this the right way or not ??

all the way when I try to run th pig script I get this error "you can only
run one pig script at a time from commande line"

any ideas please?

regards
--

Re: pig stream give error " you can only run one pig script at a time from commande line"

Posted by Daniel Dai <da...@hortonworks.com>.
Wrong image?

On Thu, Sep 15, 2011 at 10:23 AM, Baraa Mohamad <
baraa.issa.mohamad@gmail.com> wrote:

> Thanks
>
> [image: image.png]
>
> On Thu, Sep 15, 2011 at 7:15 PM, Daniel Dai <da...@hortonworks.com> wrote:
>
>> Can you paste your command line?
>>
>> On Thu, Sep 15, 2011 at 9:56 AM, Baraa Mohamad
>> <ba...@gmail.com> wrote:
>> > But when I'm running another pig scripts that works fine, I get this
>> error
>> > only when I use the stream command
>> >
>> >
>> > On Thu, Sep 15, 2011 at 6:51 PM, Daniel Dai <da...@hortonworks.com>
>> wrote:
>> >
>> >> Check your command line. This is a common message when you have a
>> >> malformed command line.
>> >>
>> >> Daniel
>> >>
>> >> On Thu, Sep 15, 2011 at 9:48 AM, Baraa Mohamad
>> >> <ba...@gmail.com> wrote:
>> >> > Hello
>> >> > I have a folder with many xml files i want to load them and parse
>> them in
>> >> > order to get some information and them store this info to a file
>> >> >
>> >> > My problem is that I cannot send the xml file to my java script in
>> order
>> >> to
>> >> > parse them, I tried the follow script;
>> >> >
>> >> > *A = load 'xmlFiles/' ;*
>> >> > *parsing = stream A through mypigudf.myXMLParser();*
>> >> > *store parsing into 'teststream';*
>> >> >
>> >> > I'm working locally (pig -x local )
>> >> >
>> >> > and in my java script I tried to get the file by reading the stdin
>> >> >                            * java.io.BufferedReader stdin = new
>> >> > java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
>> >> >  is this the right way or not ??
>> >> >
>> >> > all the way when I try to run th pig script I get this error "you can
>> >> only
>> >> > run one pig script at a time from commande line"
>> >> >
>> >> > any ideas please?
>> >> >
>> >> > regards
>> >> > --
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> >
>>
>
>
>
> --
>
>
>

Re: pig stream give error " you can only run one pig script at a time from commande line"

Posted by Baraa Mohamad <ba...@gmail.com>.
Thanks

[image: image.png]

On Thu, Sep 15, 2011 at 7:15 PM, Daniel Dai <da...@hortonworks.com> wrote:

> Can you paste your command line?
>
> On Thu, Sep 15, 2011 at 9:56 AM, Baraa Mohamad
> <ba...@gmail.com> wrote:
> > But when I'm running another pig scripts that works fine, I get this
> error
> > only when I use the stream command
> >
> >
> > On Thu, Sep 15, 2011 at 6:51 PM, Daniel Dai <da...@hortonworks.com>
> wrote:
> >
> >> Check your command line. This is a common message when you have a
> >> malformed command line.
> >>
> >> Daniel
> >>
> >> On Thu, Sep 15, 2011 at 9:48 AM, Baraa Mohamad
> >> <ba...@gmail.com> wrote:
> >> > Hello
> >> > I have a folder with many xml files i want to load them and parse them
> in
> >> > order to get some information and them store this info to a file
> >> >
> >> > My problem is that I cannot send the xml file to my java script in
> order
> >> to
> >> > parse them, I tried the follow script;
> >> >
> >> > *A = load 'xmlFiles/' ;*
> >> > *parsing = stream A through mypigudf.myXMLParser();*
> >> > *store parsing into 'teststream';*
> >> >
> >> > I'm working locally (pig -x local )
> >> >
> >> > and in my java script I tried to get the file by reading the stdin
> >> >                            * java.io.BufferedReader stdin = new
> >> > java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
> >> >  is this the right way or not ??
> >> >
> >> > all the way when I try to run th pig script I get this error "you can
> >> only
> >> > run one pig script at a time from commande line"
> >> >
> >> > any ideas please?
> >> >
> >> > regards
> >> > --
> >> >
> >>
> >
> >
> >
> > --
> >
>



--

Re: pig stream give error " you can only run one pig script at a time from commande line"

Posted by Daniel Dai <da...@hortonworks.com>.
Can you paste your command line?

On Thu, Sep 15, 2011 at 9:56 AM, Baraa Mohamad
<ba...@gmail.com> wrote:
> But when I'm running another pig scripts that works fine, I get this error
> only when I use the stream command
>
>
> On Thu, Sep 15, 2011 at 6:51 PM, Daniel Dai <da...@hortonworks.com> wrote:
>
>> Check your command line. This is a common message when you have a
>> malformed command line.
>>
>> Daniel
>>
>> On Thu, Sep 15, 2011 at 9:48 AM, Baraa Mohamad
>> <ba...@gmail.com> wrote:
>> > Hello
>> > I have a folder with many xml files i want to load them and parse them in
>> > order to get some information and them store this info to a file
>> >
>> > My problem is that I cannot send the xml file to my java script in order
>> to
>> > parse them, I tried the follow script;
>> >
>> > *A = load 'xmlFiles/' ;*
>> > *parsing = stream A through mypigudf.myXMLParser();*
>> > *store parsing into 'teststream';*
>> >
>> > I'm working locally (pig -x local )
>> >
>> > and in my java script I tried to get the file by reading the stdin
>> >                            * java.io.BufferedReader stdin = new
>> > java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
>> >  is this the right way or not ??
>> >
>> > all the way when I try to run th pig script I get this error "you can
>> only
>> > run one pig script at a time from commande line"
>> >
>> > any ideas please?
>> >
>> > regards
>> > --
>> >
>>
>
>
>
> --
>

Re: pig stream give error " you can only run one pig script at a time from commande line"

Posted by Baraa Mohamad <ba...@gmail.com>.
But when I'm running another pig scripts that works fine, I get this error
only when I use the stream command


On Thu, Sep 15, 2011 at 6:51 PM, Daniel Dai <da...@hortonworks.com> wrote:

> Check your command line. This is a common message when you have a
> malformed command line.
>
> Daniel
>
> On Thu, Sep 15, 2011 at 9:48 AM, Baraa Mohamad
> <ba...@gmail.com> wrote:
> > Hello
> > I have a folder with many xml files i want to load them and parse them in
> > order to get some information and them store this info to a file
> >
> > My problem is that I cannot send the xml file to my java script in order
> to
> > parse them, I tried the follow script;
> >
> > *A = load 'xmlFiles/' ;*
> > *parsing = stream A through mypigudf.myXMLParser();*
> > *store parsing into 'teststream';*
> >
> > I'm working locally (pig -x local )
> >
> > and in my java script I tried to get the file by reading the stdin
> >                            * java.io.BufferedReader stdin = new
> > java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
> >  is this the right way or not ??
> >
> > all the way when I try to run th pig script I get this error "you can
> only
> > run one pig script at a time from commande line"
> >
> > any ideas please?
> >
> > regards
> > --
> >
>



--

Re: pig stream give error " you can only run one pig script at a time from commande line"

Posted by Daniel Dai <da...@hortonworks.com>.
Check your command line. This is a common message when you have a
malformed command line.

Daniel

On Thu, Sep 15, 2011 at 9:48 AM, Baraa Mohamad
<ba...@gmail.com> wrote:
> Hello
> I have a folder with many xml files i want to load them and parse them in
> order to get some information and them store this info to a file
>
> My problem is that I cannot send the xml file to my java script in order to
> parse them, I tried the follow script;
>
> *A = load 'xmlFiles/' ;*
> *parsing = stream A through mypigudf.myXMLParser();*
> *store parsing into 'teststream';*
>
> I'm working locally (pig -x local )
>
> and in my java script I tried to get the file by reading the stdin
>                            * java.io.BufferedReader stdin = new
> java.io.BufferedReader(new java.io.InputStreamReader(System.in)); *
>  is this the right way or not ??
>
> all the way when I try to run th pig script I get this error "you can only
> run one pig script at a time from commande line"
>
> any ideas please?
>
> regards
> --
>