Hi Anisha, It seems the service might not be a part of the stack. Can you provide the exact API call? Also, what version of stack did you select while installing your cluster?
Note, make sure to append *-H "X-Requested-By:ambari" *with every curl call. Although, this would result in 400 Bad request and that doesn't seem to be the case. Regards, Sid On Wed, Jan 29, 2014 at 4:07 PM, Anisha Agarwal <[email protected]>wrote: > Hi, > > I am trying to add a new service to an existing cluster, and getting a > server error in response. Any ideas on what I need to fix this? I followed > the instructions here : > https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster > > Using this API: > curl -u admin:admin -i -X POST -d > '{"ServiceInfo":{"service_name":"<service_name>"}}' http:// > <ambari-server>:8080/api/v1/clusters/<cluster-name>/services > > I see this error : > <html> > <head> > <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> > <title>Error 500 Server Error</title> > </head> > <body> > <h2>HTTP ERROR: 500</h2> > <p>Problem accessing /api/v1/clusters/c1/services. Reason: > <pre> Server Error</pre></p> > <hr /><i><small>Powered by Jetty://</small></i> > > Attaching a file with the errors I see in the log file. > > Thanks, > Anisha > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
