<?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: alter table add partition took almost an hour in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233399#M195226</link>
    <description>&lt;P&gt;"i put a csv file into hdfs location and do an alter table to add that new location to the partition". Can you please explain this operation?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 22:46:06 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-05T22:46:06Z</dc:date>
    <item>
      <title>alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233392#M195219</link>
      <description>&lt;P&gt;i have a job that runs every hour, i put a csv file into hdfs location and do an alter table to add that new location to the partition. Weirdly it took more than 50 min when it just takes 5-10 seconds. I am not sure why? how to start root cause analysis on this?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 05:09:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233392#M195219</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-03-04T05:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233393#M195220</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14451/pjalleda.html" nodeid="14451"&gt;@PJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;did you try to explain extended $cmd?&lt;/P&gt;&lt;P&gt;if possible repair it once like msck repair table.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 23:29:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233393#M195220</guid>
      <dc:creator>edu_vikassri</dc:creator>
      <dc:date>2018-03-04T23:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233394#M195221</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70180/eduvikassri.html" nodeid="70180"&gt;@Vikas Srivastava &lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for reply. My table is huge, msck just hangs.&lt;/P&gt;&lt;P&gt;Also, i see that although job started at 20:28 pm, the container dint launch until 20:55 and i dont see any logs. &lt;/P&gt;&lt;P&gt;what does explain exended do? how to use debug mode for a single query without actually changing in the configurations?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;FinalStatus Reported by AM:&lt;/TH&gt;&lt;TD&gt;SUCCEEDED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH&gt;Started:&lt;/TH&gt;&lt;TD&gt;Sat Mar 03 &lt;STRONG&gt;20:21:14&lt;/STRONG&gt; -0500 2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH&gt;Elapsed:&lt;/TH&gt;&lt;TD&gt;34mins, 44sec&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Log Type: launch_container.sh&lt;BR /&gt;Log Upload Time: Sat Mar 03 20:55:59 -0500 2018|&lt;BR /&gt;Log Length: 9051&lt;BR /&gt;Showing 4096 bytes of 9051 total. Click here for the full log.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I dont see anythign in logs. this happened twice during the last 2 days.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 00:15:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233394#M195221</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-03-05T00:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233395#M195222</link>
      <description>&lt;P&gt;Is this smth related to yarn.scheduler.capacity.maximum-am-resource-percent &lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;0.2&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;which is Maximum percent of resources in the cluster which can be used to run application masters i.e. controls number of concurrent running applications.&lt;/P&gt;&lt;P&gt;at the time this happened, i had about 5-6 jobs using same queue... i guess this is the reason AM for this job didnt get resources allocated until rest of them finished. &lt;/P&gt;&lt;P&gt;so is the 0.2 mean 20% per queue or altogether all queues ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 04:18:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233395#M195222</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-03-05T04:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233396#M195223</link>
      <description>&lt;P&gt;Hi @PJ&lt;/P&gt;&lt;P&gt;Which you have said like it didnt launched the containers till 8:55 which means its not getting the proper resource to start the process and as there are already jobs running in the same queue support the issue as well. try decreasing the value to 0.1 .&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 10:41:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233396#M195223</guid>
      <dc:creator>edu_vikassri</dc:creator>
      <dc:date>2018-03-05T10:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233397#M195224</link>
      <description>&lt;P&gt;This can be related to HIVE-13901. Depending on the FS, MSCK &amp;amp; Add partition can be slow.&lt;/P&gt;&lt;P&gt;Can you try Setting "hive.fetch.task.conversion=none" ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:16:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233397#M195224</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-03-05T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233398#M195225</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/70180/eduvikassri.html" nodeid="70180"&gt;@Vikas Srivastava &lt;/A&gt;&lt;P&gt;yeah .. but i thought i have to increase the value so there can be more resources available to launch more AM's...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:33:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233398#M195225</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-03-05T22:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: alter table add partition took almost an hour</title>
      <link>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233399#M195226</link>
      <description>&lt;P&gt;"i put a csv file into hdfs location and do an alter table to add that new location to the partition". Can you please explain this operation?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:46:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/alter-table-add-partition-took-almost-an-hour/m-p/233399#M195226</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-05T22:46:06Z</dc:date>
    </item>
  </channel>
</rss>

