hadoop启动报错:localhost: ssh: Could not resolve hostname localhost

Posted cmwenxin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop启动报错:localhost: ssh: Could not resolve hostname localhost相关的知识,希望对你有一定的参考价值。

hadoop启动journalnode时报错:localhost: ssh: Could not resolve hostname localhost: Temporary failure in name resolution

技术分享图片

解决办法:将高亮部分补充到/etc/profile中,然后source生效

export JAVA_HOME=/opt/module/jdk1.8.0_144 export HADOOP_HOME=/opt/ha/hadoop-2.7.4

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native

export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"

export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_HOME/bin

以上是关于hadoop启动报错:localhost: ssh: Could not resolve hostname localhost的主要内容,如果未能解决你的问题,请参考以下文章

ssh已经设置无密码登录了,但hadoop启动时提示要输入localhost的密码,具体情况如问题补充,求大神解救

Hadoop 节点在启动期间不要求输入密码

Hadoop集群-集群搭建踩的那些坑之ssh篇

Hadoop集群-集群搭建踩的那些坑之ssh篇

Spark启动时报错localhost: failed to launch: nice -n 0 /home/chan/spark/spark-2.4.3-bin-hadoop2.7/bin/spar

Apache Hadoop 入门教程第三章