<?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: Uninstall Knox and installing again in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129232#M18275</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt; For future referece &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  You can replace zepplein with KNOX&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/577/on-ambari-211-centosrhel-7-removed-service-keeps-r.html"&gt;https://community.hortonworks.com/questions/577/on-ambari-211-centosrhel-7-removed-service-keeps-r.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Feb 2016 19:40:03 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-07T19:40:03Z</dc:date>
    <item>
      <title>Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129227#M18270</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;We setup a new HDP cluster with Ambari version 2.1, with HDP version 2.3.4 and Knox version 0.6, after successful installation of knox for the first time, we tried to configure it with LDAP and tried to restart the knox gateway service, which didn't work and it seemed to be a bug which will be resolved in the next version of Ambari, then we thought to Delete Knox service via REST API and install it once again with Ambari, which is not working now as at the end of setup from Ambari we only get and error message "server error" from Ambari. Any ideas or suggestions that what should be the next step? Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hammad Ali&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:32:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129227#M18270</guid>
      <dc:creator>hammad_ali</dc:creator>
      <dc:date>2026-04-21T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129228#M18271</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt;&lt;P&gt;You can delete knox through rest api&lt;/P&gt;&lt;P&gt;Run this in Ambari host&lt;/P&gt;&lt;P&gt;curl --user admin:admin -i  -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://`hostname" target="_blank"&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/clustername/services/KNOX&lt;/P&gt;&lt;P&gt;Restart ambari server and see whats in the logs.&lt;/P&gt;&lt;P&gt;Clear broweser cache and try to login &lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 18:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129228#M18271</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-06T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129229#M18272</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt; Ambari 2.2 is out, why not go with that?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 20:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129229#M18272</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-06T20:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129230#M18273</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; Thanks for your answer, I deleted the Knox service with the above mentioned command, which i tried many time before too, when i checked on ambari the service is gone, then I restarted the ambari server and I found the this exception in the logs:&lt;/P&gt;&lt;P&gt;Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "clusterservices_pkey" Detail: Key (service_name, cluster_id)=(KNOX, 2) already exists. &lt;/P&gt;&lt;P&gt;Moreover I can see the knox service with yellow sign once again in the ambari, my assumption is that the service is not being deleted from ambari database properly due to which I am also unable to install it once again.&lt;/P&gt;&lt;P&gt;Any feedback or advice, what is happening actually and how to proceed (we might need to delete it from database)?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Hammad Ali&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 18:41:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129230#M18273</guid>
      <dc:creator>hammad_ali</dc:creator>
      <dc:date>2016-02-07T18:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129231#M18274</link>
      <description>&lt;P&gt;You can remove it from the PostgresDB by runnign below from Ambari node:&lt;/P&gt;&lt;PRE&gt;su postgres
psql
\c ambari

DELETE FROM ambari.hostcomponentstate WHERE service_name IN ('KNOX');
DELETE FROM ambari.hostcomponentdesiredstate WHERE service_name IN ('KNOX');
DELETE FROM ambari.servicecomponentdesiredstate WHERE service_name IN ('KNOX');
DELETE FROM ambari.servicedesiredstate WHERE service_name IN ('KNOX');
DELETE FROM ambari.clusterservices WHERE service_name IN ('KNOX');
&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2016 18:57:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129231#M18274</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2016-02-07T18:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129232#M18275</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt; For future referece &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  You can replace zepplein with KNOX&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/577/on-ambari-211-centosrhel-7-removed-service-keeps-r.html"&gt;https://community.hortonworks.com/questions/577/on-ambari-211-centosrhel-7-removed-service-keeps-r.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2016 19:40:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129232#M18275</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-07T19:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129233#M18276</link>
      <description>&lt;P&gt;HDP 2.3.4 Needs Ambari 2.2.  You cannot use Ambari 2.1 &lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:15:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129233#M18276</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-02-09T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129234#M18277</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@Ancil McBarnett&lt;/A&gt; See this &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_determine_stack_compatibility.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_determine_stack_compatibility.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use HDP 2.3 with Ambari 2.1&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:18:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129234#M18277</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-09T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129235#M18278</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt; Thanks for this, deletion of service from Ambari database worked for me, after that i restarted Ambari and i was able to install new fresh version of Knox again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 15:46:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129235#M18278</guid>
      <dc:creator>hammad_ali</dc:creator>
      <dc:date>2016-02-09T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129236#M18279</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt; FYI ..Deletion is combination of both actions. &lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 23:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129236#M18279</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-14T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129237#M18280</link>
      <description>&lt;P&gt;Adding step for 1 for future users &lt;/P&gt;&lt;P&gt;Step 1) curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://`hostname "&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/clustername/services/KNOX&lt;/P&gt;&lt;P&gt;Step 2) Ali's workaround &lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 23:53:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129237#M18280</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-14T23:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Knox and installing again</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129238#M18281</link>
      <description>&lt;P&gt;This works 100%&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 07:53:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Uninstall-Knox-and-installing-again/m-p/129238#M18281</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-08-03T07:53:07Z</dc:date>
    </item>
  </channel>
</rss>

