Re: [Spark Core] makeRDD() preferredLocations do not appear to be considered
It turned out the issue was
with my environment not Spark. Just in case anyone else is experiencing
this the problem was that the Spark workers did not use the machine
hostname by default. Setting the following environment variable on each worker
rectified it: SPARK_LOCAL_HOSTNAME: "worker1" etc.