Support Questions

Find answers, ask questions, and share your expertise

How to change HDP service users password

avatar
Expert Contributor

Hello,

We could see the below alert in Ambari UI. Please let me know how to change/reset the password for the HDP service users.

Connection failed to http://xxxxxx.xxxxx.com:50070 (Execution of '/usr/bin/kinit -c /var/lib/ambari-agent/tmp/curl_krb_cache/web_alert_ambari-qa_cc_0968abaa5827638ae5a9a92642ebb363a83845d449ecfb223d4f91e3 -kt /etc/security/keytabs/spnego.service.keytab HTTP/xxxx> /dev/null' returned 1. You are required to change your password immediately (password aged)
(current) UNIX password: su: Authentication token manipulation error
Changing password for ambari-qa.)

When I tried to do $su hdfs from root, it's asking me to change the password

$su hdfs
You are required to change your password immediately (password aged)
Changing password for hdfs.
(current) UNIX password:
$chage -l hdfs
Last password change                                    : Oct 16, 2018
Password expires                                        : Nov 20, 2018
Password inactive                                       : Feb 18, 2019
Account expires                                         : never
Minimum number of days between password change          : 1
Maximum number of days between password change          : 35
Number of days of warning before password expires       : 6<br>

Please help ASAP.

1 ACCEPTED SOLUTION

avatar

Hi @Sampath Kumar ,

From the output of chage -l hdfs i see your password of hdfs local user is expired. can you try to change

To resolve this issue, disable the expired password for the HDFS user, using the following command:

chage -m 0 -M 99999 -I -1 -E -1 hdfs

This command sets the following for the HDFS user:

  • Minimum Password Age to 0
  • Maximum Password Age to 99999
  • Password Inactive to -1
  • Account Expiration Date to -1

You can further explore the command chage in google and set the password policy accordingly.

and then try again with ambari.

Please see if this helps you. please accept answer if it did.

View solution in original post

2 REPLIES 2

avatar

Hi @Sampath Kumar ,

From the output of chage -l hdfs i see your password of hdfs local user is expired. can you try to change

To resolve this issue, disable the expired password for the HDFS user, using the following command:

chage -m 0 -M 99999 -I -1 -E -1 hdfs

This command sets the following for the HDFS user:

  • Minimum Password Age to 0
  • Maximum Password Age to 99999
  • Password Inactive to -1
  • Account Expiration Date to -1

You can further explore the command chage in google and set the password policy accordingly.

and then try again with ambari.

Please see if this helps you. please accept answer if it did.

avatar
Expert Contributor

@Akhil S Naik : Thanks for your inputs