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.

500 status code received on POST method while installing cluster

500 status code received on POST method while installing cluster

New Contributor

Hi i got this kind of message:

Error message: Error occured during stack advisor command invocation: File '/var/run/ambari-server/stack-recommendations/8/component-layout.json' does not exist

on Assign master step. Some answers i found on this forum suggest to set '777' permission on /var/run/ambari-server recursively. But still no luck.

3 REPLIES 3

Re: 500 status code received on POST method while installing cluster

Super Mentor

@Irfan Wahyudin

Are you running Ambari As "Non Root" user?

Can you please try changing the PATH for those 3 properties mentioned in the "/etc/ambari-server/conf/ambari.properties" file.

And then restart Ambari Server. By default these paths will be inside "/var/run" which is basically a tmpfs mounted path so please move it sto some other directory like following:

pid.dir=/var/ambari-server
bootstrap.dir=/var/ambari-server/bootstrap
recommendations.dir=/var/ambari-server/stack-recommendations

You can find more detailed explaination of such issue here: https://community.hortonworks.com/comments/174349/view.html

.

Re: 500 status code received on POST method while installing cluster

New Contributor

Great, now it works. Thanks for your help.

Re: 500 status code received on POST method while installing cluster

Super Mentor

@Irfan Wahyudin

Good to know that it resolved your issue. Can you also mark this HCC thread as answered by clicking on "Accept" link on the correct answer, That way it will help other HCC users to quickly find the answers.


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