Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to change HDP service users password

Solved Go to solution
Highlighted

How to change HDP service users password

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

Accepted Solutions

Re: How to change HDP service users password

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.

2 REPLIES 2

Re: How to change HDP service users password

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.

Re: How to change HDP service users password

Expert Contributor

@Akhil S Naik : Thanks for your inputs

Don't have an account?
Coming from Hortonworks? Activate your account here