hive 连被拒绝
[2022-03-11 19:53:49] java.net.ConnectException: Connection refused: connect.

因为hive是基于hadoop的,所以先查看hadoop集群信息。

我们直接去看dataNode


看见节点2已经GG了,而且网卡有问题,我们重启网卡

直接在master上重启hadoop
[root@hadoop-node01 sbin]# ./start-all.sh
Starting namenodes on [hadoop-node01]
上一次登录:五 3月 11 20:10:30 CST 2022从 192.168.67.1pts/0 上
hadoop-node01: namenode is running as process 3323. Stop it first.
Starting datanodes
上一次登录:五 3月 11 20:11:11 CST 2022pts/0 上
hadoop-node01: datanode is running as process 3445. Stop it first.
hadoop-node03: datanode is running as process 2618. Stop it first.
Starting secondary namenodes [hadoop-node02]
上一次登录:五 3月 11 20:11:12 CST 2022pts/0 上
Starting resourcemanager
上一次登录:五 3月 11 20:11:23 CST 2022pts/0 上
resourcemanager is running as process 3864. Stop it first.
Starting nodemanagers
上一次登录:五 3月 11 20:11:48 CST 2022pts/0 上
hadoop-node03: nodemanager is running as process 2738. Stop it first.
hadoop-node01: nodemanager is running as process 3987. Stop it first.
[root@hadoop-node01 sbin]#

这样就可以连接了

本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
