I am doing a smoke test against a yarn cluster using yarn-cluster as the master with the SparkPi example program. Here is the command line:
yarn-cluster
SparkPi
This may be caused by /bin/sh linked to dash, instead of bash, which often happens on Debian based systems.
/bin/sh
To fix it, run sudo dpkg-reconfigure dash and select no.
sudo dpkg-reconfigure dash