Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Setup Hadoop cluster on SUSE

Copy link to this message
Setup Hadoop cluster on SUSE
Hi, dear friends,

Recently, I'm trying to setup a hadoop cluster with 2 nodes, each of which
is running a SUSE 11 OS.

However, when I tried to run "start-all.sh" from namenode, a error happened:
mh1:~# start-all.sh
starting namenode, logging to
*: Name or service not knwnstname mh2*
mh1: starting secondarynamenode, logging to
*: Name or service not knownstname mh2*

But I have already modified the /etc/hosts of each node like this:
---- localhost mh1 mh2

and I could successfully connect to mh2 with SSH:
mh1:~ # ssh mh2
last login: Thu Jun 20 10:20:32 2013 from mh1
mh2:~ #

If i use the IP address  of mh2 instead of its hostname in
$HADOOP_HOME/conf/slaves, the whole cluster works fine. However, I'm still
wondering why I could not use hostname as usual?

Any suggestion would be appreciated.

Lin Yang