BIGTOP-861. init-hdfs.sh does not work from init scripts

init-hdfs.sh does not work from init scripts because it uses sudo, which requires a login shell.
This patch replaces the use of sudo by su