incubator-ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Wagle <swa...@hortonworks.com>
Subject Re: Some Ambari questions
Date Mon, 01 Apr 2013 17:15:58 GMT
Hi Ximo,

The call to create a cluster should look like,

curl -i -X POST -d '{"Clusters": {"version" : "HDP-1.2.0"}}'
http://localhost:8080/api/v1/clusters/c1

The stack version is defined under
ambari-server/src/main/resources/stacks/HDP/...

-Sid

On Mon, Apr 1, 2013 at 3:54 AM, JOAQUIN GUANTER GONZALBEZ <ximo@tid.es>wrote:

>  Many thanks for the pointers, Sid. I have started looking at the
> documentation and I have been quite successful in calling the GET APIs. I
> am having trouble locating the JSON payload some of the calls require,
> though.
>
>
>
> For example, the POST call to /cluster/{clusterId}/configurations has a
> JavaDoc comment with an example JSON payload, but when calling POST to
> /cluster/{clusterId} I get a 400 error code with the message “Stack
> information should be provided when creating a cluster”.
>
>
>
> I’ve tried to follow the code to see where the expected body is defined,
> but I can’t seem to find the right place. Can you point me towards it?
>
>
>
> Thanks!
>
> Ximo.
>
>
>
> *De:* Siddharth Wagle [mailto:swagle@hortonworks.com]
> *Enviado el:* jueves, 21 de marzo de 2013 17:44
> *Para:* ambari-user@incubator.apache.org
> *Asunto:* Re: Some Ambari questions
>
>
>
> Hi Ximo,
>
> Here is a link to the Ambari wiki that should give you an idea of the
> design,
> https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Design
>
> Currently the API docs are only GET calls. We are working on getting the
> documentation up-to-date.
> However, all of the calls made by the web UI are supported and if you want
> to get a head start before the documentation is ready, you can actually
> mimic all the calls made by the web UI and create a running cluster.
>
> Best Regards,
> Sid
>
> On Thu, Mar 21, 2013 at 9:32 AM, JOAQUIN GUANTER GONZALBEZ <ximo@tid.es>
> wrote:
>
>  Hello,
>
>
>
> I am evaluating Ambari for a BigData platform my team is building, and it
> sure looks like there’s a bunch of sweet stuff in this project J I am
> having some problem finding documentation for the project, so maybe some of
> my questions are answered somewhere and I just can’t find the correct
> resource. Anyway, here’s the stuff I still don’t understand about Ambari:
>
>
>
> -          What is the Ambari agent? Is there any document that describes
> the general architecture of Ambari?
>
> -          How does the Web component communicate with the Ambari Server?
>
> -          Is the list in
> https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.mdthe complete
list of supported REST API calls?
>
>
>
> Ambari looks like a really interesting project, but in my scenario the UI
> part is not important since my team is looking for programmatic ways of
> deploying Hadoop clusters. Does Ambari offer a programmatic surface to
> manage clusters (set up Federated HDFS, add users, etc.)?
>
>
>
> Thanks!
>
> Ximo.
>
>
>  ------------------------------
>
>
> Este mensaje se dirige exclusivamente a su destinatario. Puede consultar
> nuestra política de envío y recepción de correo electrónico en el enlace
> situado más abajo.
> This message is intended exclusively for its addressee. We only send and
> receive email on the basis of the terms set out at:
> http://www.tid.es/ES/PAGINAS/disclaimer.aspx
>
>
>
> ------------------------------
>
> Este mensaje se dirige exclusivamente a su destinatario. Puede consultar
> nuestra política de envío y recepción de correo electrónico en el enlace
> situado más abajo.
> This message is intended exclusively for its addressee. We only send and
> receive email on the basis of the terms set out at:
> http://www.tid.es/ES/PAGINAS/disclaimer.aspx
>

Mime
View raw message