<?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: Check table stats for all tables in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321734#M228543</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do not think we have a command to check all the table stats in one go, If you&amp;nbsp;&lt;SPAN&gt;would like to update the stats on all tables i think you should prepare a custom script for it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; List all the tables from "show tables" command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; copy the table names and run "show table stats &amp;lt;table-name&amp;gt;" on all the tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; And then "compute stats &amp;lt;table-name&amp;gt;" on all the tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make a custom shell script with a for loop to run the compute stats on all the tables. All this should be done from terminal.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 14:09:18 GMT</pubDate>
    <dc:creator>ChethanYM</dc:creator>
    <dc:date>2021-07-29T14:09:18Z</dc:date>
    <item>
      <title>Check table stats for all tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321678#M228517</link>
      <description>&lt;P&gt;I'd like to update stats (compute stats) for every table I have.&amp;nbsp; I have a ton of queries that are running without them.&amp;nbsp; I personally have access only to Hue for Impala, no console kind of access to server or anything.&amp;nbsp; I'm able to see status of stats for a table with describe formatted &amp;lt;table&amp;gt;, but it's a major pain to look through, and I have a ton of tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to get a list of all tables and the status of their stats from Hue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 09:00:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321678#M228517</guid>
      <dc:creator>mattschutz</dc:creator>
      <dc:date>2026-04-21T09:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check table stats for all tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321734#M228543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do not think we have a command to check all the table stats in one go, If you&amp;nbsp;&lt;SPAN&gt;would like to update the stats on all tables i think you should prepare a custom script for it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; List all the tables from "show tables" command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; copy the table names and run "show table stats &amp;lt;table-name&amp;gt;" on all the tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;gt; And then "compute stats &amp;lt;table-name&amp;gt;" on all the tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make a custom shell script with a for loop to run the compute stats on all the tables. All this should be done from terminal.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 14:09:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321734#M228543</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2021-07-29T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check table stats for all tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321740#M228544</link>
      <description>&lt;P&gt;That's what I was afraid of.&amp;nbsp; I'm going through Cloudera Manager and looking at queries where missing_stats=true and going through one by one more or less.&amp;nbsp; Thanks for the response!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:00:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Check-table-stats-for-all-tables/m-p/321740#M228544</guid>
      <dc:creator>mattschutz</dc:creator>
      <dc:date>2021-07-29T15:00:17Z</dc:date>
    </item>
  </channel>
</rss>

