Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Kartik Mathur
This is the exception that I see - 16 Sep 2016 17:55:12,286 ERROR [qtp-ambari-client-25] AbstractResourceProvider:1024 - Can't determine service state. org.apache.ambari.server.HostNotFoundException: Host not found, cluster=c1, hostname=bluedata-78.bdlocal at

Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Kartik Mathur
ok sure , I am doing a clean test again ,will send it to you sometime today Thanks Kartik On Fri, Sep 16, 2016 at 4:22 PM, Sumit Mohanty wrote: > The steps you have are correct to delete any host. > > > What is the internal server error that you see? > > > If

Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Sumit Mohanty
The steps you have are correct to delete any host. What is the internal server error that you see? If possible, can you export Ambari database after server reports error. You can send the db dump directly to me as Apache server may not deliver the message with attachment or large

Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Kartik Mathur
No api/v1/hosts give me the same error , host not found. Can you suggest how to debug this ? Thanks Kartik On Fri, Sep 16, 2016 at 12:22 PM, Sumit Mohanty wrote: > Can you delete from api/v1/hosts too? > > Get Outlook for iOS > > > > > On Fri,

Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Kartik Mathur
Hi Sumit thanks for replying , I stopped ambari-agent on the host and restarted ambari server now I am getting host not found from UI as well as from the api , however I can still see the host on ambari UI. This is the message from ambari UI 404 status codereceived on DELETE method for API:

Re: Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Sumit Mohanty
?Have you stopped the agent running on the host? If not then it will re-register. After stopping the agent, delete the host from api/v1/hosts/ as well. From: Kartik Mathur Sent: Thursday, September 15, 2016 11:43 PM To:

Unable to delete host from ambari using API (HDP2.4 with Ambari 2.2)

2016-09-16 Thread Kartik Mathur
I have 7 nodes HDP 2.4 with ambari 2.2 cluster - This is the closest document that I am able to find for deleting host using APIs. My host has these services running - 1) Zookeeper_server 2)DATANODE 3)NODEMANAGER 4)RegionServer 5)FLUME 1) I first decommision data and node manager using