我正在尝试在cdh4环境中配置rhive。读取r中的包“rhive”时,返回下面的错误。我猜那是因为错误的家庭。如果是的话,正确的答案是什么?或者如果这不是原因,那又有什么错呢?
任何帮助都将不胜感激。
谢谢。
> Sys.setenv(HIVE_HOME="/etc/hive")
> Sys.setenv(HADOOP_HOME="/etc/hadoop")
> library(RHive)
Loading required package: rJava
Loading required package: Rserve
This is RHive 0.0-7. For overview type '?RHive'.
HIVE_HOME=/etc/hive
[1] "there is no slaves file of HADOOP. so you should pass hosts argument when you call rhive.connect()."
Error : .onLoad failed in loadNamespace() for 'RHive', details:
call: .jnew("org/apache/hadoop/conf/Configuration")
error: java.lang.ClassNotFoundException
In addition: Warning message:
In file(file, "rt") :
cannot open file '/etc/hadoop/conf/slaves': No such file or directory
Error: package/namespace load failed for 'RHive'
2条答案
按热度按时间bvjxkvbb1#
您应该分别设置hadoop\u conf\u dir。请尝试导出$hadoop\u conf\u dir=/etc/hadoop/conf/conf.pseudo
conf.pseudo包含从属文件。
不过我很好奇你能不能让rhive和cdh4一起工作。
raogr8fs2#