<?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: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117741#M30608</link>
    <description>&lt;P&gt;hey Abhijeet, not sure if you have tried this.&lt;/P&gt;&lt;P&gt;"pig -printCmdDebug -x tez -useHcatalog"&lt;/P&gt;&lt;P&gt;Let me know if this does not work for you.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 21:59:19 GMT</pubDate>
    <dc:creator>srai1</dc:creator>
    <dc:date>2016-06-30T21:59:19Z</dc:date>
    <item>
      <title>How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117733#M30600</link>
      <description>&lt;P&gt;This is what Ambari says:&lt;/P&gt;&lt;P&gt;
	WARNING: Use "yarn jar" to launch YARN applications.
16/06/02 21:12:43 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
16/06/02 21:12:43 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
16/06/02 21:12:43 INFO pig.ExecTypeProvider: Trying ExecType : TEZ_LOCAL
16/06/02 21:12:43 INFO pig.ExecTypeProvider: Trying ExecType : TEZ
16/06/02 21:12:43 INFO pig.ExecTypeProvider: Picked TEZ as the ExecType
2016-06-02 21:12:43,603 [main] INFO  org.apache.pig.Main - Apache Pig version 0.15.0.2.4.0.0-169 (rexported) compiled Feb 10 2016, 07:50:04
2016-06-02 21:12:43,603 [main] INFO  org.apache.pig.Main - Logging error messages to: /hadoop/yarn/local/usercache/admin/appcache/application_1464899556124_0006/container_e16_1464899556124_0006_01_000002/pig_1464901963602.log
2016-06-02 21:12:44,356 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/yarn/.pigbootup not found
2016-06-02 21:12:44,477 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://sandbox.hortonworks.com:8020
2016-06-02 21:12:45,021 [main] INFO  org.apache.pig.PigServer - Pig Script ID for the session: PIG-script.pig-b1da2d85-2845-4a3f-b59b-b2e367f74c1c
2016-06-02 21:12:45,420 [main] INFO  org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl - Timeline service address: &lt;A href="http://sandbox.hortonworks.com:8188/ws/v1/timeline/" target="_blank"&gt;http://sandbox.hortonworks.com:8188/ws/v1/timeline/&lt;/A&gt;
2016-06-02 21:12:45,646 [main] INFO  org.apache.pig.backend.hadoop.ATSService - Created ATS Hook
2016-06-02 21:12:46,138 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Pig script failed to parse: 
&amp;lt;file script.pig, line 4, column 4&amp;gt; pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.hive.hcatalog.pig.HCatLoader' with arguments 'null'
Failed to parse: Pig script failed to parse: 
&amp;lt;file script.pig, line 4, column 4&amp;gt; pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.hive.hcatalog.pig.HCatLoader' with arguments 'null'
at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:199)
at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1776)
at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1484)
at org.apache.pig.PigServer.parseAndBuild(PigServer.java:428)
at org.apache.pig.PigServer.executeBatch(PigServer.java:453)
at org.apache.pig.PigServer.executeBatch(PigServer.java:439)
at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:171)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:234)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
at org.apache.pig.Main.run(Main.java:502)
at org.apache.pig.Main.main(Main.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: 
&amp;lt;file script.pig, line 4, column 4&amp;gt; pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.hive.hcatalog.pig.HCatLoader' with arguments 'null'
at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:897)
at org.apache.pig.parser.LogicalPlanGenerator.load_clause(LogicalPlanGenerator.java:3568)
at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1625)
at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)
at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)
at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)
at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:191)
... 17 more
Caused by: java.lang.RuntimeException: could not instantiate 'org.apache.hive.hcatalog.pig.HCatLoader' with arguments 'null'
at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:772)
at org.apache.pig.parser.LogicalPlanBuilder.buildLoadOp(LogicalPlanBuilder.java:885)
... 23 more
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hive/metastore/api/NoSuchObjectException
at org.apache.hive.hcatalog.pig.HCatLoader.&amp;lt;init&amp;gt;(HCatLoader.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:383)
at org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:742)
... 24 more
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.metastore.api.NoSuchObjectException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 31 more
2016-06-02 21:12:46,148 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse: 
&amp;lt;file script.pig, line 4, column 4&amp;gt; pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.hive.hcatalog.pig.HCatLoader' with arguments 'null'
Details at logfile: /hadoop/yarn/local/usercache/admin/appcache/application_1464899556124_0006/container_e16_1464899556124_0006_01_000002/pig_1464901963602.log
2016-06-02 21:12:46,167 [main] INFO  org.apache.pig.Main - Pig script completed in 2 seconds and 722 milliseconds (2722 ms)&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 04:38:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117733#M30600</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-06-03T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117734#M30601</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10337/srai.html" nodeid="10337"&gt;@srai&lt;/A&gt;&lt;P&gt;Are you able to run same pig script through command line?&lt;/P&gt;&lt;P&gt;Also looks like below jar either missing or have multiple versions while runing pig.&lt;/P&gt;&lt;P&gt;/usr/hdp/current/hive-client/lib/hive-metastore-&amp;lt;version&amp;gt;.jar&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 05:02:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117734#M30601</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-03T05:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117735#M30602</link>
      <description>&lt;P&gt;I tried a couple of things. Ran the job via command line using this syntax "pig -x tez -useHCatalog -f script.pig" ...this works fine. The problem is, I need to find its equivalent to make it run via Pig View in Ambari.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 05:02:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117735#M30602</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-06-03T05:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117736#M30603</link>
      <description>&lt;P&gt;I am able to reproduce this via CLI as well. For a refresher, working on a Sandbox downloaded from Hortonworks site, also, when I manually specify the HADOOP_CLASSPATH and HADOOP_CLIENT_OPTS via command line, I get it to work. I got the classpath and hadoop client opts using "&lt;STRONG&gt;pig &lt;/STRONG&gt;&lt;STRONG&gt;-printCmdDebug -x tez -useHCatalog" &lt;/STRONG&gt;there are indeed some additional jar's that are included in the hadoop class path and client opts. &lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 02:50:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117736#M30603</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-06-04T02:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117737#M30604</link>
      <description>&lt;P&gt;same here with the latest sandbox, won't work from Ambari&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 06:29:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117737#M30604</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-08T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117738#M30605</link>
      <description>&lt;P&gt;Have you tried adding "-useHCatalog" as a pig argument?  On the pig script, there is an option in the lower right to add an argument.  This worked for me.  Without this option, I was unable to run an pig scripts in Ambari that required HCat based jars.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4878-screen-shot-2016-06-08-at-34626-pm.png" style="width: 1352px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22996iEC0406EDC332F6A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4878-screen-shot-2016-06-08-at-34626-pm.png" alt="4878-screen-shot-2016-06-08-at-34626-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:47:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117738#M30605</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2019-08-19T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117739#M30606</link>
      <description>&lt;P&gt;Note this tutorial covers it in step 3.3: &lt;A href="http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_5"&gt;http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#section_5&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 03:10:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117739#M30606</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-06-09T03:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117740#M30607</link>
      <description>&lt;P&gt;m also facing same issue can someone help on this @Srai.&lt;/P&gt;&lt;P&gt;M not able to run pig queries using hcatalog 
&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:16:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117740#M30607</guid>
      <dc:creator>abhijeetmagarwa</dc:creator>
      <dc:date>2016-06-30T21:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117741#M30608</link>
      <description>&lt;P&gt;hey Abhijeet, not sure if you have tried this.&lt;/P&gt;&lt;P&gt;"pig -printCmdDebug -x tez -useHcatalog"&lt;/P&gt;&lt;P&gt;Let me know if this does not work for you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:59:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117741#M30608</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-06-30T21:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117742#M30609</link>
      <description>&lt;P&gt;Hey Srai thanks for replying m newbie to this hadoop world.&lt;/P&gt;&lt;P&gt;Can you please tell me where i need to execute this command.&lt;/P&gt;&lt;P&gt;I tried in both directly from shell :&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# pig -printCmdDebug -x tez -useHcatalog;
&lt;/PRE&gt;&lt;P&gt;and in pig using mapreduce mode&lt;/P&gt;&lt;P&gt;grunt&amp;gt; pig -printCmdDebug -x tez -useHcatalog; &lt;/P&gt;&lt;P&gt;in both case its not working &lt;A rel="user" href="https://community.cloudera.com/users/10337/srai.html" nodeid="10337"&gt;@srai&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:28:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117742#M30609</guid>
      <dc:creator>abhijeetmagarwa</dc:creator>
      <dc:date>2016-06-30T22:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117743#M30610</link>
      <description>&lt;P&gt;Also from ambari i tried but its failing with error as not Hcatalog file does not exists. &lt;/P&gt;&lt;P&gt;Should i reinstall hortonworks sandbox once again.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:29:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117743#M30610</guid>
      <dc:creator>abhijeetmagarwa</dc:creator>
      <dc:date>2016-06-30T22:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117744#M30611</link>
      <description>&lt;P&gt;Can you share the error message and log file for ambari server "/var/log/ambari-server/"&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 01:06:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117744#M30611</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-07-01T01:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I enable pig -useHCatalog via Ambari. I seem to get stuck everytime I am try to execute scripts via Pig View.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117745#M30612</link>
      <description>&lt;P&gt;I know this is the silly question but where can you find the location. I am not able to trace back &lt;A rel="user" href="https://community.cloudera.com/users/10337/srai.html" nodeid="10337"&gt;@srai&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:54:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-enable-pig-useHCatalog-via-Ambari-I-seem-to-get/m-p/117745#M30612</guid>
      <dc:creator>abhijeetmagarwa</dc:creator>
      <dc:date>2016-07-01T09:54:05Z</dc:date>
    </item>
  </channel>
</rss>

