Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Uninstall Knox and installing again

avatar
Rising Star

Hi Guys,

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.

Regards,

Hammad Ali

1 ACCEPTED SOLUTION

avatar

You can remove it from the PostgresDB by runnign below from Ambari node:

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');

View solution in original post

11 REPLIES 11

avatar
Rising Star

@Ali Bajwa 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.

avatar
Master Mentor

@Hammad Ali FYI ..Deletion is combination of both actions.