Thursday, January 5, 2012

Hadoop localhost: Connection closed by error

Error messages when starting Hadoop using
localhost: Connection closed by

Error in namenode log: could only be replicated to 0 nodes, instead of 1

starting namenode, logging to /Users/dc/hadoop-0.20.2/bin/../logs/hadoop-dc-namenode-d-cs-MacBook-Pro.local.out
localhost: Connection closed by
localhost: Connection closed by
~/hadoop-0.20.2/bin:cd ..

From the namenode log:
2012-01-05 09:14:02,662 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /Users/dc/hadoop/tmp/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible.

Reformat the namenode, still get error messages in namenode log. This seems to imply something wrong with formatting the tmp drive space. I deleted the tmp directory... didnt help: File /Users/dc/hadoop/tmp/mapred/system/ could only be replicated to 0 nodes, instead of 1

2) check ssh!!!
~/hadoop- localhost
Connection closed by

This isn't right. You should be able to ssh to yourself.
Look in secure.log under /var/log which is ssh log.

Jan 5 10:01:50 d-cs-MacBook-Pro sshd[76277]: error: PAM: authentication error for root from dc-pc via
Jan 5 10:01:51 d-cs-MacBook-Pro sshd[76278]: Connection closed by

Under MACBOOK I set sharing to Selected Users when enabling remote login or ssh on my macbook.
Change to ALL USERS.

No comments:

Post a Comment