<?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 Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141714#M40048</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get the following error when I try to run the Lab 3 - Pig tutorial&lt;/P&gt;&lt;P&gt;2016-09-07 20:06:51,165 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve sum using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] &lt;/P&gt;,&lt;P&gt;Hi, the details of the error are:&lt;/P&gt;&lt;P&gt;2016-09-07 20:06:51,165 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve sum using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] &lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 03:32:31 GMT</pubDate>
    <dc:creator>srinivasandwara</dc:creator>
    <dc:date>2016-09-08T03:32:31Z</dc:date>
    <item>
      <title>Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141714#M40048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get the following error when I try to run the Lab 3 - Pig tutorial&lt;/P&gt;&lt;P&gt;2016-09-07 20:06:51,165 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve sum using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] &lt;/P&gt;,&lt;P&gt;Hi, the details of the error are:&lt;/P&gt;&lt;P&gt;2016-09-07 20:06:51,165 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve sum using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.] &lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 03:32:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141714#M40048</guid>
      <dc:creator>srinivasandwara</dc:creator>
      <dc:date>2016-09-08T03:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141715#M40049</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12984/srinivasandwarak.html"&gt;@D Srini&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/12984/srinivasandwarak.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have provided the error but not the code itself.  Based on the error, it looks like your code did not use SUM in caps.&lt;/P&gt;&lt;P&gt;SUM is a built in function of pig.  It is a java static method called SUM in the package &lt;A href="https://pig.apache.org/docs/r0.9.1/api/org/apache/pig/builtin/SUM.html "&gt;org.apache.pig.builtin &lt;/A&gt; which is packaged in the pig jars.  Bottom line is that this function is case sensitive.&lt;/P&gt;&lt;P&gt;I think instead of writing&lt;/P&gt;&lt;PRE&gt;e =foreach d generate groupas driverid, SUM(c.occurance)as t_occ;&lt;/PRE&gt;&lt;P&gt;you wrote&lt;/P&gt;&lt;PRE&gt;e =foreach d generate groupas driverid, sum(c.occurance)as t_occ;&lt;/PRE&gt;&lt;P&gt;See &lt;A href="https://pig.apache.org/docs/r0.16.0/func.html#built-in-functions"&gt;https://pig.apache.org/docs/r0.16.0/func.html#built-in-functions&lt;/A&gt; to learn more about pig functions, both builtin functions (where you do not need to register them in your code because pig dynamically finds the function in the pig jars) and user-defined functions (where you create the jar and register it in the pig code).&lt;/P&gt;&lt;P&gt;If this was indeed the problem, let me know by accepting the answer.&lt;/P&gt;&lt;H2&gt;&lt;/H2&gt;</description>
      <pubDate>Thu, 08 Sep 2016 07:09:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141715#M40049</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-09-08T07:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141716#M40050</link>
      <description>&lt;P&gt;That was it. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 01:04:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141716#M40050</guid>
      <dc:creator>srinivasandwara</dc:creator>
      <dc:date>2016-09-09T01:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141717#M40051</link>
      <description>&lt;P&gt;Glad I could help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 01:10:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/141717#M40051</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-09-09T01:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/379035#M40052</link>
      <description>&lt;P&gt;I am getting the same error when I use this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;correlation_coefficient = FOREACH (GROUP correlation_data ALL) GENERATE PiggyBank.COR(correlation_data.age, correlation_data.avg_glucose_level) AS correlation;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;2023-11-15 10:02:09,087 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve PiggyBank.COR using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]&lt;BR /&gt;&lt;BR /&gt;could you please help me out&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 04:42:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/379035#M40052</guid>
      <dc:creator>harshavar666</dc:creator>
      <dc:date>2023-11-15T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1070 when running Lab 3 -  Pig Tutorial Script,While running Lab 3 I - Pig Risk Analysis - I get an error 1070.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/379049#M40053</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107912"&gt;@harshavar666&lt;/a&gt;, Welcome to the Cloudera Community.&amp;nbsp;As this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 08:15:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-1070-when-running-Lab-3-Pig-Tutorial-Script-While/m-p/379049#M40053</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-11-15T08:15:10Z</dc:date>
    </item>
  </channel>
</rss>

