<?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 How to check the size of Hive view table? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305542#M222486</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to know the size of the hive table. Actually it is a view specifically which we wanted to know the size of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried by running commands such as&amp;nbsp;&lt;SPAN&gt;hdfs dfs -du -s -h /path/to/table, but the view can't be found in the location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;beeline&amp;gt;&amp;nbsp;describe formatted/extended table name; Also does not give the output&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also tried with ANALYZE but no output as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can some one tell me how to know the size of the view table. Since we have created view of the different table in database.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And we want to know the size of the particular table.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 15:29:45 GMT</pubDate>
    <dc:creator>ateka_18</dc:creator>
    <dc:date>2020-11-06T15:29:45Z</dc:date>
    <item>
      <title>How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305542#M222486</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to know the size of the hive table. Actually it is a view specifically which we wanted to know the size of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried by running commands such as&amp;nbsp;&lt;SPAN&gt;hdfs dfs -du -s -h /path/to/table, but the view can't be found in the location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;beeline&amp;gt;&amp;nbsp;describe formatted/extended table name; Also does not give the output&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also tried with ANALYZE but no output as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can some one tell me how to know the size of the view table. Since we have created view of the different table in database.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And we want to know the size of the particular table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305542#M222486</guid>
      <dc:creator>ateka_18</dc:creator>
      <dc:date>2020-11-06T15:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305563#M222496</link>
      <description>&lt;P&gt;Hi Ateka,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share what error you are getting. while submitting the command to better understand the issue.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 08:41:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305563#M222496</guid>
      <dc:creator>HanzalaShaikh</dc:creator>
      <dc:date>2020-11-07T08:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305565#M222498</link>
      <description>&lt;P&gt;these is the error I got:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Error: Error while compiling statement: FAILED: SemanticException [Error 10091]: ANALYZE is not supported for views (state=42000,code=10091)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please suggest any other command for views.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Nov 2020 13:10:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305565#M222498</guid>
      <dc:creator>ateka_18</dc:creator>
      <dc:date>2020-11-07T13:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305568#M222501</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82951"&gt;@ateka_18&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VIEW is just a query statement saved in HMS. So basically its the size of the table you gather and to do so, the best option is below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hdfs dfs -ls &amp;lt;path of the table&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With regards to the error you are observing, it clearly says that analyze table is not supported for views. You can get the same for tables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 15:45:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305568#M222501</guid>
      <dc:creator>tusharkathpal</dc:creator>
      <dc:date>2020-11-07T15:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305610#M222520</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31799"&gt;@tusharkathpal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you sure there is no other way to know the size of the view table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with hdfs dfs -ls command but we have tables in partition so not able to locate the exact table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can check the size by running hdfs dfs -du -s -h on the path on different directories and sub directories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick reply will be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 02:57:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305610#M222520</guid>
      <dc:creator>ateka_18</dc:creator>
      <dc:date>2020-11-09T02:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305611#M222521</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82951"&gt;@ateka_18&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned before as well, view is just a query statement in HMS. It's not actually a table. If you want to know the size of the table, below is the best approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hdfs dfs -du -s -h /path/to/table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's say you have a table named test(/user/hive/warehouse/default.db/test) and have several partitions under it (part1, part2, part3). To get the size of the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hdfs dfs -du -s -h /user/hive/warehouse/default.db/test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know if the above helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 03:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/305611#M222521</guid>
      <dc:creator>tusharkathpal</dc:creator>
      <dc:date>2020-11-09T03:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the size of Hive view table?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/306003#M222615</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31799"&gt;@tusharkathpal&lt;/a&gt;&amp;nbsp; for your detailed explanation. Your suggestion has really worked.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 15:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-check-the-size-of-Hive-view-table/m-p/306003#M222615</guid>
      <dc:creator>ateka_18</dc:creator>
      <dc:date>2020-11-14T15:17:13Z</dc:date>
    </item>
  </channel>
</rss>

