Received this error:
java.net.BindException: Can't assign requested address: Service 'sparkDriver' failed after 16 retries
Luckily, I found this stackoverflow post, listing instructions:
- run hostname
- check if the output is present in /etc/hosts
- assuming hostname returned potato, you should have in /etc/hosts a line like this:
127.0.0.1 potato
- run the java code again, and it should pass