- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to change password for ambari db post install
- Labels:
-
Apache Ambari
Created ‎02-04-2016 07:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a cluster deployed via ambari and would like to change the password that is used to talk to db (psql). I also have encryption on for ambari db and ldap password (http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Ambari_Security_Guide/content/_optional_encrypt_database_and_ldap_passwords.html).
Created ‎02-04-2016 07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ grep "password" /etc/ambari-server/conf/ambari.properties server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat $ echo "bigdata_custom" > /etc/ambari-server/conf/password.dat $ sudo -u postgres psql postgres=# ALTER USER ambari WITH PASSWORD 'bigdata_custom'; postgres=# \q $ ambari-server restart
Created ‎02-10-2016 08:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@arpit How did you handle the encryption?
Created ‎02-10-2016 08:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i un encrypted it and changed the password based on what @Alejandro Fernandez had and then encrypted it again.
Created ‎02-10-2016 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎02-10-2016 09:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Neeraj that doc talks about changing master key for encryption. I had to change the password for DB. So i un encrypted. Changed password and encrypted it.
Created ‎02-04-2016 07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ grep "password" /etc/ambari-server/conf/ambari.properties server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat $ echo "bigdata_custom" > /etc/ambari-server/conf/password.dat $ sudo -u postgres psql postgres=# ALTER USER ambari WITH PASSWORD 'bigdata_custom'; postgres=# \q $ ambari-server restart
Created ‎02-10-2016 08:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My ambari.properties has the following entries !
[root@amuru]# grep "password" /etc/ambari-server/conf/ambari.properties
server.jdbc.rca.user.passwd=/etc/ambari-server/conf/password.dat
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat
All have the same password so enlighten me does the echo cascade the change ?
Created ‎02-10-2016 06:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Neeraj Sabharwal and @Alejandro Fernandez i used information from both answers and updated the password.

- « Previous
-
- 1
- 2
- Next »