Support Questions

Find answers, ask questions, and share your expertise

-bash: ambari-admin-password-reset: command not found

avatar
Explorer

I am using HDP 2.5 Sandbox (Virtualbox). I log on as root but I can't execute the following command.

-bash: ambari-admin-password-reset: command not found

I also tried ambari-agent restart or mysql. I always get "-bash: ... command not found"

Any help is appreciated.

Marco

1 ACCEPTED SOLUTION

avatar
Super Collaborator

@Marco Chou, make sure yo do ssh to docker container, not the VM. Do this:

ssh -p2222 root@127.0.0.1

and then try all the commands you want to.

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@Marco Chou

If you are using the sandbox 2.5 I think the default username password is

root/hadoop

You can then change the root password

# passwd

Then thereafter you can

#su - hdfs 

25-screen2.png

avatar
Super Collaborator

@Marco Chou, make sure yo do ssh to docker container, not the VM. Do this:

ssh -p2222 root@127.0.0.1

and then try all the commands you want to.

avatar
Rising Star

Mushtaq Rizvi - This isn't working for me, for HDP 2.5 Sandbox on Azure. See my other post 'Cannot log into Ambari Dashboard for HDP2.5 Azure Sandbox'. Any debugging tips?

I tried 'ssh -p2222 root@xx.xx.xx.xx' (where IP is that of my VM). Timed out.

Tried 'ssh -p2222 root@127.0.0.1'. Connection refused

avatar
Explorer

Thank you so much for your help. Have a nice weekend!

I do have another question if you don't mind. I can't connect thru any browsers (IE, Chrome, Firefox) using http://127.0.0.1:8888 Any suggestions?

avatar

@Marco Chou: Use the ip allocated to the box (ip from ifconfig) instead of using 127.0.0.1 to connect through browser.

avatar
Contributor

try ssh -p2222 root@xx.xx.xx.xx' the allocated IP

then it will ask where you want to add

say yes

change unix password

then run command 'ambari-admin-password-reset'

it will allow you to change the password for ambari admin