Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

i can't start all services

Solved Go to solution
Highlighted

i can't start all services

New Contributor

i can start the service one by one,

but when i use the 'start all' button,the browser shows:

vendor.js:127 PUT http://host:8080/api/v1/clusters/<clusters name>/services? 500 (Internal Server Error)
and the ambari-server.log:
01 Jun 2017 14:41:49,171 ERROR [qtp-ambari-client-84] AbstractResourceProvider:338 - Caught AmbariException when modifying a resource org.apache.ambari.server.AmbariException: Invalid transition for servicecomponenthost, clusterName=<mycluster>, clusterId=2, serviceName=RANGER_KMS, componentName=RANGER_KMS_SERVER, hostname=<myhostname> currentState=INSTALL_FAILED, newDesiredState=STARTED
1 ACCEPTED SOLUTION

Accepted Solutions

Re: i can't start all services

Super Mentor

@white wartih From your previous log snippet shows that the "RANGER_KMS" is also not installed properly hence it is in "INSTALL_FAILED" state.

org.apache.ambari.server.AmbariException: Invalid transition for servicecomponenthost, clusterName=<mycluster>, clusterId=2, serviceName=RANGER_KMS, componentName=RANGER_KMS_SERVER, 
hostname=<myhostname> currentState=INSTALL_FAILED, newDesiredState=STARTED 

From your attached log we see that the "RANGER" service is not installed properly it is currently in "INSTALL_FAILED" state:

org.apache.ambari.server.AmbariException: Invalid transition for servicecomponenthost, clusterName=bb, clusterId=2, serviceName=RANGER, componentName=RANGER_ADMIN, hostname=<myhostname>, currentState=INSTALL_FAILED, newDesiredState=STARTED

We will suggest you to completely remove the "RANGER" and "RANGER_KMS" services first and then try adding them freshly because they are not installed properly. If you face any error/issue during installing these services then please let us know.

Either Using Ambari UI or Using API call as well we can try deleting those services (if that does not work due to some issues then let us know)

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<AMBARi_SERVER_HOST>:8080/api/v1/clusters/<$CLUSTER_NAME>/services/RANGER_KMS

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<AMBARi_SERVER_HOST>:8080/api/v1/clusters/<$CLUSTER_NAME>/services/RANGER

.

3 REPLIES 3

Re: i can't start all services

Super Mentor

@white wartih

Can you pelase share the complete stackTrace of the failure from the ambari-server.log?

Re: i can't start all services

New Contributor

@Jay SenSharma

ambari-serverlog.txt

i restart the ambari-server this morning

thanks for help!

Re: i can't start all services

Super Mentor

@white wartih From your previous log snippet shows that the "RANGER_KMS" is also not installed properly hence it is in "INSTALL_FAILED" state.

org.apache.ambari.server.AmbariException: Invalid transition for servicecomponenthost, clusterName=<mycluster>, clusterId=2, serviceName=RANGER_KMS, componentName=RANGER_KMS_SERVER, 
hostname=<myhostname> currentState=INSTALL_FAILED, newDesiredState=STARTED 

From your attached log we see that the "RANGER" service is not installed properly it is currently in "INSTALL_FAILED" state:

org.apache.ambari.server.AmbariException: Invalid transition for servicecomponenthost, clusterName=bb, clusterId=2, serviceName=RANGER, componentName=RANGER_ADMIN, hostname=<myhostname>, currentState=INSTALL_FAILED, newDesiredState=STARTED

We will suggest you to completely remove the "RANGER" and "RANGER_KMS" services first and then try adding them freshly because they are not installed properly. If you face any error/issue during installing these services then please let us know.

Either Using Ambari UI or Using API call as well we can try deleting those services (if that does not work due to some issues then let us know)

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<AMBARi_SERVER_HOST>:8080/api/v1/clusters/<$CLUSTER_NAME>/services/RANGER_KMS

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<AMBARi_SERVER_HOST>:8080/api/v1/clusters/<$CLUSTER_NAME>/services/RANGER

.