<?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: Impala Partition Query running Slow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Partition-Query-running-Slow/m-p/50791#M53593</link>
    <description>&lt;P&gt;I found out the solution.&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/42094002/impala-partition-queries-running-slow/42100522#42100522" target="_self"&gt;here is the link&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 15:27:10 GMT</pubDate>
    <dc:creator>Beebeegun</dc:creator>
    <dc:date>2017-02-13T15:27:10Z</dc:date>
    <item>
      <title>Impala Partition Query running Slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Partition-Query-running-Slow/m-p/50560#M53592</link>
      <description>&lt;P&gt;&lt;SPAN&gt;So I was trying to partition my Impala table with the column 'file' which has 1500 distinct records. That means 1500 partitions. I first run a query like this to return the partition queries:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;SELECT DISTINCT
  concat('insert into partitioned_table partition (year=',
    cast(year as string),', month=',cast(month as string),
    ') select c1, c2, c3 from raw_data where year=',
    cast(year as string),' and month=',cast(month as string),';') AS command
  FROM raw_data;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Then I got 1500 queries to run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="搜狗截图20170207102602.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/2627iDBC4B6199D8678E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="搜狗截图20170207102602.png" alt="搜狗截图20170207102602.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now there's one problem: Since each query might take 3 minutes to finish. 1500 queries could take several days. Which is a really long time. To save the time, I have already done some tuning: using COMPUTE STATS to get statics, convert table to Parquet. MY question is, Is there a way that can speed up this process? Like max up the executors just like Hive can do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Cluster:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 nodes, each with 6 core cpu, 32GB RAM and 1.8T hard disk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any thoughts would be helpful, Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Partition-Query-running-Slow/m-p/50560#M53592</guid>
      <dc:creator>Beebeegun</dc:creator>
      <dc:date>2022-09-16T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Impala Partition Query running Slow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Partition-Query-running-Slow/m-p/50791#M53593</link>
      <description>&lt;P&gt;I found out the solution.&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/42094002/impala-partition-queries-running-slow/42100522#42100522" target="_self"&gt;here is the link&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 15:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-Partition-Query-running-Slow/m-p/50791#M53593</guid>
      <dc:creator>Beebeegun</dc:creator>
      <dc:date>2017-02-13T15:27:10Z</dc:date>
    </item>
  </channel>
</rss>

