Return-Path: X-Original-To: apmail-incubator-ambari-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D33DFDF0 for ; Mon, 1 Apr 2013 17:16:29 +0000 (UTC) Received: (qmail 80177 invoked by uid 500); 1 Apr 2013 17:16:28 -0000 Delivered-To: apmail-incubator-ambari-user-archive@incubator.apache.org Received: (qmail 80068 invoked by uid 500); 1 Apr 2013 17:16:28 -0000 Mailing-List: contact ambari-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-user@incubator.apache.org Delivered-To: mailing list ambari-user@incubator.apache.org Received: (qmail 80042 invoked by uid 99); 1 Apr 2013 17:16:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 17:16:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of swagle@hortonworks.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 17:16:20 +0000 Received: by mail-vc0-f178.google.com with SMTP id hz11so2586527vcb.9 for ; Mon, 01 Apr 2013 10:15:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=v1oWjUDxv7eUZgcP4jKTgLpQJIJrm2JqiereSsyTDLA=; b=PdQSXsfBJtimNRfQvTxeQHI18cAZ9mGj3ZHS6VF+9uMYQe6B2T4/XZKFTuNe5x4bNU 5gRA6hQP4wHIe+YT+2c6dq0UIgBANw2pjybvXuuGB+IP8/Oihoh7FR4xs+ACYuMmlJHL lhVCgwDtHYenqnPXdPI8Y4euxIPZMXHY8T9A9/xDvpx9ydRWpXWAFDIRnsRITOtTadbO LIJTEaBHw/c1P9ccN0Ktb1JSD85Bp4m5uY+ROezR1FY8xMTkfcltxPLZ5OZ94Xb4WJot KrI56g7v9vO1UbcBtLrXQZYVS8zKVc68CeAUISvJgWDoPupYyT3QwYfXDsoxUDlprlfc Hc9g== MIME-Version: 1.0 X-Received: by 10.220.113.137 with SMTP id a9mr9935814vcq.11.1364836559075; Mon, 01 Apr 2013 10:15:59 -0700 (PDT) Received: by 10.58.254.229 with HTTP; Mon, 1 Apr 2013 10:15:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Apr 2013 10:15:58 -0700 Message-ID: Subject: Re: Some Ambari questions From: Siddharth Wagle To: ambari-user@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b3432d047d2e504d94fc6c1 X-Gm-Message-State: ALoCoQmlEHZmgbrO5j/Jkrm89Tff0HrtQXFsBn+LMPI1aVyDIwHdrZ8jebOmBIa87MclJbhgLyox X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3432d047d2e504d94fc6c1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 wrot= e: > 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 =93Stack > information should be provided when creating a cluster=94. > > > > I=92ve tried to follow the code to see where the expected body is defined= , > but I can=92t 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 wan= t > 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 > wrote: > > Hello, > > > > I am evaluating Ambari for a BigData platform my team is building, and it > sure looks like there=92s 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=92t find the correct > resource. Anyway, here=92s the stuff I still don=92t understand about Amb= ari: > > > > - 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/ind= ex.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=EDtica de env=EDo y recepci=F3n de correo electr=F3nico en el= enlace > situado m=E1s 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=EDtica de env=EDo y recepci=F3n de correo electr=F3nico en el= enlace > situado m=E1s 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 > --047d7b3432d047d2e504d94fc6c1 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Ximo,

The call to create a cluster should look like,

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

The stack version is defined under ambari-server/src/main/resources/sta= cks/HDP/...

-Sid

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

Many thank= s 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= .

=A0=

For exampl= e, 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 =93Stack information should be provided when creating a cluster=94.=

=A0=

I=92ve tri= ed to follow the code to see where the expected body is defined, but I can= =92t seem to find the right place. Can you point me towards it?

=A0=

Thanks!

Ximo.

=A0=

De: Siddharth Wagle [mailto:swagle@hortonworks.co= m]
Enviado el: jueves, 21 de marzo de 2013 17:44
Para: ambari-user@incubator.apache.org
Asunto: Re: Some Ambari questions

=A0

Hi Ximo,

Here is a link to the Ambari wiki that should give you an idea of the desig= n,
https://cwiki.apache.org/confluence/displa= y/AMBARI/Ambari+Design

Currently the API docs are only GET calls. We are working on getting the do= cumentation 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 mim= ic all the calls made by the web UI and create a running cluster.

Best Regards,
Sid =A0

On Thu, Mar 21, 2013 at 9:32 AM, JOAQUIN GUANT= ER GONZALBEZ <ximo@tid.es> wrote:

Hello,

=A0

I am evaluating Ambari fo= r a BigData platform my team is building, and it sure looks like there=92s = a bunch of sweet stuff in this project J<= /span> I am having some problem finding d= ocumentation for the project, so maybe some of my questions are answered so= mewhere and I just can=92t find the correct resource. Anyway, here=92s the stuff I sti= ll don=92t understand about Ambari:

=A0

-=A0=A0=A0=A0=A0=A0=A0=A0=A0 What is the Ambari agent? Is there= any document that describes the general architecture of Ambari?

-=A0=A0=A0=A0=A0=A0=A0=A0=A0 How does the Web component communi= cate with the Ambari Server?

-=A0=A0=A0=A0=A0=A0=A0=A0=A0 Is the list in https://github.com/= apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md the complete list of supported REST API calls?

=A0

Ambari looks like a reall= y interesting project, but in my scenario the UI part is not important sinc= e my team is looking for programmatic ways of deploying Hadoop clusters. Do= es Ambari offer a programmatic surface to manage clusters (set up Federated HDFS, ad= d users, etc.)?

=A0

Thanks!

Ximo.

=A0



Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nu= estra pol=EDtica de env=EDo y recepci=F3n de correo electr=F3nico en el enl= ace situado m=E1s abajo.
This message is intended exclusively for its addressee. We only send and re= ceive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx<= /span>

=A0




Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nu= estra pol=EDtica de env=EDo y recepci=F3n de correo electr=F3nico en el enl= ace situado m=E1s abajo.
This message is intended exclusively for its addressee. We only send and re= ceive email on the basis of the terms set out at:
= http://www.tid.es/ES/PAGINAS/disclaimer.aspx

--047d7b3432d047d2e504d94fc6c1--