<?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: How to run manual compaction on the &amp;quot;nested partitions”, I tried searching on hive docs but could not find any example. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132755#M95425</link>
    <description>&lt;P&gt;I'll add this to the HWKs hive docs. Thanks &lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 01:12:13 GMT</pubDate>
    <dc:creator>cgauthier</dc:creator>
    <dc:date>2016-06-11T01:12:13Z</dc:date>
    <item>
      <title>How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132752#M95422</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The nested
partition structure is as below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/dbdata/tblocation/ordersummery/tran_date=2016-04-06/ordertype=SUPE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive&amp;gt; ALTER
TABLE dtl.ordersummery PARTITION (tran_date='2016-04-06') COMPACT 'minor';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Compaction
can only be requested on one partition at a time.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive&amp;gt; ALTER
TABLE dtl.ordersummery PARTITION (tran_date='2016-04-06/ordertype=SUPE')
COMPACT 'minor';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Invalid
partition spec specified&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:20:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132752#M95422</guid>
      <dc:creator>amresh_kumar</dc:creator>
      <dc:date>2016-06-10T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132753#M95423</link>
      <description>&lt;P&gt;can you try this?&lt;/P&gt;&lt;P&gt;ALTER TABLE dtl.ordersummery PARTITION (tran_date='2016-04-06',ordertype='SUPE') COMPACT 'minor';&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:23:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132753#M95423</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-10T16:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132754#M95424</link>
      <description>&lt;P&gt;thanks it works.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:47:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132754#M95424</guid>
      <dc:creator>amresh_kumar</dc:creator>
      <dc:date>2016-06-10T16:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132755#M95425</link>
      <description>&lt;P&gt;I'll add this to the HWKs hive docs. Thanks &lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:12:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132755#M95425</guid>
      <dc:creator>cgauthier</dc:creator>
      <dc:date>2016-06-11T01:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132756#M95426</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/8919/rajkumarsingh.html"&gt;@Rajkumar Singh&lt;/A&gt; &lt;/P&gt;&lt;UL&gt;
 &lt;LI&gt;Accepted all dependant configurations (default values).&lt;/LI&gt; &lt;LI&gt;Restarted Hive and any other related service (Stall configs)&lt;/LI&gt; &lt;LI&gt;Created a test table:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;CREATETABLE resource.hello_acid (key int, value int)&lt;/PRE&gt;
&lt;PRE&gt;PARTITIONED BY (load_date date)&lt;/PRE&gt;
&lt;PRE&gt;CLUSTERED BY(key) INTO 3 BUCKETS&lt;/PRE&gt;
&lt;PRE&gt;STORED AS ORC TBLPROPERTIES ('transactional'='true');&lt;/PRE&gt;&lt;UL&gt;
 &lt;LI&gt;Inserted a few rows:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;INSERT INTO hello_acid partition (load_date='2016-03-03') VALUES (1, 1);&lt;/PRE&gt;
&lt;PRE&gt;INSERT INTO hello_acid partition (load_date='2016-03-03') VALUES (2, 2);&lt;/PRE&gt;
&lt;PRE&gt;INSERT INTO hello_acid partition (load_date='2016-03-03') VALUES (3, 3);&lt;/PRE&gt;&lt;UL&gt;
 &lt;LI&gt;Everything look great at this point. I've been able to add rows,
     and query the table as usual.&lt;/LI&gt; &lt;LI&gt;This is the content of HDFS directory of table partition (/apps/hive/warehouse/resource.db/hello_acid/load_date=2016-03-03/): 3 delta directories (1 per insert transaction)&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;
 &lt;LI&gt;In Hive, I issued a minor compaction command. If i understood it
     right, this should have merged all delta directories into one. &lt;STRONG&gt;Didn't work!&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;ALTER TABLE hello_acid partition (load_date='2016-03-03') COMPACT 'minor';&lt;/PRE&gt;&lt;UL&gt;
 &lt;LI&gt;Next, I issued a major compaction command. This should have deleted
     all delta files and created a base file, with all the info. &lt;STRONG&gt;Didn't work either!&lt;/STRONG&gt;&lt;/LI&gt; &lt;LI&gt;Finally, I ran this last command:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;SHOW COMPACTIONS;&lt;/PRE&gt;&lt;P&gt;+-----------+-------------------------------+-----------------------+--------+------------+---------------------------------+----------------+--+&lt;/P&gt;&lt;P&gt;|  dbname   |            tabname
           |       partname  
     |  type  |   state    |  
         workerid          
  |   starttime    |&lt;/P&gt;&lt;P&gt;+-----------+-------------------------------+-----------------------+--------+------------+---------------------------------+----------------+--+&lt;/P&gt;&lt;P&gt;| Database  | Table            
            | Partition      
      | Type   | State      | Worker  
                     
 | Start Time     |&lt;/P&gt;&lt;P&gt;| resource  | hello_acid            
       | load_date=2016-03-03  | MINOR  | failed
    | hadoop-master1.claro.com.co-52  | 1506440161747  |&lt;/P&gt;&lt;P&gt;| resource  | hello_acid            
       | load_date=2016-03-03  | MAJOR  | failed
    | hadoop-master2.claro.com.co-46  | 1506440185353  |&lt;/P&gt;&lt;P&gt;+-----------+-------------------------------+-----------------------+--------+------------+---------------------------------+----------------+--+&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 00:00:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132756#M95426</guid>
      <dc:creator>srinivasp</dc:creator>
      <dc:date>2017-09-29T00:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to run manual compaction on the "nested partitions”, I tried searching on hive docs but could not find any example.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132757#M95427</link>
      <description>&lt;P&gt;you are not getting the desired result as your compaction has failed. please check the yarn log to understand what might have gone wrong. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 00:54:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-run-manual-compaction-on-the-quot-nested-partitions-I/m-p/132757#M95427</guid>
      <dc:creator>gaurang_n_shah</dc:creator>
      <dc:date>2018-09-06T00:54:04Z</dc:date>
    </item>
  </channel>
</rss>

