-1

我正在尝试对 Hive - Spark 引擎执行一个简单的查询:

SELECT count(*) FROM classification_output GROUP BY model_id;

我不断收到以下错误:

Error: Error while compiling statement: FAILED: SemanticException Failed to get a spark session: org.apache.hadoop.hive.ql.metadata.HiveException: Failed to create spark client. (state=42000,code=40000)

只有 ONT 时间它在 12 分钟后工作

表上的记录数约为 7K,我怀疑是配置问题,但我不确定是哪个参数。

我尝试过了:

  • 重启 HIVE 服务器
  • 增加了 Hive 服务器的超时时间

笔记:

使用:

SELECT count(*) FROM classification_output;

没有group by....工作就好了并返回以下内容:

+-------+
|  _c0  |
+-------+
| 7164  |
+-------+
1 row selected (0.092 seconds)
4

2 回答 2

0

对于任何因错误而登陆这里的人

Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement:FAILED: SemanticException Got exception though getTableObjectByName method should ignore it

检查您的身份验证。

于 2021-09-15T03:24:02.947 回答
0

在花了一些时间解决这个问题之后,我设法找到了解决方案。它与查询无关。有另一个 SparkClient 进程正在运行,一旦我停止它并执行查询,它就可以正常工作。

于 2019-03-31T19:37:17.217 回答