>
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)
为什么连接拒绝错误即将到来?
答案 0 :(得分:0)
意味着没有东西正在侦听localhost,端口10000.可能你的HiveServer2位于不同的主机上。