<?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 Error in Lab 3: Pig - Risk Factor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103341#M50380</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/9842/mpandit.html" nodeid="9842"&gt;@milind pandit&lt;/A&gt;&lt;P&gt;My problem is not linked to data type. Please find enclosed the entire log file.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10893-job-1482423183850-0021-logs.txt"&gt;job-1482423183850-0021-logs.txt&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 18:51:17 GMT</pubDate>
    <dc:creator>wael_horchani1</dc:creator>
    <dc:date>2016-12-29T18:51:17Z</dc:date>
    <item>
      <title>Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103339#M50378</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;using ambari 2.4.1.0 and HDP 2.5&lt;/P&gt;&lt;P&gt;I'm trying to execute the first lab instruction : a = LOAD 'geolocation' USING org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;I add the following argument to let Pig know the HCatLoader() class : -useHCatalog&lt;/P&gt;&lt;P&gt;I get the following log : &lt;/P&gt;&lt;P&gt;can any one help me to fix this? thanks.&lt;/P&gt;&lt;PRE&gt; ls: cannot access /hadoop/yarn/local/usercache/admin/appcache/application_1482423183850_0022/container_1482423183850_0022_01_000002/hive.tar.gz/hive/lib/slf4j-api-*.jar: No such file or directory &lt;/PRE&gt;
&lt;PRE&gt; ls: cannot access /hadoop/yarn/local/usercache/admin/appcache/application_1482423183850_0022/container_1482423183850_0022_01_000002/hive.tar.gz/hive/hcatalog/lib/*hbase-storage-handler-*.jar: No such file or directory &lt;/PRE&gt;
&lt;PRE&gt; WARNING: Use "yarn jar" to launch YARN applications. &lt;/PRE&gt;
&lt;PRE&gt; 16/12/29 10:28:37 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL &lt;/PRE&gt;
&lt;PRE&gt; 16/12/29 10:28:37 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE &lt;/PRE&gt;
&lt;PRE&gt; 16/12/29 10:28:37 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:37,537 [main] INFO  org.apache.pig.Main - Apache Pig version 0.16.0.2.5.3.0-37 (rexported) compiled Nov 30 2016, 02:28:11 &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:37,537 [main] INFO  org.apache.pig.Main - Logging error messages to: /hadoop/yarn/local/usercache/admin/appcache/application_1482423183850_0022/container_1482423183850_0022_01_000002/pig_1483003717522.log &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:38,970 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/yarn/.pigbootup not found &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:39,216 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://vds002.databridge.tn:8020 &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:41,059 [main] INFO  org.apache.pig.PigServer - Pig Script ID for the session: PIG-script.pig-9b551f9a-3393-4ab2-93ea-de21982a11cc &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:42,237 [main] INFO  org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl - Timeline service address: &lt;A href="http://vds002.databridge.tn:8188/ws/v1/timeline/" target="_blank"&gt;http://vds002.databridge.tn:8188/ws/v1/timeline/&lt;/A&gt; &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:42,704 [main] INFO  org.apache.pig.backend.hadoop.PigATSClient - Created ATS Hook &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:44,448 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.local does not exist &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:44,521 [main] INFO  hive.metastore - Trying to connect to metastore with URI thrift://vds002.databridge.tn:9083 &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:44,588 [main] INFO  hive.metastore - Connected to metastore. &lt;/PRE&gt;
&lt;PRE&gt; 2016-12-29 10:28:45,238 [main] INFO  org.apache.pig.Main - Pig script completed in 8 seconds and 278 milliseconds (8278 ms) &lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2016 17:42:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103339#M50378</guid>
      <dc:creator>wael_horchani1</dc:creator>
      <dc:date>2016-12-29T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103340#M50379</link>
      <description>&lt;P&gt;Can you please share the error, if you scroll down further you will find the exact error. Also see if you are getting same exception mentioned here &lt;A href="https://community.hortonworks.com/questions/59172/errors-on-lab-3.html" target="_blank"&gt;https://community.hortonworks.com/questions/59172/errors-on-lab-3.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:33:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103340#M50379</guid>
      <dc:creator>mpandit</dc:creator>
      <dc:date>2016-12-29T18:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103341#M50380</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/9842/mpandit.html" nodeid="9842"&gt;@milind pandit&lt;/A&gt;&lt;P&gt;My problem is not linked to data type. Please find enclosed the entire log file.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10893-job-1482423183850-0021-logs.txt"&gt;job-1482423183850-0021-logs.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:51:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103341#M50380</guid>
      <dc:creator>wael_horchani1</dc:creator>
      <dc:date>2016-12-29T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103342#M50381</link>
      <description>&lt;P&gt;If your script is executing correctly , you can safely ignore these warnings.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 19:51:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103342#M50381</guid>
      <dc:creator>mpandit</dc:creator>
      <dc:date>2016-12-29T19:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103343#M50382</link>
      <description>&lt;P&gt;Some errors in lab --&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Pig Script must be as follow:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;a = LOAD 'geolocation' USING org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;b = FILTER a BY event != 'normal';&lt;/P&gt;&lt;P&gt;c = FOREACH b GENERATE driverid, (int) '1' as occurance;&lt;/P&gt;&lt;P&gt;d = GROUP c BY driverid;&lt;/P&gt;&lt;P&gt;e = FOREACH d GENERATE group as driverid, SUM(c.occurance) as totevents;&lt;/P&gt;&lt;P&gt;g = LOAD 'drivermileage' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;h = join e by driverid, g by driverid;&lt;/P&gt;&lt;P&gt;final_data = foreach h generate $0 as driverid, $1 as totevents, $3 as totmiles, (float) $3/$1 as riskfactor;&lt;/P&gt;&lt;P&gt;store final_data into 'riskfactor' using org.apache.hive.hcatalog.pig.HCatStorer();&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;riskfactor table in Hive must be as follow:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE TABLE riskfactor (driverid string,totevents bigint,totmiles double,riskfactor float)
STORED AS ORC;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 01:02:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103343#M50382</guid>
      <dc:creator>wael_horchani1</dc:creator>
      <dc:date>2016-12-30T01:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103344#M50383</link>
      <description>&lt;P&gt;new to Hortonworks. Following the instruction, and practiced lab3 - pig script. the copied script was completed with an error:&lt;/P&gt;&lt;P&gt;2017-03-09 12:14:30,576 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 0:  &lt;/P&gt;&lt;P&gt;as a result, the riskfactor table is empty.&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103344#M50383</guid>
      <dc:creator>haolle_x</dc:creator>
      <dc:date>2017-03-09T20:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pig Error in Lab 3: Pig - Risk Factor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103345#M50384</link>
      <description>&lt;P&gt;Following &lt;A href="https://community.hortonworks.com/users/14725/waelhorchani1.html"&gt;Wael Horchani&lt;/A&gt;'s script to recreate the table and run the pig script, it was fixed. thx.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:36:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-Error-in-Lab-3-Pig-Risk-Factor/m-p/103345#M50384</guid>
      <dc:creator>haolle_x</dc:creator>
      <dc:date>2017-03-09T20:36:43Z</dc:date>
    </item>
  </channel>
</rss>

