我使用 pyhs2 作为 Hive 客户端。无法识别带有“where”子句的 sql 语句。得到
'pyhs2.error.Pyhs2Exception: 'Error while processing statement:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask'
但在 hive shell 中运行正常。
最佳答案
已修复!这是由于远程服务器上的许可。将连接语句中的用户从“root”更改为“hdfs”解决了问题。
关于python hive客户端pyhs2无法识别sql语句中的 'where'子句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23971667/