<?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: NN / HS2 /HMaster not starting after Ambari upgrade : &amp;quot;Ambari admin username and password are blank&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112854#M75673</link>
    <description>&lt;P&gt;To me it looks like in the Ranger admin config your &lt;/P&gt;&lt;PRE&gt;ambari_ranger_admin&lt;/PRE&gt;&lt;P&gt;and &lt;/P&gt;&lt;PRE&gt;ambari_ranger_password&lt;/PRE&gt;&lt;P&gt;are empty. Could you please check if they exists and are not blank?&lt;/P&gt;&lt;P&gt;Please note, that the ambari_ranger_admin is different from the Ranger admin_user. But both are defined in the Ranger configuration in Ambari.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Apr 2016 02:49:39 GMT</pubDate>
    <dc:creator>hkropp</dc:creator>
    <dc:date>2016-04-23T02:49:39Z</dc:date>
    <item>
      <title>NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112851#M75670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;after upgrading Ambari from 2.0.1 to 2.1.2.1 on HDP2.2.4 the services with enabled Ranger plugins are not starting.&lt;/P&gt;&lt;P&gt;Error message is:&lt;/P&gt;&lt;PRE&gt;2016-04-22 17:23:39,688 - HTTP Code: 401
2016-04-22 17:23:39,688 - HTTP Data: {"statusCode":401,"msgDesc":"Authentication Failed"}
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 317, in &amp;lt;module&amp;gt;
    NameNode().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 216, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 484, in restart
    self.start(env)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 82, in start
    namenode(action="start", rolling_restart=rolling_restart, env=env)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 50, in namenode
    setup_ranger_hdfs(rolling_upgrade = rolling_restart)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/setup_ranger_hdfs.py", line 51, in setup_ranger_hdfs
    hdp_version_override = hdp_version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/setup_ranger_plugin.py", line 73, in setup_ranger_plugin
    policy_user)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/ranger_functions.py", line 108, in create_ranger_repository
    raise Fail('Ambari admin username and password are blank ') 

resource_management.core.exceptions.Fail: Ambari admin username and password are blank&lt;/PRE&gt;&lt;P&gt;If I disable the Ranger-plugin the services are starting up, but enabling the plugin results in the same error at service restart.
Before the Ambari upgrade the services were running incl. Ranger-plugin enabled.&lt;/P&gt;&lt;P&gt;What happened here?!?!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 22:32:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112851#M75670</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-04-22T22:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112852#M75671</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt;&lt;P&gt;Please refer &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/10015/namenode-unable-to-start-ranger-issue-in-namenode.html" target="_blank"&gt;https://community.hortonworks.com/questions/10015/namenode-unable-to-start-ranger-issue-in-namenode.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/14329/hiveserver2-wont-start-after-changing-rangers-admi.html" target="_blank"&gt;https://community.hortonworks.com/questions/14329/hiveserver2-wont-start-after-changing-rangers-admi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 22:36:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112852#M75671</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-22T22:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112853#M75672</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; , thanks for the URLs, they are quite interesting.&lt;/P&gt;&lt;P&gt;Unfortunately my error message is nothing with JSON decode, but &lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.Fail:Ambari admin username and password are blank&lt;/PRE&gt;&lt;P&gt;I update all the admin passwords to be the same, for sure, but the problem remains.&lt;/P&gt;&lt;P&gt;I updated the following (Ambari 2.1.2.1) properties:&lt;/P&gt;&lt;P&gt;Ambari =&amp;gt; Ranger =&amp;gt; Config: Ranger Admin user's password for Ambari&lt;/P&gt;&lt;P&gt;Ambari =&amp;gt; Ranger =&amp;gt; Config: admin_password&lt;/P&gt;&lt;P&gt;Ranger WebUI =&amp;gt; password of user admin&lt;/P&gt;&lt;P&gt;What I don't understand is the error message, which properties exactly shall be blank ?!?!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 02:00:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112853#M75672</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-04-23T02:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112854#M75673</link>
      <description>&lt;P&gt;To me it looks like in the Ranger admin config your &lt;/P&gt;&lt;PRE&gt;ambari_ranger_admin&lt;/PRE&gt;&lt;P&gt;and &lt;/P&gt;&lt;PRE&gt;ambari_ranger_password&lt;/PRE&gt;&lt;P&gt;are empty. Could you please check if they exists and are not blank?&lt;/P&gt;&lt;P&gt;Please note, that the ambari_ranger_admin is different from the Ranger admin_user. But both are defined in the Ranger configuration in Ambari.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 02:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112854#M75673</guid>
      <dc:creator>hkropp</dc:creator>
      <dc:date>2016-04-23T02:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112855#M75674</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; - Thank you for your reply, can you please check answer given by &lt;A rel="user" href="https://community.cloudera.com/users/174/hkropp.html" nodeid="174"&gt;@hkropp&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 14:45:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112855#M75674</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-23T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112856#M75675</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1198/koenigbodensee.html" nodeid="1198"&gt;@Gerd Koenig&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2016 14:45:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112856#M75675</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-23T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112857#M75676</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/174/hkropp.html" nodeid="174" target="_blank"&gt;@hkropp&lt;/A&gt; , thanks for this hint.&lt;/P&gt;&lt;P&gt;I cross-checked with another cluster (same HDP-, same Ambari version) where Ranger is working as expected. The above mentioned properties are missing in both. I checked &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_Ranger_Install_Guide/content/updating_ranger_admin_passwords.html" rel="nofollow noopener noreferrer" target="_blank"&gt;this doc&lt;/A&gt; to verify which user settings belongs to whom (I have to admit, it is a bit confusing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;The properties in Ambari - Ranger - Config looks like&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3632-ranger-admin-user-settings-ambari.png" style="width: 330px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23195iFD536B0397F75215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3632-ranger-admin-user-settings-ambari.png" alt="3632-ranger-admin-user-settings-ambari.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Therefore the users and password are in place (this config looks the same in another cluster where Ranger-plugins are working). The only thing I noticed is, that in Ranger-Web-Admin the user 'amb_ranger_admin' was missing.&lt;/P&gt;&lt;P&gt;I created that user as 'new user' in Ranger Web UI with the same password as in Ambari.&lt;/P&gt;&lt;P&gt;Unfortunately that didn't solve the problem, restarting HDFS/Hive/HBase still results in the same error message&lt;/P&gt;&lt;P&gt;...kind of guess-less right now. Maybe I will drop service Ranger and re-install it, since the cluster is not yet in "real use"&lt;/P&gt;&lt;P&gt;Any further hints..?!?!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:12:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112857#M75676</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2019-08-19T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112858#M75677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;just as a "cleanup" of this thread, at the end I didn't figure out what was the real error, but after re-installing Ranger (incl. dropping db 'ranger') now it works.&lt;/P&gt;&lt;P&gt;Sorry, not really a solution, but I just need a working env. asap &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 23:02:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112858#M75677</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-04-24T23:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: NN / HS2 /HMaster not starting after Ambari upgrade : "Ambari admin username and password are blank"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112859#M75678</link>
      <description>&lt;P&gt;A few days ago, I happened to run into this issue myself.  The root cause is, when installing Ranger, in the "External URL" property, the administrator entered "http://hostname.example.com:6080/", instead of the expected "http://hostname.example.com:6080" (WITHOUT the trailing slash character).  Even though the Ranger installation would go through, Ranger's Usersync would log errors in /var/log/ranger/usersync/usersync.log due to this extraneous character.  Also, any attempt to enable any of Ranger's plugins would fail, with the error message "Ambari admin username and password are blank", because Ranger is indeed missing many users, including the important one amb_ranger_admin.  To fix this, just edit this property and remove any character after port 6080, and everything will start working.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 14:08:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NN-HS2-HMaster-not-starting-after-Ambari-upgrade-quot-Ambari/m-p/112859#M75678</guid>
      <dc:creator>william_lu1</dc:creator>
      <dc:date>2017-11-14T14:08:38Z</dc:date>
    </item>
  </channel>
</rss>

