<?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: Pig command not working in centos. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119193#M30678</link>
    <description>&lt;P&gt;The command worked! I added the lib dir of Pig to the HADOOP_CLASSPATH in hadoop-env.sh. &lt;/P&gt;</description>
    <pubDate>Sun, 05 Jun 2016 13:59:54 GMT</pubDate>
    <dc:creator>iit2013121</dc:creator>
    <dc:date>2016-06-05T13:59:54Z</dc:date>
    <item>
      <title>Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119188#M30673</link>
      <description>&lt;P&gt;
	We recently installed Pig 0.15.0 on our system. We already have Hadoop 2.7.1 installed on our system. But while running the pig command we get the following exception :-&lt;/P&gt;&lt;PRE&gt;[hadoop1@hp_proliant ~]$ pig
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/RecognitionException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:215)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.RecognitionException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more
&lt;/PRE&gt;&lt;P&gt;Following is the content of our bashrc file for any reference to path settings :-&lt;/P&gt;&lt;PRE&gt;export JAVA_HOME=/opt/jdk1.8.0_65
export HADOOP_HOME=/home/hadoop1/hadoop1
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HBASE_HOME=/home/hadoop1/hbase-1.1.4
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$HBASE_HOME/bin:$HBASE_HOME/lib/*
export CLASSPATH=$CLASSPATH:/home/hadoop1/hbase-1.1.4/lib/*
export PIG_HOME=/home/hadoop1/Pig
export PATH=$PATH:/home/hadoop1/Pig/bin
export PIG_CLASSPATH=$CLASSPATH:/home/hadoop1/Pig/lib/*
&lt;/PRE&gt;&lt;P&gt;What possible could be the problem for this exception?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 19:48:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119188#M30673</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-06-03T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119189#M30674</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2692/iit2013121.html" nodeid="2692"&gt;@Kumar Sanyam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like below jar is missing from PIG lib directory. Please cross check&lt;/P&gt;&lt;P&gt;antlr-runtime-&amp;lt;version&amp;gt;.jar&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 19:51:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119189#M30674</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-03T19:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119190#M30675</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2692/iit2013121.html" nodeid="2692"&gt;@Kumar Sanyam&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Could you please check whether antlr runtime is available in pig classpath using &lt;/P&gt;&lt;P&gt;pig -printCmdDebug | grep antlr --color&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 20:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119190#M30675</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-03T20:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119191#M30676</link>
      <description>&lt;P&gt;/home/hadoop1/Pig/lib/antlr-runtime-3.4.jar&lt;/P&gt;&lt;P&gt;The above line exists in the output generated while running the given command.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 21:05:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119191#M30676</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-06-03T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119192#M30677</link>
      <description>&lt;P&gt;It exists in the lib directory. : /home/hadoop1/Pig/lib/antlr-runtime-3.4.jar&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 21:06:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119192#M30677</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-06-03T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pig command not working in centos.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119193#M30678</link>
      <description>&lt;P&gt;The command worked! I added the lib dir of Pig to the HADOOP_CLASSPATH in hadoop-env.sh. &lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2016 13:59:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-command-not-working-in-centos/m-p/119193#M30678</guid>
      <dc:creator>iit2013121</dc:creator>
      <dc:date>2016-06-05T13:59:54Z</dc:date>
    </item>
  </channel>
</rss>

