<?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: Not able to delete 1 Role from Inactive host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41797#M30735</link>
    <description>&lt;P&gt;I was able to find the solution. Below are steps -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Run this command on SCM and retrieve the password-&amp;nbsp;cat /etc/cloudera-scm-server/db.properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;com.cloudera.cmf.db.type=postgresql&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.host=localhost:7432&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.name=scm&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.user=scm&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.password=&lt;STRONG&gt;PASSWORD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Run another command -&amp;nbsp;psql -U scm -p 7432 -h localhost -d scm&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; This will open the interface to run Sql query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Run sql query specific to your needs e.g. delete from configs&amp;nbsp;where role_id = 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 15:04:57 GMT</pubDate>
    <dc:creator>mayankkumar7920</dc:creator>
    <dc:date>2016-06-08T15:04:57Z</dc:date>
    <item>
      <title>Not able to delete 1 Role from Inactive host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41672#M30734</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of our VMs crashed and we are trying to remove it from the Cluster. We have been able to remove all the assigned Roles except 1 i.e. HDFS NFS Gateway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While removing this role, we are getting below mentioned error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Caused by: org.postgresql.util.PSQLException&lt;/STRONG&gt;&lt;SPAN&gt;:ERROR: update or delete on table "roles" violates foreign key constraint "fk_config_role" on table "configs" Detail: Key (role_id)=(110) is still referenced from table "configs".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at &lt;/SPAN&gt;&lt;STRONG&gt;QueryExecutorImpl.java line 2102&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;in org.postgresql.core.v3.QueryExecutorImpl receiveErrorResponse()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly suggest.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:23:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41672#M30734</guid>
      <dc:creator>mayankkumar7920</dc:creator>
      <dc:date>2022-09-16T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete 1 Role from Inactive host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41797#M30735</link>
      <description>&lt;P&gt;I was able to find the solution. Below are steps -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Run this command on SCM and retrieve the password-&amp;nbsp;cat /etc/cloudera-scm-server/db.properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;com.cloudera.cmf.db.type=postgresql&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.host=localhost:7432&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.name=scm&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.user=scm&lt;BR /&gt;&amp;nbsp; &amp;nbsp; com.cloudera.cmf.db.password=&lt;STRONG&gt;PASSWORD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Run another command -&amp;nbsp;psql -U scm -p 7432 -h localhost -d scm&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; This will open the interface to run Sql query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Run sql query specific to your needs e.g. delete from configs&amp;nbsp;where role_id = 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:04:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41797#M30735</guid>
      <dc:creator>mayankkumar7920</dc:creator>
      <dc:date>2016-06-08T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete 1 Role from Inactive host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41798#M30736</link>
      <description>&lt;P&gt;Thank you for sharing the solution. Hopefully it will assist others as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 15:29:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-delete-1-Role-from-Inactive-host/m-p/41798#M30736</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2016-06-08T15:29:48Z</dc:date>
    </item>
  </channel>
</rss>

