Pages

Sunday, March 15, 2015

Issue when starting Hadoop cluster


Problem:
have: ssh: Could not resolve hostname have: Name or service not known

warning:: ssh: Could not resolve hostname warning:: Name or service not known

guard: ssh: Could not resolve hostname guard: Name or service not known

VM: ssh: Could not resolve hostname VM: Name or service not known

you: ssh: Could not resolve hostname you: Name or service not known

You: ssh: Could not resolve hostname You: Name or service not known

fix: ssh: Could not resolve hostname fix: Name or service not known

Client: ssh: Could not resolve hostname Client: Name or service not known

'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known

might: ssh: Could not resolve hostname might: Name or service not known

HotSpot(TM): ssh: Could not resolve hostname HotSpot(TM): Name or service not known

',: ssh: Could not resolve hostname ',: Name or service not known

VM: ssh: Could not resolve hostname VM: Name or service not known

or: ssh: Could not resolve hostname or: Name or service not known

disabled: ssh: Could not resolve hostname disabled: Name or service not known

loaded: ssh: Could not resolve hostname loaded: Name or service not known

recommended: ssh: Could not resolve hostname recommended: Name or service not known

which: ssh: Could not resolve hostname which: Name or service not known

fix: ssh: Could not resolve hostname fix: Name or service not known

now.: ssh: Could not resolve hostname now.: Name or service not known
the: ssh: Could not resolve hostname the: 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

will: ssh: Could not resolve hostname will: Name or service not known

have: ssh: Could not resolve hostname have: Name or service not known

library: ssh: Could not resolve hostname library: Name or service not known

library: ssh: Could not resolve hostname library: Name or service not known

stack: ssh: Could not resolve hostname stack: Name or service not known

The: ssh: Could not resolve hostname The: Name or service not known

try: ssh: Could not resolve hostname try: Name or service not known

the: ssh: Could not resolve hostname the: Name or service not known

link: ssh: Could not resolve hostname link: Name or service not known

highly: ssh: Could not resolve hostname highly: Name or service not known

It's: ssh: Could not resolve hostname It's: Name or service not known

with: ssh: Could not resolve hostname with: Name or service not known

stack: ssh: Could not resolve hostname stack: Name or service not known

Java: ssh: Could not resolve hostname Java: Name or service not known

with: ssh: Could not resolve hostname with: Name or service not known

it: ssh: Could not resolve hostname it: Name or service not known

noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known

'-z: ssh: Could not resolve hostname '-z: Name or service not known


Solution:

Add the following to .bashrc file

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"




No comments:

Post a Comment