<?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 inner join with different keys in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167824#M37156</link>
    <description>&lt;P&gt;You're more than welcome &lt;A rel="user" href="https://community.cloudera.com/users/12348/vishnoikashish.html" nodeid="12348"&gt;@Ashish Vishnoi&lt;/A&gt;.  If it was helping, and it is appropriate, I'd sure appreciate you marking my response as "Best Answer" to help me build up my points.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2016 04:38:21 GMT</pubDate>
    <dc:creator>LesterMartin</dc:creator>
    <dc:date>2016-08-10T04:38:21Z</dc:date>
    <item>
      <title>PIG inner join with different keys</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167820#M37152</link>
      <description>&lt;P&gt;a = LOAD '601' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;b = LOAD '602' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;c = LOAD '603' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;d = LOAD 'SKL' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/P&gt;&lt;P&gt;e = join a by (d_key, c_cd ), b by (d_key, c_cd), c by (p1_key, c_cd), d by (p2_key, c_cd);&lt;/P&gt;&lt;P&gt;Dump e;&lt;/P&gt;&lt;P&gt;========================================================================&lt;/P&gt;&lt;P&gt;If I do the same joins in Hive, I get output. But In Pig, On dumping e, It runs MapReduce, read rows but doesn't write output after success. But If I do the same thing in hive by nested inner join, I get the correct output.&lt;/P&gt;&lt;P&gt;can anyone explain me the bug in PIG In joining different keys in relations?&lt;/P&gt;&lt;P&gt;Another thing if I want to load e with HCatlogue(HCatStore) into a partitioned blank table with dynamic partition (without value). I am getting partitioned table error. I don't know the reason of the error in Hcatalogue. Please explain me if you faced the same thing and provide me any solution.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 08:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167820#M37152</guid>
      <dc:creator>vishnoi_k_ashis</dc:creator>
      <dc:date>2016-08-08T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: PIG inner join with different keys</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167821#M37153</link>
      <description>&lt;P&gt;Actually, JOINs in Pig work about the same as they do in Hive.  I wrote up a quick blog post at &lt;A href="https://martin.atlassian.net/wiki/x/AgCfB" target="_blank"&gt;https://martin.atlassian.net/wiki/x/AgCfB&lt;/A&gt; based on your question and just made up some data since you didn't provide any.  I'm sure you did this, but the easiest thing to do is simplify your join just working on two relations first then add the third and eventually the fourth if all is working.  If "e" never gets populated, my hunch is that it is a data issue, not a Pig issue. &lt;/P&gt;&lt;P&gt;As for saving into a partitioned Hive table, my blog post shows an example of that working as well as points back to &lt;A href="https://community.hortonworks.com/questions/2562/appending-to-existing-partition-with-pig.html" target="_blank"&gt;https://community.hortonworks.com/questions/2562/appending-to-existing-partition-with-pig.html&lt;/A&gt; to address the fact that (and strategies for) Pig not being able to write to an existing partition. &lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 22:23:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167821#M37153</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-08-08T22:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: PIG inner join with different keys</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167822#M37154</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@Lester Martin&lt;/A&gt;. Your blog is wonderful. I am checking my dataset.&lt;/P&gt;,&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Thank you for such a wonderful blog.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 10:16:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167822#M37154</guid>
      <dc:creator>vishnoi_k_ashis</dc:creator>
      <dc:date>2016-08-09T10:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: PIG inner join with different keys</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167823#M37155</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@Lester Martin&lt;/A&gt; thank you for wonderful blog.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 10:17:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167823#M37155</guid>
      <dc:creator>vishnoi_k_ashis</dc:creator>
      <dc:date>2016-08-09T10:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: PIG inner join with different keys</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167824#M37156</link>
      <description>&lt;P&gt;You're more than welcome &lt;A rel="user" href="https://community.cloudera.com/users/12348/vishnoikashish.html" nodeid="12348"&gt;@Ashish Vishnoi&lt;/A&gt;.  If it was helping, and it is appropriate, I'd sure appreciate you marking my response as "Best Answer" to help me build up my points.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 04:38:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-inner-join-with-different-keys/m-p/167824#M37156</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2016-08-10T04:38:21Z</dc:date>
    </item>
  </channel>
</rss>

