码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-11-07 22:08:48      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:etc   library   temp   res   alt   2.7   inf   col   module   

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

标签:etc   library   temp   res   alt   2.7   inf   col   module   

原文地址:https://www.cnblogs.com/cmwenxin/p/9925976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!