ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Wagle <>
Subject Re: Error while adding new service to existing cluster
Date Thu, 30 Jan 2014 00:58:13 GMT
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.


On Wed, Jan 29, 2014 at 4:07 PM, Anisha Agarwal <>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 :
>  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

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.

View raw message