在impala中对数据库执行查询时,我得到了以下错误。对于其他数据库,它工作得很好。
错误跟踪如下。
[Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: select * from test_table limit 1, SQL state: {1}, Query: {2}.[]
java.sql.SQLException: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: [Simba][JSQLEngine](12010) The table "test_table" could not be found., SQL state: HY000, Query: select count(*) from test_table.
at com.cloudera.impala.hivecommon.dataengine.HiveJDBCDataEngine.prepare(Unknown Source)
at com.cloudera.impala.jdbc.common.SStatement.executeNoParams(Unknown Source)
at com.cloudera.impala.jdbc.common.SStatement.executeQuery(Unknown Source)
Caused by: com.cloudera.impala.support.exceptions.GeneralException: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: [Simba][JSQLEngine](12010) The table "test_table" could not be found., SQL state: HY000, Query: select count(*) from test_table.
... 3 more
如果我执行show tables
,它会列出表名。
如果我从色调执行它,它不会在结果中显示任何东西。
我试着使元数据无效。
我尝试通过更改到最新的驱动程序jdbc41
相同的问题。
问题可能出在哪里?
发布于 2016-10-13 06:58:51
在我的例子中,这个错误是由于hdfs上的/ user /scott目录对Hiveserver (以cloudera-scm用户身份运行)没有写权限而引起的(我的jdbc连接使用scott作为用户id)。一旦我创建了dir并对其进行了chmod,我就可以运行所有的查询。之前只有select *有效,但select count(*)没有。
发布于 2016-07-12 15:12:50
问题出在.avro文件格式中。我的团队领导已经解决了这个问题,不知道他做了什么,他只是说是文件格式的问题。
https://stackoverflow.com/questions/35554816
复制相似问题