<?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 SHOW TABLE STATS Statement throws error in Hive 1.1.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147704#M35856</link>
    <description>&lt;P&gt;I am executing the query `SHOW TABLE STATS sampletable;` in Hive (1.1.0) and it throws the below error. &lt;/P&gt;&lt;PRE&gt;    hive&amp;gt; show table stats sampletable;
    MismatchedTokenException(26!=105)
            at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecognizer.java:617)
            at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
            at org.apache.hadoop.hive.ql.parse.HiveParser.showStatement(HiveParser.java:21074)
            at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2439)
            at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1586)
            at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1062)
            at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:201)
            at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
            at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:404)
            at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:305)
            at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1119)
            at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1167)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1055)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1045)
            at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:207)
            at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159)
            at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370)
            at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:757)
            at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
            at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
    FAILED: ParseException line 1:11 mismatched input 'stats' expecting EXTENDED near 'table' in show statement &lt;/PRE&gt;&lt;P&gt;I am using CDH 5.5.2 I have checked cloudera's document on this particular hive statement and looks like I am executing the right query. Here is the &lt;A target="_blank" href="http://www.cloudera.com/documentation/archive/impala/2-x/2-1-x/topics/impala_show.html#show_table_stats_unique_1"&gt;link&lt;/A&gt; to it. Not sure what the MismatchedTockenException is. Any help is on this, please? &lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:08:55 GMT</pubDate>
    <dc:creator>Alexraj84</dc:creator>
    <dc:date>2016-07-26T14:08:55Z</dc:date>
    <item>
      <title>SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147704#M35856</link>
      <description>&lt;P&gt;I am executing the query `SHOW TABLE STATS sampletable;` in Hive (1.1.0) and it throws the below error. &lt;/P&gt;&lt;PRE&gt;    hive&amp;gt; show table stats sampletable;
    MismatchedTokenException(26!=105)
            at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecognizer.java:617)
            at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
            at org.apache.hadoop.hive.ql.parse.HiveParser.showStatement(HiveParser.java:21074)
            at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2439)
            at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1586)
            at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1062)
            at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:201)
            at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
            at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:404)
            at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:305)
            at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1119)
            at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1167)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1055)
            at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1045)
            at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:207)
            at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159)
            at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370)
            at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:757)
            at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
            at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
    FAILED: ParseException line 1:11 mismatched input 'stats' expecting EXTENDED near 'table' in show statement &lt;/PRE&gt;&lt;P&gt;I am using CDH 5.5.2 I have checked cloudera's document on this particular hive statement and looks like I am executing the right query. Here is the &lt;A target="_blank" href="http://www.cloudera.com/documentation/archive/impala/2-x/2-1-x/topics/impala_show.html#show_table_stats_unique_1"&gt;link&lt;/A&gt; to it. Not sure what the MismatchedTockenException is. Any help is on this, please? &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:08:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147704#M35856</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-07-26T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147705#M35857</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1505/alexraj84.html" nodeid="1505"&gt;@Alex Raj&lt;/A&gt;&lt;P&gt;Have you run compute stats before running show table stats?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:40:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147705#M35857</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-26T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147706#M35858</link>
      <description>&lt;P&gt;No @Sindhu.&lt;/P&gt;&lt;P&gt;I have not&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147706#M35858</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-07-26T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147707#M35859</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1505/alexraj84.html" nodeid="1505"&gt;@Alex Raj&lt;/A&gt;&lt;P&gt;Were you able to see the stats post compute stats on the table?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:37:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147707#M35859</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-27T11:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147708#M35860</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;, thanks for your followup. I was able to get the stats using the below query. Thank you again for your effort.&lt;/P&gt;&lt;PRE&gt;analyze table sampletable partition (year) compute statistics noscan;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:04:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147708#M35860</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-07-27T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: SHOW TABLE STATS Statement throws error in Hive 1.1.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147709#M35861</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1505/alexraj84.html" nodeid="1505"&gt;@Alex Raj&lt;/A&gt;&lt;P&gt;Please mark best answer to close the discussion.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:30:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SHOW-TABLE-STATS-Statement-throws-error-in-Hive-1-1-0/m-p/147709#M35861</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-07-27T12:30:00Z</dc:date>
    </item>
  </channel>
</rss>

