用户名和密码都没问题,但报如下这个错误(确保你的metastore和hiveserver2都是启动的,其次hdfs和yarn也是启动的)

原因:是因为我在linux上没启hiveserver2服务
解决:
[atguigu@hadoop102 hadoop]$ hiveserver2
which: no hbase in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/module/jdk1.8.0_212/bin:/opt/module/hadoop-3.3.4/bin:/opt/module/hadoop-3.3.4/sbin:/opt/module/hive/bin:/opt/module/kafka/bin:/opt/module/efak/bin:/opt/module/spark/bin:/home/atguigu/.local/bin:/home/atguigu/bin)
2024-04-17 19:11:46: Starting HiveServer2
Hive Session ID = dd03b7f1-81f2-4f90-bc35-d62d495b2464
然后再连,就能连上了。
