FAQ
Hi,

Here is my scenario

1. Having Cluster of 3 machines,
2. Have a Jar file with includes PIG.jar.

How can i run a Jar  (instead of PIG Script file) in Hadoop mode ?

for running script file in hadoop mode,
"java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main script1-hadoop.pig"

any suggesions/pointers please ??

appologies if i post to a wrong alias.

Thanks,
Krishna.


ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com

Search Discussions

  • Thejas Nair at Jun 26, 2009 at 1:51 pm
    Hi Krishna,
    pig-user@hadoop.apache.org is the right mailing list for pig questions.

    I assume your jar file has an embedded pig script. If your jar file includes
    pig.jar you don't need to specify pig.jar . Assuming that the class called
    YourClass has the main function. The cmd would look like -

    java -cp YourJar.jar:$HADOOPSITEPATH YourClass

    See the example in -
    http://hadoop.apache.org/pig/docs/r0.2.0/quickstart.html
    -Thejas

    On 6/25/09 10:13 PM, "krishna prasanna" wrote:

    Hi,

    Here is my scenario

    1. Having Cluster of 3 machines,
    2. Have a Jar file with includes PIG.jar.

    How can i run a Jar  (instead of PIG Script file) in Hadoop mode ?

    for running script file in hadoop mode,
    "java -cp $PIGDIR/pig.jar:$HADOOPSITEPATH org.apache.pig.Main
    script1-hadoop.pig"

    any suggesions/pointers please ??

    appologies if i post to a wrong alias.

    Thanks,
    Krishna.


    ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET
    http://cricket.yahoo.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedJun 26, '09 at 5:13a
activeJun 26, '09 at 1:51p
posts2
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Thejas Nair: 1 post Krishna prasanna: 1 post

People

Translate

site design / logo © 2022 Grokbase