I tried to start spark 1.6.0 (spark-1.6.0-bin-hadoop2.4) on Mac OS Yosemite 10.10.5 using
\"./bin/spark-shell\".
It has the error below.
I always get that when switching between networks. This solves it:
$ sudo hostname -s 127.0.0.1