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.

Ambari - problem with services restart, error 500

Highlighted

Ambari - problem with services restart, error 500

Expert Contributor

Dear,

Im running HDP 2.4 default install for a few weeks, all worked fine and I was able to restart services via ambari. Last week I tried to restart the service (changes of the configuration parameters) and I got error listed below.

Error

500 status code received on POST method for API: /api/v1/clusters/spice6/requests

<strong>Error message: </strong>Server Error

Please find attached the full log from the ambari-server,ambari-error-log.txt

Thank you

5 REPLIES 5

Re: Ambari - problem with services restart, error 500

@John Smith

Can you try below steps and let me know if that works -

hdp-select set all <hdp-version-you-are-running> [ for eg. hdp-select set all 2.3.2.0-2950 ]

From Ambari start all services

Login to ambari host Run the following ambari-server set-current --cluster-name=<Cluster-Name> --version-display-name=<HDP-Version>

For Eg.

ambari-server set-current --cluster-name=MRPGPRODCLUSTER --version-display-name=HDP-2.3.2.0

(You will be prompted to login)

Try login and try to restart services.

Re: Ambari - problem with services restart, error 500

Expert Contributor

Please find the results:

root@ip-1:/# ambari-server set-current --cluster-name=testcluster6 --version-display-name=HDP-2.4.2.0-258

Using python /usr/bin/python Setting current version... Enter Ambari Admin login: admin Enter Ambari Admin password: ERROR: Exiting with exit code 1. REASON: Error during setting current version. Http status code - 500. { "status" : 500, "message" : "org.apache.ambari.server.controller.spi.SystemException: Finalization failed. More details: \nSTDOUT: Begin finalizing the upgrade of cluster testcluster6 to version 2.4.2.0-258\n\nSTDERR: The cluster stack version state CURRENT is not allowed to transition directly into CURRENT" } root@ip-1:/#

Re: Ambari - problem with services restart, error 500

Super Guru

Re: Ambari - problem with services restart, error 500

@John Smith

Can you pass me the output of " $hdp-select " command

Re: Ambari - problem with services restart, error 500

Expert Contributor

hdp-select accumulo-client - None accumulo-gc - None accumulo-master - None accumulo-monitor - None accumulo-tablet - None accumulo-tracer - None atlas-server - None falcon-client - 2.4.2.0-258 falcon-server - 2.4.2.0-258 flume-server - None hadoop-client - 2.4.2.0-258 hadoop-hdfs-datanode - 2.4.2.0-258 hadoop-hdfs-journalnode - 2.4.2.0-258 hadoop-hdfs-namenode - 2.4.2.0-258 hadoop-hdfs-nfs3 - 2.4.2.0-258 hadoop-hdfs-portmap - 2.4.2.0-258 hadoop-hdfs-secondarynamenode - 2.4.2.0-258 hadoop-httpfs - None hadoop-mapreduce-historyserver - 2.4.2.0-258 hadoop-yarn-nodemanager - 2.4.2.0-258 hadoop-yarn-resourcemanager - 2.4.2.0-258 hadoop-yarn-timelineserver - 2.4.2.0-258 hbase-client - 2.4.2.0-258 hbase-master - 2.4.2.0-258 hbase-regionserver - 2.4.2.0-258 hive-metastore - 2.4.2.0-258 hive-server2 - 2.4.2.0-258 hive-webhcat - 2.4.2.0-258 kafka-broker - None knox-server - None livy-server - None mahout-client - None oozie-client - 2.4.2.0-258 oozie-server - 2.4.2.0-258 phoenix-client - None phoenix-server - None ranger-admin - None ranger-kms - None ranger-usersync - None slider-client - None spark-client - 2.4.2.0-258 spark-historyserver - 2.4.2.0-258 spark-thriftserver - 2.4.2.0-258 sqoop-client - None sqoop-server - None storm-client - None storm-nimbus - None storm-slider-client - None storm-supervisor - None zeppelin-server - None zookeeper-client - 2.4.2.0-258 zookeeper-server - 2.4.2.0-258

Don't have an account?
Coming from Hortonworks? Activate your account here