<?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: HCatLoader() Error in Load Pig Statement in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101197#M64176</link>
    <description>&lt;P&gt;HADOOP_HOME:-/usr/hdp/current/hadoop-client&lt;/P&gt;&lt;P&gt;HIVE_CONF_DIR=/usr/hdp/current/hive-client/conf&lt;/P&gt;&lt;P&gt;HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar&lt;/P&gt;</description>
    <pubDate>Sun, 03 Jan 2016 08:14:03 GMT</pubDate>
    <dc:creator>GeeKay2015</dc:creator>
    <dc:date>2016-01-03T08:14:03Z</dc:date>
    <item>
      <title>HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101193#M64172</link>
      <description>&lt;P&gt;The following Pig Script statement gives error...&lt;/P&gt;&lt;P&gt;A = LOAD 'batting' USING org.apache.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;PRE&gt;2016-01-01 19:05:47,197 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve org.apache.hcatalog.pig.HCatLoader using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Failed to parse: Pig script failed to parse: 
&amp;lt;file script.pig, line 1, column 25&amp;gt; pig script failed to validate: org.apache.pig.backend.executionengine.E&lt;/PRE&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 05:46:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101193#M64172</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-02T05:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101194#M64173</link>
      <description>&lt;P&gt;Try starting the  pig with -useHCatalog as below&lt;/P&gt;&lt;P&gt; &lt;CODE&gt;pig -useHCatalog -f yourscript.pig&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;this can be used for running in the terminal, or for calling a script.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Specify the location of the HCatalog jar and add a REGISTER statement with the path of the jar to the top of your script as below&lt;/P&gt;&lt;P&gt;REGISTER /home/user/Installations/hive-0.11.0-bin/hcatalog/share/hcatalog/hcatalog-core-0.11.0.jar;&lt;/P&gt;&lt;P&gt;Please note your path may be different.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 11:25:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101194#M64173</guid>
      <dc:creator>GeeKay2015</dc:creator>
      <dc:date>2016-01-02T11:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101195#M64174</link>
      <description>&lt;P&gt;Gangadhar Thanks for the response.  I installed Hartonworks sandbox to learn.  what is the default path for Hartonworks sandbox?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 12:14:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101195#M64174</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-02T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101196#M64175</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@rich&lt;/A&gt; Hi Rich, please let me know the standard libs we use (RETISTER) in pig scripts on hortonworks sandbox (downloaded from hortonworks site for learning purpose) and also sandbox used for certification. &lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 06:48:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101196#M64175</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-03T06:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101197#M64176</link>
      <description>&lt;P&gt;HADOOP_HOME:-/usr/hdp/current/hadoop-client&lt;/P&gt;&lt;P&gt;HIVE_CONF_DIR=/usr/hdp/current/hive-client/conf&lt;/P&gt;&lt;P&gt;HIVE_AUX_JARS_PATH=/usr/hdp/current/hive-webhcat/share/hcatalog/hive-hcatalog-core.jar&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 08:14:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101197#M64176</guid>
      <dc:creator>GeeKay2015</dc:creator>
      <dc:date>2016-01-03T08:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101198#M64177</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1870/vidyaranyakuppa.html" nodeid="1870"&gt;@Vidya SK&lt;/A&gt;: You do not need to use the REGISTER command to use any of the standard libraries, which includes the HCatLoader and HCatStorer class.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 10:31:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101198#M64177</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-03T10:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101199#M64178</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@rich&lt;/A&gt;&lt;P&gt; Rich, you mentioned that we DO NOT need to REGISTER any libraries for HCatLoader.  Then why I am getting the error I mentioned in the first post?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 11:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101199#M64178</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-03T11:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101200#M64179</link>
      <description>&lt;P&gt;Because you are using the wrong class name for HCatLoader. It should be:&lt;/P&gt;&lt;PRE&gt;org.apache.hive.hcatalog.pig.HCatLoader&lt;/PRE&gt;&lt;P&gt;Let me know if that fixes your issue.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 11:22:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101200#M64179</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-03T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101201#M64180</link>
      <description>&lt;P&gt;Because you are using the wrong class name for HCatLoader. It should be:&lt;/P&gt;&lt;PRE&gt;org.apache.hive.hcatalog.pig.HCatLoader&lt;/PRE&gt;&lt;P&gt;Let me know if that fixes your issue.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 11:22:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101201#M64180</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-03T11:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101202#M64181</link>
      <description>&lt;P&gt;@rich&lt;/P&gt;&lt;P&gt;I ran the following script and get the following error:&lt;/P&gt;&lt;P&gt;A = LOAD 'batting' USING org.apache.hive.hcatalog.pig.HCatLoader();
dump A;&lt;/P&gt;&lt;PRE&gt;2016-01-03 03:52:33,153 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve org.apache.hive.hcatalog.pig.HCatLoader using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Failed to parse: Pig script failed to parse: 
&amp;lt;file script.pig, line 11, column 25&amp;gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve org.apache.hive.hcatalog.pig.HCatLoader using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2016 11:54:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101202#M64181</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-03T11:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101203#M64182</link>
      <description>&lt;P&gt;I ran the following script and get the following error:&lt;/P&gt;&lt;P&gt;A = LOAD 'batting' USING org.apache.hive.hcatalog.pig.HCatLoader(); dump A;&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;2016-01-0303:52:33,153[main] ERROR org.apache.pig.PigServer- exception during parsing:Error during parsing.Couldnot resolve org.apache.hive.hcatalog.pig.HCatLoaderusing imports:[, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]&lt;/LI&gt;&lt;LI&gt;Failed to parse:Pig script failed to parse:&lt;/LI&gt;&lt;LI&gt;&amp;lt;file script.pig, line 11, column 25&amp;gt; pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070:Couldnot resolve org.apache.hive.hcatalog.pig.HCatLoaderusing imports:[, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 03 Jan 2016 11:55:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101203#M64182</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-03T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101204#M64183</link>
      <description>&lt;P&gt;Are you running Pig (or starting the Grunt shell) with the -useHCatalog flag? &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:01:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101204#M64183</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-04T13:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101205#M64184</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@rich&lt;/A&gt; It is working from the Grunt Shell without REGISTER, if I do: $pig -useHCatalog -f myscript.pig&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;But I am not able to execute the same script from Ambari.  Do I have to REGISTER the jars, if I have to execute from Ambari?&lt;/P&gt;&lt;P&gt;In certification, do I have to execute the pig script from Grunt shell or from ambari? &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 04:37:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101205#M64184</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-05T04:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101206#M64185</link>
      <description>&lt;P&gt;How you run the script is irrelevant on the exam. If you can get it to work from the command line, then that is perfect. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 04:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101206#M64185</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-05T04:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101207#M64186</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/164/rich.html" nodeid="164"&gt;@rich&lt;/A&gt; Thanks Rich.  That is very useful info.  I can execute from Grunt shell.&lt;/P&gt;&lt;P&gt;As Ambari provides good interface which helps in syntax for script writing, if you can provide any help on running from Ambari would be great.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 04:48:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101207#M64186</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-05T04:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101208#M64187</link>
      <description>&lt;P&gt;You need to view this page carefully - the current exam is on HDP 2.2 with Ambari 1.7: &lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.cloudera.com/"&gt;http://hortonworks.com/training/class/hdp-certified-developer-hdpcd-exam/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.cloudera.com/"&gt;&lt;/A&gt;That can change at any time, but for now you should be prepared for that environment. The Sandbox can be helpful when practicing and learning Pig and Hive, but I would highly recommend you attempt the practice exam. It is on the same environment as the real exam and contains tasks similar to the real exam.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 05:11:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101208#M64187</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-01-05T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: HCatLoader() Error in Load Pig Statement</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101209#M64188</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1870/vidyaranyakuppa.html" nodeid="1870"&gt;@Vidya SK&lt;/A&gt; are you still having issues with this? Can you accept best answer or provide your own solution?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:26:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HCatLoader-Error-in-Load-Pig-Statement/m-p/101209#M64188</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T03:26:48Z</dc:date>
    </item>
  </channel>
</rss>

