我在CentOS上运行RHive(https://github.com/nexr/RHive)和Hadoop 2.2.0.2.0.6.0-101( Linux 2.6.32-431.5.1.el6.x86_64)
RHive可以执行基本的select
查询:
rhive.query(" select * from simple")
RHive无法使用条件执行查询。例如:
rhive.query("通过评级&#34从简单顺序中选择*)
Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
rhive.query(" select * from simple where name ==' Bond'")
Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
是否可以使其完全支持Hive QL?
谢谢!
答案 0 :(得分:0)
连接到RHive时,请提供Hive用户的用户名和密码,或任何HDFS用户的凭据,如下所示:
rhive.connect(host="IP of Hive server", port=10000, hiveServer2=TRUE, user="hive",
password="")