I want to disable IPv6 on debian system to make Hadoop run without this kind of issue.
I asked the question on community. Reco from debian-user mailing list says follows.
The most non-intrusive way of doing it (side effects considered) is:
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=0
It's good. I will give a try.