<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Launcher ERROR - Pig.Main in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160662#M123047</link>
    <description>&lt;P&gt;After a lot of trial and error, reading documentation and beers. I was able to figure out that the issue was the name of my pig jar. I renamed it to pig.jar in the lib folder, backed out all changes to my pig-env,sh and my oozie job ran and succeeded. Thank you to everyone for your help and especially to Jitendra for taking the time to give suggestions. &lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2016 12:51:10 GMT</pubDate>
    <dc:creator>Montrial</dc:creator>
    <dc:date>2016-05-22T12:51:10Z</dc:date>
    <item>
      <title>Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160647#M123032</link>
      <description>&lt;P&gt;I am trying to run a Oozie job that runs a pig script. My job.properties file is local and my workflow.xml is in HDFS. Below is my properties file.&lt;/P&gt;&lt;P&gt;nameNode=hdfs://192.168.56.104:8020
jobTracker=192.168.56.104:8050
queueName=default
flattenRoot=Flatten_Tweet2
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/oozie/${flattenRoot}
oozie.action.sharelib.for.pig=pig,hcatalog,hive&lt;/P&gt;&lt;P&gt;and here is my workflow file.&lt;/P&gt;&lt;P&gt;&amp;lt;workflow-app name='pig-wf' xmlns="uri:oozie:workflow:0.3"&amp;gt;
    &amp;lt;start to='pig-node'/&amp;gt;
    &amp;lt;action name='pig-node'&amp;gt;
       &amp;lt;pig&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;script&amp;gt;Flatten_Tweet2.pig&amp;lt;/script&amp;gt;
&amp;lt;file&amp;gt;lib/hive-site.xml&amp;lt;/file&amp;gt;
       &amp;lt;/pig&amp;gt;
       &amp;lt;ok to="end"/&amp;gt;
           &amp;lt;error to="fail"/&amp;gt;
        &amp;lt;/action&amp;gt;
        &amp;lt;kill name="fail"&amp;gt;
             &amp;lt;message&amp;gt;Pig failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
        &amp;lt;/kill&amp;gt;
        &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;&lt;/P&gt;&lt;P&gt;I keep getting the below error no matter what I try.&lt;/P&gt;&lt;P&gt;Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.PigMain], exit code [2]&lt;/P&gt;&lt;P&gt;Any help would be apprecated. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 11:33:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160647#M123032</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-21T11:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160648#M123033</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt;&lt;P&gt;Can you please check oozie launcher logs? Please refer &lt;A target="_blank" href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html"&gt;this&lt;/A&gt; article.&lt;/P&gt;&lt;P&gt;You can post logs here so that we can have a look at it, most probably "stderr" part of launcher logs should give you a hint.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 02:09:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160648#M123033</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-22T02:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160649#M123034</link>
      <description>&lt;P&gt;I have took a look at the stderr logs and got this as an output. Does this make sense?&lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/23/mapreduce.tar.gz/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/hadoop/yarn/local/filecache/44/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Details at logfile: /hadoop/yarn/local/usercache/mbharrel/appcache/application_1463627394303_0038/container_e16_1463627394303_0038_01_000002/pig-job_1463627394303_0038.log
&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 May 2016 04:29:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160649#M123034</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T04:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160650#M123035</link>
      <description>&lt;P&gt;Actually that is not the issue. When I looked down in the log I found the below. I will investigate but appreciate any guidance as well.&lt;/P&gt;&lt;PRE&gt;ERROR 4010: Cannot find hadoop configurations in classpath (neither hadoop-site.xml nor core-site.xml was found in the classpath).&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 May 2016 04:48:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160650#M123035</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T04:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160651#M123036</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Seems like pig doesn't know where to get conf files, Can you please set below env properties inside pig-env.sh and run again?&lt;/P&gt;&lt;P&gt;export HADOOP_CONF_DIR=$HADOOP_CONF_DIR:/etc/hadoop/conf&lt;/P&gt;&lt;P&gt;export PIG_CLASSPATH=$PIG_CLASSPATH:$HADOOP_CONF_DIR&lt;/P&gt;&lt;P&gt;Also please let us know your hdp version and did you changed any properties in cluster recently? I think this shouldn't be default behavior.  &lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:05:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160651#M123036</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-22T05:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160652#M123037</link>
      <description>&lt;P&gt;I am running the HDP Sandbox. My hadoop version command returns the below and I have not changed anything to my recollection about the environment.&lt;/P&gt;&lt;P&gt; hadoop version
Hadoop 2.7.1.2.4.0.0-169
Subversion git@github.com:hortonworks/hadoop.git -r 26104d8ac833884c8776473823007f176854f2eb
Compiled by jenkins on 2016-02-10T06:18Z
Compiled with protoc 2.5.0
From source with checksum cf48a4c63aaec76a714c1897e2ba8be6
This command was run using /usr/hdp/2.4.0.0-169/hadoop/hadoop-common-2.7.1.2.4.0.0-169.jar&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:28:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160652#M123037</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T05:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160653#M123038</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for sharing that info, can you please run below command and see which pig jar having these conf files.&lt;/P&gt;&lt;P&gt;grep -iR hadoop-site.xml /usr/hdp/&amp;lt;version&amp;gt;/pig/&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:42:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160653#M123038</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-22T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160654#M123039</link>
      <description>&lt;P&gt;Here is the output Jitendra. Do you see anything wrong?&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.0.0-169/pig/doc/api/constant-values.html:&amp;lt;td&amp;gt;&amp;lt;code&amp;gt;"hadoop-site.xml"&amp;lt;/code&amp;gt;&amp;lt;/td&amp;gt;
/usr/hdp/2.4.0.0-169/pig/conf/pig.properties:# By default, Pig expects hadoop configs (hadoop-site.xml and core-site.xml)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-3200: MiniCluster should delete hadoop-site.xml on shutDown (prkommireddi via cheolsoo)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-2491: Pig docs still mention hadoop-site.xml (daijy)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-1791: System property mapred.output.compress, but pig-cluster-hadoop-site.xml doesn't (daijy)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-1186: Pig do not take values in "pig-cluster-hadoop-site.xml" (daijy)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:    'pig-cluster-hadoop-site.xml' in the non HOD case just like it does in the
/usr/hdp/2.4.0.0-169/pig/RELEASE_NOTES.txt:variable to point to the directory with your hadoop-site.xml file and then run&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:46:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160654#M123039</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T05:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160655#M123040</link>
      <description>&lt;P&gt;Here is what my new pig-env.sh looks like.&lt;/P&gt;&lt;P&gt;JAVA_HOME=/usr/lib/jvm/java
HADOOP_HOME=${HADOOP_HOME:-/usr/hdp/current/hadoop-client}
export HADOOP_CONF_DIR=$HADOOP_CONF_DIR:/etc/hadoop/conf
export PIG_CLASSPATH=$PIG_CLASSPATH:$HADOOP_CONF_DIR
if [ -d "/usr/lib/tez" ]; then
  PIG_OPTS="$PIG_OPTS -Dmapreduce.framework.name=yarn"
fi&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:51:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160655#M123040</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T05:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160656#M123041</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please check for core-site.xml also.&lt;/P&gt;&lt;P&gt;grep -iR core-site.xml /usr/hdp/&amp;lt;version&amp;gt;/pig/&lt;/P&gt;&lt;P&gt;If you don't see any jar file in the output then I think you can try copying these two xml from /etc/hadoop/conf to pig/conf dir and see if that resolve the issue.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 05:55:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160656#M123041</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-22T05:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160657#M123042</link>
      <description>&lt;P&gt;I did not get any pig jars when I ran grep -iR core-site.xml /usr/hdp/2.4.0.0-169/pig. The only output was the below. Should I copy the xml files to the pig/conf as you instructed?&lt;/P&gt;&lt;P&gt;/usr/hdp/2.4.0.0-169/pig/doc/api/constant-values.html:&amp;lt;td&amp;gt;&amp;lt;code&amp;gt;"core-site.xml"&amp;lt;/code&amp;gt;&amp;lt;/td&amp;gt;
/usr/hdp/2.4.0.0-169/pig/conf/pig.properties:# By default, Pig expects hadoop configs (hadoop-site.xml and core-site.xml)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-4247: S3 properties are not picked up from core-site.xml in local mode (cheolsoo)
/usr/hdp/2.4.0.0-169/pig/CHANGES.txt:PIG-3145: Parameters in core-site.xml and mapred-site.xml are not correctly substituted (cheolsoo)&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 06:03:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160657#M123042</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160658#M123043</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Yes, please try.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 06:08:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160658#M123043</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-22T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160659#M123044</link>
      <description>&lt;P&gt;I have copied both files from /etc/hadoop/conf to /usr/hdp/2.4.0.0-169/pig/conf and chmod to 755. Is this correct?&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 06:30:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160659#M123044</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160660#M123045</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10089/montrialharrell.html" nodeid="10089"&gt;@Montrial Harrell&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Yes, thats fine.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 06:38:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160660#M123045</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-22T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160661#M123046</link>
      <description>&lt;P&gt;The job still fails with the same error in the log oozie log. &lt;/P&gt;&lt;P&gt;Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.PigMain]&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 06:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160661#M123046</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T06:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160662#M123047</link>
      <description>&lt;P&gt;After a lot of trial and error, reading documentation and beers. I was able to figure out that the issue was the name of my pig jar. I renamed it to pig.jar in the lib folder, backed out all changes to my pig-env,sh and my oozie job ran and succeeded. Thank you to everyone for your help and especially to Jitendra for taking the time to give suggestions. &lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 12:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160662#M123047</guid>
      <dc:creator>Montrial</dc:creator>
      <dc:date>2016-05-22T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Launcher ERROR - Pig.Main</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160663#M123048</link>
      <description>&lt;P&gt;Can you please mention the details and the location of the file you renamed?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 16:05:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Launcher-ERROR-Pig-Main/m-p/160663#M123048</guid>
      <dc:creator>narayantalk2u_</dc:creator>
      <dc:date>2018-08-08T16:05:42Z</dc:date>
    </item>
  </channel>
</rss>

