<?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: Ambari Metrics Won't Install in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96694#M60014</link>
    <description>&lt;P&gt;What is the solution to this problem? I also encounter it, able to delete and re-install, but fail with same error.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 00:05:19 GMT</pubDate>
    <dc:creator>rxu</dc:creator>
    <dc:date>2016-02-10T00:05:19Z</dc:date>
    <item>
      <title>Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96678#M59998</link>
      <description>&lt;P&gt;On a 6 node cluster, using Ambari 2.1.2/HDP 2.3.2. &lt;/P&gt;&lt;P&gt;Scenario 1: &lt;/P&gt;&lt;P&gt;When installing HDP and it goes to a point where it's installing the services across all nodes, it suddenly fails and it's due to Ambari Metrics/Monitors failing. Full stack trace below from Ambari UI.&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_collector.py", line 131, in &amp;lt;module&amp;gt;
    AmsCollector().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 34, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 395, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Nothing to do&lt;/PRE&gt;&lt;P&gt;Running the same command from the last line of the error yields the same response. There were no Ambari Metrics log generated. Ambari server log didn't any info.&lt;/P&gt;&lt;P&gt;Scenario 2:&lt;/P&gt;&lt;P&gt;I reset ambari-server and cleanup all hosts. Re-run ambari wizard and install all services except for Ambari Metrics. HDP installed successfully. I now added Ambari Metrics back and I'm getting the same error. &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_collector.py", line 131, in &amp;lt;module&amp;gt;
    AmsCollector().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 34, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 395, in install_packages
    Package(name)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
    shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-collector' returned 1. Error: Nothing to do&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:47:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96678#M59998</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96679#M59999</link>
      <description>&lt;P&gt;Can you run the yum install manually and see what happens?&lt;/P&gt;&lt;PRE&gt;yum install ambari-metrics-collector
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:56:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96679#M59999</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-11-05T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96680#M60000</link>
      <description>&lt;PRE&gt;[root@great-wall02 ~]# yum install ambari-metrics-collector

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.spro.net

 * extras: mirrors.sonic.net

 * updates: centos-distro.cavecreek.net

Setting up Install Process

No package ambari-metrics-collector available.

Error: Nothing to do

[root@great-wall02 ~]# rpm -q ambari-metrics-collector

package ambari-metrics-collector is not installed
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:59:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96680#M60000</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96681#M60001</link>
      <description>&lt;P&gt;Tried deleting Ambari Metrics from Ambari throug DELETE REST API and rerunning yum install ambari-metrics-collector. Same output.&lt;/P&gt;&lt;PRE&gt;[root@great-wall02 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  &lt;A href="http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/AMBARI_METRICS" target="_blank"&gt;http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/AMBARI_METRICS&lt;/A&gt;

[root@great-wall02 ~]# yum install ambari-metrics-collector

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.spro.net

 * extras: mirrors.sonic.net

 * updates: mirror.hostduplex.com

Setting up Install Process

No package ambari-metrics-collector available.

Error: Nothing to do
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:02:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96681#M60001</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T13:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96682#M60002</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/112/rgarcia.html" nodeid="112"&gt;@rgarcia@hortonworks.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Can you verify the repo version?&lt;/P&gt;&lt;P&gt;try yum repo list in all the nodes + if you are using repo for correct OS&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:04:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96682#M60002</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-05T13:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96683#M60003</link>
      <description>&lt;P&gt;After removing Ambari Metrics, its got a side effect on Kafka. Kafka shouldn't be having problems after this process since it was running fine prior.&lt;/P&gt;&lt;PRE&gt;[2015-11-04 20:58:47,740] FATAL  (kafka.Kafka$)

java.lang.ClassNotFoundException: org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter

        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:264)

        at kafka.utils.CoreUtils$.createObject(CoreUtils.scala:231)

        at kafka.metrics.KafkaMetricsReporter$$anonfun$startReporters$1.apply(KafkaMetricsReporter.scala:59)

        at kafka.metrics.KafkaMetricsReporter$$anonfun$startReporters$1.apply(KafkaMetricsReporter.scala:58)

        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)

        at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)

        at kafka.metrics.KafkaMetricsReporter$.startReporters(KafkaMetricsReporter.scala:58)

        at kafka.Kafka$.main(Kafka.scala:62)

        at kafka.Kafka.main(Kafka.scala)

[2015-11-04 21:00:51,935] FATAL  (kafka.Kafka$)

java.lang.ClassNotFoundException: org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter

        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:264)

        at kafka.utils.CoreUtils$.createObject(CoreUtils.scala:231)

        at kafka.metrics.KafkaMetricsReporter$$anonfun$startReporters$1.apply(KafkaMetricsReporter.scala:59)

        at kafka.metrics.KafkaMetricsReporter$$anonfun$startReporters$1.apply(KafkaMetricsReporter.scala:58)

        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)

        at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)

        at kafka.metrics.KafkaMetricsReporter$.startReporters(KafkaMetricsReporter.scala:58)

        at kafka.Kafka$.main(Kafka.scala:62)

        at kafka.Kafka.main(Kafka.scala)



&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:06:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96683#M60003</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96684#M60004</link>
      <description>&lt;P&gt;All nodes has the same repo version. I noticed that ambari.repo is gone. Possibly got deleted during host cleanup (python script)? Downloaded the ambari.repo and reinstalling ambari metrics. Stay tuned.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:20:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96684#M60004</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96685#M60005</link>
      <description>&lt;P&gt;Getting this amabri server error now. This came up after clicking deploy (for Ranger, Ranger KMS and Ambari Metrics)&lt;/P&gt;&lt;PRE&gt;Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "clusterservices_pkey"

	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)

	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)

	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)

	at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)

	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)

	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:363)

	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:890)

	... 130 more
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:30:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96685#M60005</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-05T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96686#M60006</link>
      <description>&lt;P&gt;This is what's coming up in Ambari.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="396-untitled-5.png" style="width: 561px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24000iFE695260D696FC64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="396-untitled-5.png" alt="396-untitled-5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6697i8D33C5F12AE51876/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="untitled-5.png" title="untitled-5.png" /&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:52:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96686#M60006</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2019-08-19T12:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96687#M60007</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/310/jeff.html" nodeid="310"&gt;@jeff@hortonworks.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/134/mahadev.html" nodeid="134"&gt;@mahadev@hortonworks.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please see this &lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 20:06:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96687#M60007</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-05T20:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96688#M60008</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/112/rgarcia.html" nodeid="112"&gt;@rgarcia@hortonworks.com&lt;/A&gt;  Please see&lt;A target="_blank" href="http://community.hortonworks.com/questions/2862/ambari-212-ranger-installation-failed-api-delete-a.html#answer-2863"&gt; this&lt;/A&gt;&lt;A target="_blank" href="http://community.hortonworks.com/articles/2878/unable-to-delete-storm-rest-api-service-component.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I have added Jeff &amp;amp; Mahadev in this loop.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 20:23:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96688#M60008</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-05T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96689#M60009</link>
      <description>&lt;P&gt;Followed the recommended AH link from &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj&lt;/A&gt;. See details below.&lt;/P&gt;&lt;P&gt;Logged in to postgresql:&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select * from hostcomponentstate where component_name LIKE '%RANGER%'; id  | cluster_id |  component_name   |   version  | current_stack_id | current_state  | host_id | service_name | upgrade_state | security_state-----+------------+-------------------+--------------+------------------+----------------+---------+--------------+---------------+---------------- 163 |  2 | RANGER_KMS_SERVER | 2.3.2.0-2950 |  4 | INSTALLED  |   5 | RANGER_KMS   | NONE  | UNKNOWN 164 |  2 | RANGER_USERSYNC   | UNKNOWN  |  4 | INSTALL_FAILED |   4 | RANGER   | NONE  | UNKNOWN 165 |  2 | RANGER_ADMIN  | UNKNOWN  |  4 | INSTALL_FAILED |   4 | RANGER   | NONE  | UNKNOWN(3 rows)ambari=&amp;gt; select * from hostcomponentdesiredstate where component_name LIKE '%RANGER%'; cluster_id | component_name | desired_stack_id | desired_state | host_id | service_name | admin_state | maintenance_state | security_state | restart_required------------+----------------+------------------+---------------+---------+--------------+-------------+-------------------+----------------+------------------(0 rows)ambari=&amp;gt; select * from servicecomponentdesiredstate where component_name LIKE '%RANGER%';  component_name   | cluster_id | desired_stack_id | desired_state | service_name-------------------+------------+------------------+---------------+-------------- RANGER_KMS_SERVER |  2 |  4 | INSTALLED   | RANGER_KMS RANGER_ADMIN  |  2 |  4 | INSTALLED   | RANGER RANGER_USERSYNC   |  2 |  4 | INSTALLED   | RANGER
(3 rows) &lt;/PRE&gt;&lt;P&gt;Delete in tables:&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; delete from hostcomponentstate where component_name LIKE '%RANGER%';DELETE 3ambari=&amp;gt; delete from servicecomponentdesiredstate where component_name LIKE '%RANGER%';
DELETE 3 &lt;/PRE&gt;&lt;P&gt;Then delete Services: &lt;/P&gt;&lt;PRE&gt;[root@great-wall02 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  &lt;A href="http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/RANGER" target="_blank"&gt;http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/RANGER&lt;/A&gt;
[root@great-wall02 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  &lt;A href="http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/RANGER_KMS" target="_blank"&gt;http://great-wall01.cloud.hortonworks.com:8080/api/v1/clusters/smesecurity/services/RANGER_KMS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Deleted the databases for ranger: 'ranger', 'ranger_kms', 'ranger_audit'.&lt;/P&gt;&lt;P&gt;Tried reinstalling Ranger only but now getting the error below. Looks like there are some metadata in Ambari DB still that needs to be cleaned up. What ambari tables should I clean up?&lt;/P&gt;&lt;PRE&gt;05 Nov 2015 10:51:25,540 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-hbase-security-site
05 Nov 2015 10:51:25,541 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-hbase-site
05 Nov 2015 10:51:25,541 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-log4j
05 Nov 2015 10:51:25,542 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-site
05 Nov 2015 10:51:25,542 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-hbase-policy
05 Nov 2015 10:51:25,543 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-hbase-log4j
05 Nov 2015 10:51:25,543 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-env
05 Nov 2015 10:51:25,544 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ams-hbase-env
05 Nov 2015 10:51:25,544 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=kms-properties
05 Nov 2015 10:51:25,545 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ranger-kms-policymgr-ssl
05 Nov 2015 10:51:25,545 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=kms-log4j
05 Nov 2015 10:51:25,545 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ranger-kms-security
05 Nov 2015 10:51:25,546 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ranger-kms-audit
05 Nov 2015 10:51:25,546 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=dbks-site
05 Nov 2015 10:51:25,546 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=kms-env
05 Nov 2015 10:51:25,547 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=kms-site
05 Nov 2015 10:51:25,547 ERROR [qtp-client-26] ClusterImpl:2016 - Config inconsistency exists: unknown configType=ranger-kms-site&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:57:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96689#M60009</guid>
      <dc:creator>rgarcia</dc:creator>
      <dc:date>2015-11-06T02:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96690#M60010</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/304/sneethiraj.html" nodeid="304"&gt;@sneethiraj@hortonworks.com&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy@hortonworks.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 03:00:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96690#M60010</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T03:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96691#M60011</link>
      <description>&lt;P&gt;I recommend you select from each existing table in ambari, usually there are stale alerts, host configs also exist, you need to purge those as well. Don't just delete hostcomponentstate, hostcomponentdesiredstate, etc, go through all tables in ambari database and look for specific service. Sometimes you're lucky and only need to touch those desiredstate and componentstate tables but sometimes you need to clean up alerts, hostconfigs, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 03:50:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96691#M60011</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-11-06T03:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96692#M60012</link>
      <description>&lt;P&gt;Just got off webex with &lt;A rel="user" href="https://community.cloudera.com/users/112/rgarcia.html" nodeid="112"&gt;@rgarcia@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We were able to remove the failed Ranger/Metrics installation using something like the below:&lt;/P&gt;&lt;PRE&gt;su postgres
psql
\c ambari
DELETE FROM ambari.hostcomponentstate WHERE service_name IN ('RANGER');
DELETE FROM ambari.hostcomponentdesiredstate WHERE service_name IN ('RANGER');
DELETE FROM ambari.servicecomponentdesiredstate WHERE service_name IN ('RANGER');
DELETE FROM ambari.servicedesiredstate WHERE service_name IN ('RANGER');
DELETE FROM ambari.clusterservices WHERE service_name IN ('RANGER');
&lt;/PRE&gt;&lt;P&gt;Then make sure to restart Ambari&lt;/P&gt;&lt;PRE&gt;service ambari-server restart&lt;/PRE&gt;&lt;P&gt;Now re-install Ranger/Ambair metrics&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 10:56:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96692#M60012</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-11-06T10:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96693#M60013</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/310/jeff.html" nodeid="310"&gt;@jeff@hortonworks.com&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/134/mahadev.html" nodeid="134"&gt;@mahadev@hortonworks.com&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/306/bganesan.html" nodeid="306"&gt;@bganesan@hortonworks.com&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@bdurai@hortonworks.com&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/304/sneethiraj.html" nodeid="304"&gt;@sneethiraj@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please see this thread. &lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 19:33:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96693#M60013</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T19:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96694#M60014</link>
      <description>&lt;P&gt;What is the solution to this problem? I also encounter it, able to delete and re-install, but fail with same error.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 00:05:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96694#M60014</guid>
      <dc:creator>rxu</dc:creator>
      <dc:date>2016-02-10T00:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96695#M60015</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/273/rxu.html" nodeid="273"&gt;@rxu&lt;/A&gt; There are couple of things to check..make sure repo files are correct. &lt;/P&gt;&lt;P&gt;Whats the error?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 00:58:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96695#M60015</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T00:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96696#M60016</link>
      <description>&lt;P&gt;Same error. Repo checked, all looks good.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 01:09:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96696#M60016</guid>
      <dc:creator>rxu</dc:creator>
      <dc:date>2016-02-10T01:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Won't Install</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96697#M60017</link>
      <description>&lt;P&gt;@rgarcia why can't you just all together &lt;/P&gt;&lt;P&gt;#drop the database  and then retry if it fails &lt;/P&gt;&lt;P&gt;Then just  yum remove postgresql*  and reinstall yum install postgresql*&lt;/P&gt;&lt;P&gt;That could be much faster though I know the urge to know why is unavoidable&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:00:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Won-t-Install/m-p/96697#M60017</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-02-10T02:00:55Z</dc:date>
    </item>
  </channel>
</rss>

