zoukankan      html  css  js  c++  java
  • beeline连接数据库报错Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/cr: java.n

    beeline> !connect jdbc:hive2://localhost:10000/cr
    Connecting to jdbc:hive2://localhost:10000/cr
    Enter username for jdbc:hive2://localhost:10000/cr:
    Enter password for jdbc:hive2://localhost:10000/cr:
    18/08/13 08:47:02 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10000
    Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.
    Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/cr: java.net.ConnectException: Connection refused (state=08S01,code=0)
    

    the best resolution is restart hiveserver2 service~~~~~~~

    [xiaoqiu@s150 /tmp/xiaoqiu]$ netstat -anop|grep 10000
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    tcp        1      0 127.0.0.1:48303         127.0.0.1:10000         CLOSE_WAIT  7558/java            keepalive (2715.77/0/0)
    [xiaoqiu@s150 /tmp/xiaoqiu]$ kill -9 7558
    [xiaoqiu@s150 /tmp/xiaoqiu]$ netstat -anop|grep 10000
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    [xiaoqiu@s150 /tmp/xiaoqiu]$ hiveserver2
    

    it works !!!!

    欢迎关注我的公众号:小秋的博客 CSDN博客:https://blog.csdn.net/xiaoqiu_cr github:https://github.com/crr121 联系邮箱:rongchen633@gmail.com 有什么问题可以给我留言噢~
  • 相关阅读:
    安全SECUERITY单词SECUERITY证券
    证券secuerity英语secuerity安全
    单词diamaund钻石diamaund英文
    英文DIAMAUND钻石DIAMAUND词汇
    英语insuraunce保险insuraunce单词
    英文INSURAUNCE保险INSURAUNCE词汇
    python关于 微型微服务框架bottle实践
    用python登录12306 并保存cookie
    SpringMVC 之 上传文件
    JAVA I/O系统 Thinking in Java 之 File类
  • 原文地址:https://www.cnblogs.com/flyingcr/p/10326865.html
Copyright © 2011-2022 走看看