Grokbase Groups Pig user July 2011
FAQ
I have a doubt that:

sometime when I run the pig code:
c = stream b through `grep "spider"`;

It will return the error message:
Received Error while processing the map plan: 'grep "spider" ' failed with
exit status: 1

But when I use the pig code:
c = stream b through `awk '{a=index($0,"spider");if(a!=0){print $0};}'`;

It will work normal.

Why?

Thanks very much.

Search Discussions

  • Dmitriy Ryaboy at Jul 5, 2011 at 9:21 pm
    Works for me.

    Make sure you have grep on the path of all your nodes?

    D
    On Mon, Jul 4, 2011 at 7:59 PM, Jameson Li wrote:
    I have a doubt that:

    sometime when I run the pig code:
    c = stream b through `grep "spider"`;

    It will return the error message:
    Received Error while processing the map plan: 'grep "spider" ' failed with
    exit status: 1

    But when I use the pig code:
    c = stream b through `awk '{a=index($0,"spider");if(a!=0){print $0};}'`;

    It will work normal.

    Why?

    Thanks very much.
  • Jameson Li at Jul 6, 2011 at 8:36 am
    Yes. I am sure.


    2011/7/6 Dmitriy Ryaboy <dvryaboy@gmail.com>
    Works for me.

    Make sure you have grep on the path of all your nodes?

    D
    On Mon, Jul 4, 2011 at 7:59 PM, Jameson Li wrote:
    I have a doubt that:

    sometime when I run the pig code:
    c = stream b through `grep "spider"`;

    It will return the error message:
    Received Error while processing the map plan: 'grep "spider" ' failed with
    exit status: 1

    But when I use the pig code:
    c = stream b through `awk '{a=index($0,"spider");if(a!=0){print $0};}'`;

    It will work normal.

    Why?

    Thanks very much.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedJul 5, '11 at 3:01a
activeJul 6, '11 at 8:36a
posts3
users2
websitepig.apache.org

2 users in discussion

Jameson Li: 2 posts Dmitriy Ryaboy: 1 post

People

Translate

site design / logo © 2021 Grokbase