SHOW TABLE STATS语句在Hive 1.1.0中引发错误

时间:2016-07-26 06:58:04

标签: hive

我正在Hive(1.1.0)中执行查询SHOW TABLE STATS sampletable;,它会抛出以下错误。

hive> 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

我已经在这个特定的配置单元语句中查看了cloudera的文档,看起来我正在执行正确的查询。这是它的link

不确定MismatchedTockenException是什么。请问有什么帮助吗? 我正在使用CDH 5.5.2

0 个答案:

没有答案