<?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 Populating Non-Partitioned Bucketed Tables in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157882#M49123</link>
    <description>&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;It may not be practical question, however, I am wandering, if it is possible to load data in a Bucketed Table (Non-Partitioned) through insert-overwrite. &lt;/P&gt;&lt;P&gt;I am getting NullPointerException while I am trying to do so.&lt;/P&gt;&lt;PRE&gt;CREATE TABLE my_stg.mytable1 ( 
         employee_id int,
         employee_name string,
         dept STRING, 
         country STRING
          ) 
CLUSTERED BY (employee_id) INTO 256 BUCKETS
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';&lt;/PRE&gt;&lt;PRE&gt;set hive.enforce.bucketing = true;
INSERT OVERWRITE TABLE my_stg.mytable1 SELECT employee_id,employee_name,dept,country FROM my_stg.mytable;
FAILED: NullPointerException null&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 21:58:25 GMT</pubDate>
    <dc:creator>soumyabrata_kol</dc:creator>
    <dc:date>2016-12-16T21:58:25Z</dc:date>
    <item>
      <title>Populating Non-Partitioned Bucketed Tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157882#M49123</link>
      <description>&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;It may not be practical question, however, I am wandering, if it is possible to load data in a Bucketed Table (Non-Partitioned) through insert-overwrite. &lt;/P&gt;&lt;P&gt;I am getting NullPointerException while I am trying to do so.&lt;/P&gt;&lt;PRE&gt;CREATE TABLE my_stg.mytable1 ( 
         employee_id int,
         employee_name string,
         dept STRING, 
         country STRING
          ) 
CLUSTERED BY (employee_id) INTO 256 BUCKETS
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',';&lt;/PRE&gt;&lt;PRE&gt;set hive.enforce.bucketing = true;
INSERT OVERWRITE TABLE my_stg.mytable1 SELECT employee_id,employee_name,dept,country FROM my_stg.mytable;
FAILED: NullPointerException null&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 21:58:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157882#M49123</guid>
      <dc:creator>soumyabrata_kol</dc:creator>
      <dc:date>2016-12-16T21:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Non-Partitioned Bucketed Tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157883#M49124</link>
      <description>&lt;P&gt;possibly you are hitting &lt;A href="https://issues.apache.org/jira/browse/HIVE-10776" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-10776&lt;/A&gt;, could you please share the complete exception&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 22:02:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157883#M49124</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-16T22:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Non-Partitioned Bucketed Tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157884#M49125</link>
      <description>&lt;P&gt;I too got the same exception while insert overwrite to a bucketed table by selecting data from a partitioned table.&lt;/P&gt;&lt;P&gt;I applied a work around to get around this problem.&lt;/P&gt;&lt;P&gt;1. First insert the data to a non partitioned temp table&lt;/P&gt;&lt;P&gt;2.select the data from the temp table and insert it to the bucketed table&lt;/P&gt;&lt;P&gt;This solved the problem for me.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:02:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Populating-Non-Partitioned-Bucketed-Tables/m-p/157884#M49125</guid>
      <dc:creator>albinkuruvilla</dc:creator>
      <dc:date>2019-02-06T18:02:04Z</dc:date>
    </item>
  </channel>
</rss>

