Sumit Mohanty created AMBARI-16080:
--------------------------------------

             Summary: Delete Service: Deleting Hive fails with 500 error
                 Key: AMBARI-16080
                 URL: https://issues.apache.org/jira/browse/AMBARI-16080
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.4.0
            Reporter: Sumit Mohanty
            Assignee: Sumit Mohanty
             Fix For: 2.4.0


*STR:*
# Stop all components of Hive service
# Delete service from UI

API fails with message
{code}
{
  "status" : 500,
  "message" : "org.apache.ambari.server.controller.spi.SystemException: An 
internal system exception occurred: Could not delete service from cluster, 
clusterName=c1, serviceName=HIVE"
}
{code}
{code:title=ambari-server.log}
23 Apr 2016 02:14:38,714 ERROR [qtp-ambari-client-100] 
AbstractResourceProvider:343 - Caught AmbariException when modifying a resource
org.apache.ambari.server.AmbariException: Could not delete service from 
cluster, clusterName=c1, serviceName=HIVE
        at 
org.apache.ambari.server.state.cluster.ClusterImpl.deleteService(ClusterImpl.java:2207)
        at 
org.apache.ambari.server.controller.internal.ServiceResourceProvider.deleteServices(ServiceResourceProvider.java:810)
        at 
org.apache.ambari.server.controller.internal.ServiceResourceProvider$3.invoke(ServiceResourceProvider.java:244)
        at 
org.apache.ambari.server.controller.internal.ServiceResourceProvider$3.invoke(ServiceResourceProvider.java:241)
        at 
org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455)
        at 
org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336)
        at 
org.apache.ambari.server.controller.internal.ServiceResourceProvider.deleteResourcesAuthorized(ServiceResourceProvider.java:241)
        at 
org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.deleteResources(AbstractAuthorizedResourceProvider.java:335)
        at 
org.apache.ambari.server.controller.internal.ClusterControllerImpl.deleteResources(ClusterControllerImpl.java:339)
        at 
org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.delete(PersistenceManagerImpl.java:132)
        at 
org.apache.ambari.server.api.handlers.DeleteHandler.persist(DeleteHandler.java:49)
        at 
org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:73)
        at 
org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145)
        at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:119)
        at 
org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:83)
        at 
org.apache.ambari.server.api.services.ServiceService.deleteService(ServiceService.java:178)

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to