Ambari reset admin login password

First of all, after the Ambari is successfully installed normally, it may take a little longer; after the installation is complete, then you need to see what your IP address is, you can use the ip a command to check, and then you can log in to the web page to log in.

The URL entered at this time is the viewed ip:8080 , so that you can enter the login interface;

If you are using vbox to install, then the default ip is 127.0.0.1, directly enter 127.0.0.1:8080 to log in to the webpage;

If it is installed using VMware, then use the viewed ip, enter the web page and enter the viewed ip: 8080 to log in to the web page;

An interface for entering the login account and password will appear, as shown in the figure below:

Insert picture description here

The default user name/password for logging in to ambari is: admin/admin . Such a password is too simple. In order to prevent others from logging in to the system at will to modify the cluster configuration or host services, it is necessary to reset the admin login password. Let me tell you about it. 2 ways to change the password.

Method 1:
1. After successfully logging in with the password, click the admin option in the upper right corner and select Manager Ambari , as shown in the figure below:
Insert picture description here
2. Then select Users in the lower left corner, as shown in the figure below:
Insert picture description here
3. After entering Users, it will appear For multiple Usernames , select admin , as shown in the following figure:
Insert picture description here
4. After entering admin under Users, there is a Change Password option, you can modify and save the password by selecting it, it is best to change to a password that is easy to remember, so that it is not easy to forget . As shown below:

Insert picture description here
Method Two:

Sometimes when we delete the container, we will find that when we log in to ambari on the web page, it will prompt a password error. This is because deleting the container is equivalent to changing the default password. It is no longer the default password for logging in to ambari, so an error will occur. It is no longer the default admin, and we need to reset the password at this time.

Enter the interface where the docker is started, which is the docker of port 2222 when it is created, enter the command:

ambari-admin-password-reset

This command is the command to reset the ambari password. After entering this command, there will be a prompt:
Please set the password for admin:

At this time, you can enter a password that you can easily remember. For convenience, I will set it as admin.

admin

However, the password entered at this time is not visible on the operation interface, so be sure to note that after the input is completed, you will be prompted to confirm the password. Enter it once:
Please retype the password for admin:

Just enter the password you just entered again:

admin

At this point, the new password has been successfully reset! Then log in to the ambari web interface, the account is still admin, and then enter the new password to log in again!

Guess you like

Origin blog.csdn.net/zp17834994071/article/details/108585643