<?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 Re: Ranger Admin Not Starting After Ambari Upgrade in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216589#M69195</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/14600/dsun.html"&gt;@dsun&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Did you create a dump of the ranger batabase before the upgrade? &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If  not then create one,while looged in as mysql root user &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;mysqldump ranger &amp;gt; ranger_db.sql &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;It seems the below statement will fail as your current password is wrong. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;mysql -u rangerdba -p{password} &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Try the alternative to change the rangerdba password while logged on as mysql root user, below is an example &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;update user set password=PASSWORD('your_new_password') where User='user-name-here'; 
flush privileges;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then use the new credentials in &lt;STRONG&gt;Ambari UI--&amp;gt;Ranger--&amp;gt;Configs---&amp;gt;Ranger Admin&lt;/STRONG&gt; to test connection verify that it works &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2017 01:49:29 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-10-09T01:49:29Z</dc:date>
    <item>
      <title>Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216586#M69192</link>
      <description>&lt;P&gt;I am getting below errors while trying to start Ranger Admin after the latest Ambari upgrade from 2.5.1 to 2.5.2:&lt;/P&gt;&lt;PRE&gt;2017-10-08 17:30:03,646 - Check db_connection_check was unsuccessful. Exit code: 1. Message: ERROR: Unable to connect to the DB. Please check DB connection properties.
java.sql.SQLException: Access denied for user 'rangerdba'@'scregionm1.field.hortonworks.com' (using password: YES)

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 531, in &amp;lt;module&amp;gt;
    CheckHost().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 206, in actionexecute
    raise Fail(error_message)
resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: ERROR: Unable to connect to the DB. Please check DB connection properties.
java.sql.SQLException: Access denied for user 'rangerdba'@'scregionm1.field.hortonworks.com' (using password: YES)&lt;/PRE&gt;&lt;P&gt;I confirmed 'rangerdba' user has proper privileges on the MySQL node:&lt;/P&gt;&lt;P&gt;mysql&amp;gt; SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user;
+----------------------------------+-------------+-------------------------------------------+------------+------------+
| host                             | user        | password                                  | Grant_priv | Super_priv |
+----------------------------------+-------------+-------------------------------------------+------------+------------+
| localhost                        | root        |                                           | Y          | Y          |
| scregionm2.field.hortonworks.com | root        |                                           | Y          | Y          |
| 127.0.0.1                        | root        |                                           | Y          | Y          |
| ::1                              | root        |                                           | Y          | Y          |
| %                                | rangerdba   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | Y          | Y          |
| %                                | hive        | *1C2AF9445ECD574DB1D3E4584424EDFB768C1E70 | N          | Y          |
| localhost                        | rangerdba   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | Y          | Y          |
| scregionm2.field.hortonworks.com | rangerdba   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | Y          | Y          |
| %                                | rangerkms   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| localhost                        | rangerkms   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| scregionm2.field.hortonworks.com | rangerkms   | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| %                                | rangeradmin | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| localhost                        | rangeradmin | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| scregionm2.field.hortonworks.com | rangeradmin | *0DFC06DA054FDC6F974A6709CFCE366817B59894 | N          | N          |
| %                                | streamline  | *46ADB7217AF6CE7227CD73C4F4AD1C157D664E7F | N          | N          |
| ambariservernode                 | rangeruser  |                                           | Y          | Y          |
| scregionm1.field.hortonworks.com | rangerdba   |                                           | Y          | Y          |
| scregionm0.field.hortonworks.com | rangerdba   |                                           | Y          | Y          |
+----------------------------------+-------------+-------------------------------------------+------------+------------+
18 rows in set (0.00 sec)&lt;/P&gt;&lt;P&gt;I also checked MySQL connection from the Ranger Admin node to the MySQL instance is fine:&lt;/P&gt;&lt;P&gt;sqlline&amp;gt; !connect jdbc:mysql://scregionm2.field.hortonworks.com/mysql rangerdba BadPass#1
Connecting to jdbc:mysql://scregionm2.field.hortonworks.com/mysql
Connected to: MySQL (version 5.6.35)
Driver: MySQL-AB JDBC Driver (version mysql-connector-java-5.1.17-SNAPSHOT ( Revision: ${bzr.revision-id} ))
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:mysql://scregionm2.field.hortonworks.&amp;gt; select version();
+------------+
| version()  |
+------------+
| 5.6.35     |
+------------+
1 row selected (0.031 seconds)&lt;/P&gt;&lt;P&gt;Any help is appreciated.  Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 00:40:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216586#M69192</guid>
      <dc:creator>dsun</dc:creator>
      <dc:date>2017-10-09T00:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216587#M69193</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14600/dsun.html" nodeid="14600"&gt;@dsun&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It looks your ranger database is up and running correctly, can you validate that the in&lt;STRONG&gt; Ambari UI--&amp;gt;Ranger--&amp;gt;Configs---&amp;gt;Ranger Admin&lt;/STRONG&gt; that the&lt;STRONG&gt; test connection &lt;/STRONG&gt;works especially check the &lt;STRONG&gt;JDBC connect string for a Ranger database&lt;/STRONG&gt; and the&lt;STRONG&gt; Ranger DB password&lt;/STRONG&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please let me know if you still encounter problems.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 01:01:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216587#M69193</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-09T01:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216588#M69194</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; Forgot to mention in my original post, 'test connection' in Ambari was the first task I checked, and it failed, that's why I started digging further with above testing. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 01:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216588#M69194</guid>
      <dc:creator>dsun</dc:creator>
      <dc:date>2017-10-09T01:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216589#M69195</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/14600/dsun.html"&gt;@dsun&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Did you create a dump of the ranger batabase before the upgrade? &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If  not then create one,while looged in as mysql root user &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;mysqldump ranger &amp;gt; ranger_db.sql &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;It seems the below statement will fail as your current password is wrong. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;mysql -u rangerdba -p{password} &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Try the alternative to change the rangerdba password while logged on as mysql root user, below is an example &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;update user set password=PASSWORD('your_new_password') where User='user-name-here'; 
flush privileges;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then use the new credentials in &lt;STRONG&gt;Ambari UI--&amp;gt;Ranger--&amp;gt;Configs---&amp;gt;Ranger Admin&lt;/STRONG&gt; to test connection verify that it works &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 01:49:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216589#M69195</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-09T01:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216590#M69196</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;, but that didn't help, still seeing the same error, I assume somewhere along the upgrade went wrong, and I am checking the logs:&lt;/P&gt;&lt;PRE&gt;2017-10-08 19:37:04,316  [JISQL] /usr/jdk64/jdk1.8.0_77/bin/java  -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-jdbc-driver.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://scregionm2.field.hortonworks.com/mysql -u rangerdba -p '********' -noheader -trim -c \; -query "SELECT version();"
SQLException : SQL state: 28000 java.sql.SQLException: Access denied for user 'rangerdba'@'scregionm1.field.hortonworks.com' (using password: YES) ErrorCode: 1045
2017-10-08 19:37:04,893  [E] Can't establish db connection.. Exiting..
&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Oct 2017 02:38:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216590#M69196</guid>
      <dc:creator>dsun</dc:creator>
      <dc:date>2017-10-09T02:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216591#M69197</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;  I ran 'hdp-select' on the host where Ranger Admin is installed just to check the components are running and noticed it's showing the older version 2.6.1.0-129:&lt;/P&gt;&lt;P&gt;[root@scregionm1 ~]# hdp-select  | grep ranger
ranger-admin - 2.6.1.0-129
ranger-kms - None
ranger-tagsync - 2.6.1.0-129
ranger-usersync - 2.6.1.0-129 &lt;/P&gt;&lt;P&gt;I went ahead manually updated the components version by running 'hdp-select set all 2.6.2.0-205', then restarted Ranger service, not it's working.  As I expected, something went wrong during the upgrade which is still a mystery.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 03:00:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216591#M69197</guid>
      <dc:creator>dsun</dc:creator>
      <dc:date>2017-10-09T03:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216592#M69198</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/14600/dsun.html"&gt;@dsun&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think nothing is wrong with the upgrade please  run these 2 statements and it should resolve the problem&lt;/P&gt;&lt;PRE&gt;grant all privileges on *.* to 'rangerdba'@'scregionm1.field.hortonworks.com' identified by '{ranger_password}';
grant all privileges on *.* to 'rangerdba'@'localhost';&lt;/PRE&gt;&lt;P&gt;Please revert&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:13:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216592#M69198</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-09T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Admin Not Starting After Ambari Upgrade</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216593#M69199</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;, all privileges were granted to rangerdba properly as you can see from my original post.  It's related to the upgrade, as Ambari is using the mysql-jdbc-driver under /usr/hdp/2.6.2.0-205/ranger-admin/ews/lib/ while everything else was running the 2.6.1 bits for some reason.  The upgrade is stuck on some hosts, and I need to figure out why which is another issue I'm trying to resolve.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:39:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Admin-Not-Starting-After-Ambari-Upgrade/m-p/216593#M69199</guid>
      <dc:creator>dsun</dc:creator>
      <dc:date>2017-10-09T20:39:33Z</dc:date>
    </item>
  </channel>
</rss>

