When hadoop is installed, an error message is reported
guard.: ssh: Could not resolve hostname guard.: Name or service not known to: ssh: Could not resolve hostname to: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known HotSpot(TM): ssh: Could not resolve hostname hotspot(tm): Name or service not known will: ssh: Could not resolve hostname will: Name or service not known fix: ssh: Could not resolve hostname fix: Name or service not known disabled: ssh: Could not resolve hostname disabled: Name or service not known You: ssh: Could not resolve hostname you: Name or service not known The: ssh: Could not resolve hostname the: Name or service not known library: ssh: Could not resolve hostname library: Name or service not known VM: ssh: Could not resolve hostname vm: Name or service not known Java: ssh: Could not resolve hostname java: Name or service not known 64-Bit: ssh: Could not resolve hostname 64-bit: Name or service not known that: ssh: Could not resolve hostname that: Name or service not known guard: ssh: Could not resolve hostname guard: Name or service not known highly: ssh: Could not resolve hostname highly: Name or service not known recommended: ssh: Could not resolve hostname recommended: Name or service not known Server: ssh: Could not resolve hostname server: Name or service not known stack: ssh: Could not resolve hostname stack: Name or service not known it: ssh: Could not resolve hostname it: Name or service not known have: ssh: Could not resolve hostname have: Name or service not known It's: ssh: Could not resolve hostname it's: Name or service not known warning:: ssh: Could not resolve hostname warning:: Name or service not known
Mainly because it is not added to the environment variables
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
As long as you add the following content to ~/.bash_profile and start it, there is no problem
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
Donate to developers
Driven by interest, I write 免费
something with joy and sweat. I hope you like my work and can support it at the same time. Of course, if you have money to support a money field (support Alipay, WeChat, and the buckle group), if you have no money to support a personal field, thank you.
Personal homepage : http://knight-black-bob.iteye.com/
Thank you for your sponsorship, I will do better!