查看了launch-hadoop-master的第94行:
94 if [ ! -z $MASTER_HOST ]; then
改成加上双引号:
94 if [ ! -z "$MASTER_HOST" ]; then
解决。