There is this warning when you start your spark shell

This warning shows when you have your hostname in your /etc/hosts file. Remove that entry from your /etc/hosts file and this warning vanishes.
This warning shows when you have your hostname in your /etc/hosts file. Remove that entry from your /etc/hosts file and this warning vanishes.