<?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 on Tez causes unable to store alias in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159284#M29091</link>
    <description>&lt;P&gt;Hello! Thanks for the quick reply. Here comes log file for this job: &lt;A href="http://pastebin.ca/3605448" target="_blank"&gt;http://pastebin.ca/3605448&lt;/A&gt; Don't mind about the lines after "starting make visualisation" .. They fail for reason in this case. I am stunned, because that script stores one time temp -file, but when it comes to second time .. unable to store .. I hope you can help me with this one.  &lt;A rel="user" href="https://community.cloudera.com/users/10300/pradeepbhadani.html" nodeid="10300"&gt;@Pradeep Bhadani&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 03:25:12 GMT</pubDate>
    <dc:creator>petri_koski</dc:creator>
    <dc:date>2016-05-21T03:25:12Z</dc:date>
    <item>
      <title>Pig on Tez causes unable to store alias</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159282#M29089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;I have Tez 0.7.0 and HDP 2.4.0.0.169. I use pig latin quite a lot in Mapreduce -mode. Today I tried Tez mode (From my java code .. ) everything seems to work fine, but in same pig latin script in Mapreduce stores alias Ok, but in tez -mode I get "ERROR 1002: Unable to store alias secondorder". I checked the script and nothing wrong there. Here is my script: (When I check path tebs/results/Ravintolamyynnintop20 from HDFS, its there stored ok .. But still I get this error Unable to store alias secondorder and show stops .. ) what could be wrong ? Some version conflict with my Java code vs. HDP ? &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;PRE&gt;splittedII = load 'tebs/data/currentmon*.*' using PigStorage(';') as (id:chararray,fu:chararray,fa:chararray,myynti:chararray);

splittedI = FILTER splittedII BY NOT($3 MATCHES '.*Ko.*') AND NOT($2 MATCHES '.*Yht.*') AND NOT($1 MATCHES '.*Yht.*');




onlyrestaurants = FILTER splittedI BY ($1 MATCHES '.*23021 RUOKA.*') OR ($1 MATCHES '.*23022 SUOLAINEN.*') OR ($1 MATCHES '.*23023 MAKEA.*') OR ($1 MATCHES '.*23024 PIKARUOKA.$




partly = foreach onlyrestaurants generate $1,$2,REPLACE(myynti, ',','.');

store partly into 'teb/tempten';

partly = load 'teb/tempten' using PigStorage('\t') as (id:chararray,fu:chararray,myynti:double);




grpded = group partly by ($0,$1);

summed = foreach grpded generate FLATTEN(group) AS (id,fu),SUM(partly.$2);

ordered = order summed by $2 DESC;

grp = group ordered by $0;

top10 = foreach grp {

sorted = order ordered by $2 desc;

top = limit sorted 20;

total = SUM(ordered.$2);

generate group,FLATTEN(top),FLATTEN(total);

};

secondorder = ORDER top10 by $4 DESC;

store secondorder into 'tebs/results/Ravintolamyynnintop20';
&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 21:00:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159282#M29089</guid>
      <dc:creator>petri_koski</dc:creator>
      <dc:date>2016-05-20T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pig on Tez causes unable to store alias</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159283#M29090</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2869/petrikoski.html"&gt;petri koski&lt;/A&gt;can you share Pig job Logs?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 23:10:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159283#M29090</guid>
      <dc:creator>pradeep_bhadani</dc:creator>
      <dc:date>2016-05-20T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pig on Tez causes unable to store alias</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159284#M29091</link>
      <description>&lt;P&gt;Hello! Thanks for the quick reply. Here comes log file for this job: &lt;A href="http://pastebin.ca/3605448" target="_blank"&gt;http://pastebin.ca/3605448&lt;/A&gt; Don't mind about the lines after "starting make visualisation" .. They fail for reason in this case. I am stunned, because that script stores one time temp -file, but when it comes to second time .. unable to store .. I hope you can help me with this one.  &lt;A rel="user" href="https://community.cloudera.com/users/10300/pradeepbhadani.html" nodeid="10300"&gt;@Pradeep Bhadani&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 03:25:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159284#M29091</guid>
      <dc:creator>petri_koski</dc:creator>
      <dc:date>2016-05-21T03:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pig on Tez causes unable to store alias</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159285#M29092</link>
      <description>&lt;P&gt;I found solution: Problem was about versions: I was using Tez 0.7.0 from Maven central, and hadoop 2.7.1 .. When I used 0.7.1 version from Tez this STORE -problem is gone. So problem solved.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 17:21:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Pig-on-Tez-causes-unable-to-store-alias/m-p/159285#M29092</guid>
      <dc:creator>petri_koski</dc:creator>
      <dc:date>2016-05-22T17:21:06Z</dc:date>
    </item>
  </channel>
</rss>

