我试图在CDH4环境中配置RHive。 在R中读取包'RHive'时,下面的错误被返回。 我猜这是由于错误的家园。 如果是这样,那么正确的是什么? 或者如果这不是原因,那有什么问题?CDH4中的Hadoop和Hive Homes
任何帮助将不胜感激。
谢谢。
> 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'
似乎很自我解释。您缺少指定集群中哪些节点的“从属”文件。 – greedybuddha