Hi paufqq,
in order to make it work you have to do a couple of things. First of all HDFS is configured by URI in format hdfs://nn.fqdn:nn.port so in our example it is usually hdfs://localhost.localdomain:8020. You can check it in core-site.xml. You should do same configuration as client so name node host should be same for client as it is defined in core-site.xml (so localhost.localdomain).
It is worth to check following things:
- Are you able to reach NameNode IPC port on host machine? For example on host machine: telnet localhost.localdomain 8020
- Check core-site.xml and hdfs-site.xml for *.address properties how they are binded.
- Strange thing for me is that you have defined 127.0.0.1 and then 127.0.1.1. Is this correct?
- Check this forum thread for some details about Hortonworks sandbox (in case you're using it).
BR,Jiri