标签: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