【发布时间】:2013-05-17 09:30:47
【问题描述】:
我正在尝试在 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'
【问题讨论】:
-
似乎很容易解释。您缺少指定集群中哪些节点的“从属”文件。