试图通过R连接Hive。以下错误是什么意思?怎么解决?

时间:2017-11-08 09:10:12

标签: r hadoop jdbc hive

>

 log4j:WARN No appenders could be found for logger
> (org.apache.hive.jdbc.Utils). log4j:WARN Please initialize the log4j
> system properly. log4j:WARN See
> http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect",
> as.character(url)[1],  :    java.sql.SQLException: Could not open
> client transport with JDBC Uri:
> jdbc:hive2://localhost:10000/cdac_project: java.net.ConnectException:
> Connection refused (Connection refused)

为什么连接拒绝错误即将到来?

1 个答案:

答案 0 :(得分:0)

意味着没有东西正在侦听localhost,端口10000.可能你的HiveServer2位于不同的主机上。