连接hive

  • bin/hiveserver2 nohup bin/hiveserver2 1>/var/log/hiveserver.log 2>/var/log/hiveserver.err &

  • 启动成功后,可以在别的节点上用beeline去连接

    • bin/beeline -u jdbc:hive2://mini1:10000 -n root

  • 或者

    • bin/beeline

    • ! connect jdbc:hive2://mini1:10000

原文地址:https://www.cnblogs.com/lxyuuuuu/p/9590460.html