我正在运行基于impala的centos预配置来运行hadoop架构。我使用色调自动生成表格形式.csv文件。我上传了文件 /usr/hive/warehouse
. 我确保在上传之前从文件中删除列标题。
但是它给了我以下的例外 Exception communicating with Beeswax (Hive UI) Server at localhost:21000: BeeswaxException(errorCode=0, log_context='', message="com.cloudera.impala.common.AnalysisException: Syntax error at:\n\nCREATE TABLE
2012_Q4\n^\n(\n
col_0string ,\n
col_1string ,\n
col_2string ,\n
col_3string ,\n
col_4string ,\n
col_5string ,\n
col_6string ,\n
col_7string ,\n
col_8string ,\n
col_9string ,\n
col_10string ,\n
col_11string ,\n
col_12string ,\n
col_13string ,\n
col_14string ,\n
col_15string ,\n
col_16string ,\n
col_17string ,\n
col_18string ,\n
col_19string ,\n
col_20string ,\n
col_21string ,\n
col_22string ,\n
col_23string ,\n
col_24string ,\n
col_25string ,\n
col_26string ,\n
col_27string ,\n
col_28string ,\n
col_29string ,\n
col_30string ,\n
col_31string ,\n
col_32string ,\n
col_33string ,\n
col_34string ,\n
col_35string ) \nROW FORMAT DELIMITED\n FIELDS TERMINATED BY ','\nEncountered: IDENTIFIER\nExpected: DESCRIBE, SELECT, SHOW, USE, INSERT\n\n\tat com.cloudera.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:135)\n\tat com.cloudera.impala.service.Frontend.createExecRequest(Frontend.java:221)\n\tat com.cloudera.impala.service.JniFrontend.createExecRequest(JniFrontend.java:89)\nCaused by: java.lang.Exception: Syntax error\n\tat com.cloudera.impala.analysis.SqlParser.unrecovered_syntax_error(SqlParser.java:1369)\n\tat java_cup.runtime.lr_parser.parse(lr_parser.java:616)\n\tat com.cloudera.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:125)\n\t... 2 more\n", SQLState='42000', handle=QueryHandle(log_context='', id=''))
1条答案
按热度按时间b09cbbtk1#
从错误中可以看到, Impala 只支持
Expected: DESCRIBE, SELECT, SHOW, USE, INSERT
,所以还没有创建表。这个问题应该在下个月发布的下一个impala版本中解决。同时,您可以在hue beeswax或hive cli中创建表(因为hive支持create table)。