<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question how to reset ambari.db.password  password. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223992#M185856</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using mysql as the database for Ambari Version2.4.2.0.&lt;/P&gt;&lt;P&gt;Would like to change Ambari database user password.  &lt;/P&gt;&lt;P&gt;From mysql we can change the password.  That is easy.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question is how to update the&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;1)  -- server.jdbc.rca.user.passwd=${alias=ambari.db.password}&lt;/P&gt;&lt;P&gt;2)  -- server.jdbc.user.passwd=${alias=ambari.db.password}&lt;/P&gt;&lt;P&gt;in the file /etc/ambari-server/conf/ambari.properties &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note,  i am not trying to change Ambari admin password, which is used to login to Ambari UI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
    <pubDate>Sun, 20 Aug 2017 12:42:39 GMT</pubDate>
    <dc:creator>Jacqueline</dc:creator>
    <dc:date>2017-08-20T12:42:39Z</dc:date>
    <item>
      <title>how to reset ambari.db.password  password.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223992#M185856</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using mysql as the database for Ambari Version2.4.2.0.&lt;/P&gt;&lt;P&gt;Would like to change Ambari database user password.  &lt;/P&gt;&lt;P&gt;From mysql we can change the password.  That is easy.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question is how to update the&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;1)  -- server.jdbc.rca.user.passwd=${alias=ambari.db.password}&lt;/P&gt;&lt;P&gt;2)  -- server.jdbc.user.passwd=${alias=ambari.db.password}&lt;/P&gt;&lt;P&gt;in the file /etc/ambari-server/conf/ambari.properties &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note,  i am not trying to change Ambari admin password, which is used to login to Ambari UI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 12:42:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223992#M185856</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-08-20T12:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to reset ambari.db.password  password.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223993#M185857</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15031/jacqualinjasmin.html" nodeid="15031"&gt;@Jacqualin jasmin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we see that your passwords are encrypted, Because you mght have the "security.passwords.encryption.enabled" property set to true inside your ambari.properties.&lt;/P&gt;&lt;PRE&gt;# grep 'passwd' /etc/ambari-server/conf/ambari.properties 
server.jdbc.rca.user.passwd=${alias=ambari.db.password}
server.jdbc.user.passwd=${alias=ambari.db.password}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Assuming you remember your old ambari db pasword (by default it shoudl be "bigdata"), And you want to change the DB password to something new like "bigdata_new"&lt;/P&gt;&lt;PRE&gt;# mysql -u ambari -p 
Enter password: bigdata
mysql&amp;gt; use ambari;
mysql&amp;gt; SET PASSWORD FOR 'ambari'@'localhost' = PASSWORD('bigdata_new');
mysql&amp;gt; SET PASSWORD FOR 'ambari'@'%' = PASSWORD('bigdata_new');
mysql&amp;gt; SET PASSWORD FOR 'ambari'@'standaloneambari1.example.com' = PASSWORD('bigdata_new');
mysql&amp;gt; FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;REMEMBER:  i&lt;/STRONG&gt;n the following statement you will need to enter your ambari DB hostname while resetting the DB password. Here standalone1.example.com is the FQDN (hostname -f) where my MySQL DB was running. &lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; SET PASSWORD FOR 'ambari'@'standaloneambari1.example.com' = PASSWORD('bigdata_new');&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps from ambari side:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First of all please take a backup of ambari properties file &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# cp -f /etc/ambari-server/conf/ambari.properties  /etc/ambari-server/conf/ambari.properties.ORIGINAL&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Once the password is changed from the DB side then edit the "/etc/ambari-server/conf/ambari.properties" file and change the value of "server.jdbc.rca.user.passwd" and "server.jdbc.user.passwd" property as following:&lt;/P&gt;&lt;PRE&gt;# grep 'passwd' /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 &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Create a file with name&lt;EM&gt;&lt;STRONG&gt; "/etc/ambari-server/conf/password.dat"&lt;/STRONG&gt;&lt;/EM&gt; and enter the new Ambari Database password there. Like:&lt;/P&gt;&lt;PRE&gt;# echo "bigdata_new" &amp;gt; /etc/ambari-server/conf/password.dat 
# cat  /etc/ambari-server/conf/password.dat 
bigdata_new&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Restart ambari server to see if it is starting fine with the newly retested ambari db password or not?&lt;/P&gt;&lt;PRE&gt;# ambari-server restart&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If everything is OK so far then do the following:&lt;/STRONG&gt;&lt;BR /&gt;If ambari server starts fine then we can now proceed with "Encrypting the password" again using "ambari-server setup-security" option [2] Encrypt passwords stored in ambari.properties file.&lt;/P&gt;&lt;PRE&gt;# ambari-server setup-security
Using python  /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options: 
  [1] Enable HTTPS for Ambari server.
  [2] Encrypt passwords stored in ambari.properties file.
  [3] Setup Ambari kerberos JAAS configuration.
  [4] Setup truststore.
  [5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5): 2
Password encryption is enabled.
Do you want to reset Master Key? [y/n] (n): n
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup-security' completed successfully.&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Once this is done we should see that the password is again encrypted.&lt;/P&gt;&lt;PRE&gt;# grep 'passwd' /etc/ambari-server/conf/ambari.properties 
server.jdbc.rca.user.passwd=${alias=ambari.db.password}
server.jdbc.user.passwd=${alias=ambari.db.password}&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;Now restart ambari server&lt;PRE&gt;# ambari-server restart&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 13:45:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223993#M185857</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-20T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to reset ambari.db.password  password.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223994#M185858</link>
      <description>&lt;P&gt;Thank Jay  for your perfect solution. &lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:00:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223994#M185858</guid>
      <dc:creator>Jacqueline</dc:creator>
      <dc:date>2017-09-07T12:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to reset ambari.db.password  password.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223995#M185859</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;P&gt;will it work for postgres too?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 00:53:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-reset-ambari-db-password-password/m-p/223995#M185859</guid>
      <dc:creator>raghu9raghavend</dc:creator>
      <dc:date>2018-07-28T00:53:58Z</dc:date>
    </item>
  </channel>
</rss>

