<?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: HDP Cluster failed starting after high availability installation in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143241#M105830</link>
    <description>&lt;P&gt;please double check the Grafana password &lt;A rel="user" href="https://community.cloudera.com/users/15282/skestepe.html" nodeid="15282" target="_blank"&gt;@Sedat Kestepe&lt;/A&gt; looks like you're not providing username and password in your API call. You can find it in the configs section of Ambari Metrics Service&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13331-untitled.png" style="width: 1328px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21647i22FCA0DEE540B0DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13331-untitled.png" alt="13331-untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Fail: Ambari Metrics Grafana data source creation failed. POST request status: 401 Unauthorized {"message":"Invalid username or password"}&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Aug 2019 08:05:38 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2019-08-19T08:05:38Z</dc:date>
    <item>
      <title>HDP Cluster failed starting after high availability installation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143240#M105829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Today I added high availability to my 4 vm servers cluster.&lt;/P&gt;&lt;P&gt;After adding high availability for name node Grafana failed to start.&lt;/P&gt;&lt;P&gt;Same repeated when for adding HA to resource manager.&lt;/P&gt;&lt;P&gt;I started failed services one by one after both occurrences.&lt;/P&gt;&lt;P&gt;After this I wanted to test cluster's health with HA feature and stopped all services, started all services.&lt;/P&gt;&lt;P&gt;In addition to failing Grafana, all of the services have alerts now.&lt;/P&gt;&lt;P&gt;My cluster information:&lt;/P&gt;&lt;P&gt;Ambari 2.4.2&lt;/P&gt;&lt;P&gt;HDP 2.5.3&lt;/P&gt;&lt;P&gt;CentOS 7.3.1611&lt;/P&gt;&lt;P&gt;Grafana start errors:&lt;/P&gt;&lt;P&gt;stderr:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py", line 69, in &amp;lt;module&amp;gt;
    AmsGrafana().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py", line 50, in start
    create_ams_datasource()
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana_util.py", line 261, in create_ams_datasource
    (response.status, response.reason, data))
resource_management.core.exceptions.Fail: Ambari Metrics Grafana data source creation failed. POST request status: 401 Unauthorized 
{"message":"Invalid username or password"}&lt;/PRE&gt;&lt;P&gt;stdout:&lt;/P&gt;&lt;PRE&gt;2017-03-07 18:38:36,664 - Execute['/usr/sbin/ambari-metrics-grafana start'] {'not_if': "ambari-sudo.sh su ams -l -s /bin/bash -c 'test -f /var/run/ambari-metrics-grafana/grafana-server.pid &amp;amp;&amp;amp; ps -p `cat /var/run/ambari-metrics-grafana/grafana-server.pid`'", 'user': 'ams'}
2017-03-07 18:38:37,924 - Checking if AMS Grafana datasource already exists
2017-03-07 18:38:37,925 - Connecting (GET) to bigdev1:3000/api/datasources
2017-03-07 18:38:38,006 - Http response: 401 Unauthorized
2017-03-07 18:38:38,006 - Error checking for Ambari Metrics Grafana datasource. Will attempt to create.
2017-03-07 18:38:38,006 - Generating datasource:

{
  "name": "AMBARI_METRICS",
  "type": "ambarimetrics",
  "access": "proxy",
  "url": "http://bigdev3:6188",
  "password": "",
  "user": "",
  "database": "",
  "basicAuth": false,
  "basicAuthUser": "",
  "basicAuthPassword": "",
  "withCredentials": false,
  "isDefault": true,
  "jsonData": {}
}
2017-03-07 18:38:38,007 - Connecting (POST) to bigdev1:3000/api/datasources
2017-03-07 18:38:38,101 - Http response: 401 Unauthorized
2017-03-07 18:38:48,111 - Connection to Grafana failed. Next retry in 10 seconds.
2017-03-07 18:38:48,112 - Connecting (POST) to bigdev1:3000/api/datasources
2017-03-07 18:38:48,176 - Http response: 401 Unauthorized&lt;/PRE&gt;&lt;P&gt;Does anybody know the underlying reason of it?&lt;/P&gt;&lt;P&gt;Any comments appreciated...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 00:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143240#M105829</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2017-03-08T00:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: HDP Cluster failed starting after high availability installation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143241#M105830</link>
      <description>&lt;P&gt;please double check the Grafana password &lt;A rel="user" href="https://community.cloudera.com/users/15282/skestepe.html" nodeid="15282" target="_blank"&gt;@Sedat Kestepe&lt;/A&gt; looks like you're not providing username and password in your API call. You can find it in the configs section of Ambari Metrics Service&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13331-untitled.png" style="width: 1328px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21647i22FCA0DEE540B0DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13331-untitled.png" alt="13331-untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Fail: Ambari Metrics Grafana data source creation failed. POST request status: 401 Unauthorized {"message":"Invalid username or password"}&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:05:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143241#M105830</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2019-08-19T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: HDP Cluster failed starting after high availability installation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143242#M105831</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;Although I remember that I set all required passwords during the installation, I did set a password for Grafana. Now I can stop and start all services.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:15:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDP-Cluster-failed-starting-after-high-availability/m-p/143242#M105831</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2017-03-08T15:15:14Z</dc:date>
    </item>
  </channel>
</rss>

