Resolved Nutch java.net.UnknownHostException: localhost.localdomain

Resolved Nutch java.net.UnknownHostException: localhost.localdomain :
Basically Nutch is an open source search engine based on Java for the search and index component.
Have you started setting up Nutch environment for crawling & ran into this kind of exception, don’t worry I have a solution for you :);
This is happening due to misconfiguration of your hostname. Use hostname command in the console to find out your hostname.
Afterwards follow this POST http://knowledgeexplosion.info/index.php/Technical/2007/12/17/best_way_to_change_hostname_in_linux to change your hostname & you are done.
The nutch will work like charm.
~Ruitu