Your SSH isn't setup properly
Setup passphraseless ssh
Now check that you can ssh to the localhost without a passphrase:
$ ssh localhost
If you cannot ssh to localhost without a passphrase, execute the
following commands:
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Execution
Format a new distributed-filesystem:
$ bin/hadoop namenode -format
Start The hadoop daemons:
$ bin/start-all.sh
http://hadoop.apache.org/common/docs/r0.17.0/quickstart.html#Setup+passphraseless
or
Refer Micheal Noll's link for running Hadoop on your machine.