我正在尝试对 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)