What should I do if I forget the admin password of cloudera manager?

Life is full of changes, and things are impermanent. Suddenly one day when you play cloudera manager on a whim, change your password, come back the next day and clear the cache of your computer, and when you log in to your company's cm again, you find, oh, what is the password?

cloudera manager forgot login password

The content of the preface is pure nonsense. Remember, your ability determines your authority. Since there is no brain that can remember complex passwords, never change them. It's not a technology, of course, in case, I said in case, you changed it, forget it. How to do? Today, Brother Shiver will tell you how to change your password! (Suddenly there is an evil idea, what if I change someone else's password? Hehehe)

Change the password first step

Since you are already an admin, you must have access to the metadata database of cloudera manager. If not, look for operation and maintenance and DBA.

After linking the database

Remember the database name of cm you specified when you installed cloudera manager, that's it, go, fight, use it!

use cm;

Find a table called USERS and see what's stored in it? Do you feel like you've discovered a new continent?

It covers the usernames and passwords of all users who can log in to cm. The usernames are in plain text and the passwords are double encrypted.

Modify database content

In the scope allowed by the permission, you need to modify the content of the password to modify the database. If you do not have permission, find the operation and maintenance, and find the DBA.

cloudera manager 4.X

update USERS set
password_hash='ffa2eb4251b38e069e968890cb2bcdb6229982322f5ed2470bf96231fe4c39c8',
password_salt=-4382599614486590865 WHERE user_name = 'admin';

The above sql supports all versions after 4.0 , excluding 5.0

cloudera manager 5.X


update USERS set
password_hash='9f7e3270b1aaa4931d38845a0334e66b2dd93f916439006fac4e5e2535a444b3',
password_salt=-5357030608435271136 WHERE user_name = 'admin';

The above sql is modified version after 5.X , no longer leapfrog

After the command is executed, it is basically OK. The password of your admin account is changed to admin . You can continue to log in with confidence and change the password.

Notice

The password is not a trivial matter in the company, and it is very important. Please modify it and inform others. Please be careful!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324683188&siteId=291194637