I found that root is trying to execute the below command. Why is root executing this command or how do I make root execute this command successfully?
My service account for schemaregistry is 'registry' which is already in the sudoers file.
Execute['export JAVA_HOME=/SCRATCH/jdk1.8.0_91 ; source /usr/hdf/current/registry/conf/registry-env.sh ; /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh migrate'] {'user': 'root'}