weixin_41879185
weixin_41879185
采纳率0%
2019-12-30 10:02 阅读 576

hive启动之后,查询语句执行特别慢,之后发现日志中zookeeper报错

hive启动之后,输入查询语句如:show databases; 执行特别慢,之后发现日志中zookeeper报错:

2019-12-30T09:51:20,816  INFO [151e439b-e32e-47fb-9535-baa6b617f672 main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2019-12-30T09:51:20,817  WARN [151e439b-e32e-47fb-9535-baa6b617f672 main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.8.0_231]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:1.8.0_231]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) ~[zookeeper-3.4.6.jar:3.4.6-1569965]

求帮助!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • u012737673 明教第三十四代觉主 2019-12-30 10:13

    看样子是连接的问题,zk server访问权限是不是有问题

    点赞 评论 复制链接分享
  • maoyuanming0806 maoyuanming0806 2020-01-06 15:57

    zk连接问题,(1)zk服务不可用,去检查下zk服务(用命令行登陆下zk看行不行,或者查看zk的日志)
    (2)客户端写的连接有问题,或网络不通。

    排查问题可以尝试去分析堆栈噢,这个堆栈很明显就是zk连接被拒绝

    点赞 评论 复制链接分享

相关推荐