FAQ
Hi,

I need to combine multiple tuples in output in a single one in pig script.
Could you please guide me how we can do it?



dump requestFile;



Output:



(Logging Transaction
ID:21214,/var/log/tibco/,NESS-A-1-LPNameRequesttoNESS.log,tibcoTest log)

(Default Data:LP Name Request Message Executed Successfully)

(LoanPath Request ID: 88128640)

(RequestGroupID#: )

(SplitCount#: 2 )

(SplitIndex: 1)

(Correlation ID : 88128640-1 )

Desired Output:



(Logging Transaction
ID:21214,/var/log/tibco/,NESS-A-1-LPNameRequesttoNESS.log,tibcoTest
log,Default Data:LP Name Request Message Executed Successfully,LoanPath
Request ID: 88128640,RequestGroupID#: ,SplitCount#: 2,SplitIndex: 1,
Correlation ID : 88128640-1)

Thanks & Regards,

Deepak

Search Discussions

  • Casey Ching at Jan 10, 2013 at 6:29 pm
    Hi Deepak,

    cdh-user is a better list for this, added.

    Casey
    On Thu, Jan 10, 2013 at 2:03 AM, wrote:

    Hi,

    I need to combine multiple tuples in output in a single one in pig script.
    Could you please guide me how we can do it?



    dump requestFile;



    Output:



    (Logging Transaction
    ID:21214,/var/log/tibco/,NESS-A-1-LPNameRequesttoNESS.log,tibcoTest log)

    (Default Data:LP Name Request Message Executed Successfully)

    (LoanPath Request ID: 88128640)

    (RequestGroupID#: )

    (SplitCount#: 2 )

    (SplitIndex: 1)

    (Correlation ID : 88128640-1 )

    Desired Output:



    (Logging Transaction
    ID:21214,/var/log/tibco/,NESS-A-1-LPNameRequesttoNESS.log,tibcoTest
    log,Default Data:LP Name Request Message Executed Successfully,LoanPath
    Request ID: 88128640,RequestGroupID#: ,SplitCount#: 2,SplitIndex: 1,
    Correlation ID : 88128640-1)

    Thanks & Regards,

    Deepak

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedJan 10, '13 at 10:03a
activeJan 10, '13 at 6:29p
posts2
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Deepmun1983: 1 post Casey Ching: 1 post

People

Translate

site design / logo © 2022 Grokbase