Support Questions
Find answers, ask questions, and share your expertise

/usr/hdf/current/registry/bootstrap/bootstrap-storage.sh migrate' returned 1. sudo: no tty present and no askpass program specified

/usr/hdf/current/registry/bootstrap/bootstrap-storage.sh migrate' returned 1. sudo: no tty present and no askpass program specified

Explorer

I installed my HDP cluster as a non-root user. I have my non-root sudoers access setup as specified by ambari,ambari-sudoer-config.txt

I installed HDF management pack to install schema registry. But it gives me the below error. Is there anything I'm missing in the sudoer config?

/usr/hdf/current/registry/bootstrap/bootstrap-storage.sh migrate' returned 1. sudo: no tty present and no askpass program specified
1 REPLY 1
Highlighted

Re: /usr/hdf/current/registry/bootstrap/bootstrap-storage.sh migrate' returned 1. sudo: no tty present and no askpass program specified

Explorer

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'}