Created 02-06-2016 09:06 AM
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
Created 02-07-2016 10:57 AM
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');
Created 02-09-2016 07:46 AM
@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.
Created 02-14-2016 03:52 PM
@Hammad Ali FYI ..Deletion is combination of both actions.