Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 775A510241 for ; Wed, 4 Mar 2015 19:10:02 +0000 (UTC) Received: (qmail 26459 invoked by uid 500); 4 Mar 2015 19:09:57 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 26428 invoked by uid 500); 4 Mar 2015 19:09:57 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 26418 invoked by uid 99); 4 Mar 2015 19:09:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 19:09:57 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FSL_HELO_BARE_IP_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yusaku@hortonworks.com designates 64.78.52.184 as permitted sender) Received: from [64.78.52.184] (HELO relayvx11b.securemail.intermedia.net) (64.78.52.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 19:09:30 +0000 Received: from securemail.intermedia.net (localhost [127.0.0.1]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id CA21853EA2 for ; Wed, 4 Mar 2015 11:08:25 -0800 (PST) Subject: Re: Trigger a script after cluster installation MIME-Version: 1.0 x-echoworx-emg-received: Wed, 4 Mar 2015 11:08:25.816 -0800 x-echoworx-msg-id: 3321d85a-883e-4dbd-bfac-0f944b083ce5 x-echoworx-action: delivered Received: from 10.254.155.14 ([10.254.155.14]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 974 for ; Wed, 4 Mar 2015 11:08:25 -0800 (PST) Received: from MBX080-W4-CO-2.exch080.serverpod.net (unknown [10.224.117.102]) by emg-ca-1-1.localdomain (Postfix) with ESMTP id 9013F53EA0 for ; Wed, 4 Mar 2015 11:08:25 -0800 (PST) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Wed, 4 Mar 2015 11:08:24 -0800 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1044.021; Wed, 4 Mar 2015 11:08:24 -0800 From: Yusaku Sako To: "user@ambari.apache.org" Thread-Topic: Trigger a script after cluster installation Thread-Index: AQHQVdj9DqwvyG5C2kypEC5OV6/fCJ0Lj7+AgADyV6GAAC9qgA== Date: Wed, 4 Mar 2015 19:08:24 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.175.27.15] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_D11C97F955C36yusakuhortonworkscom_" X-Virus-Checked: Checked by ClamAV on apache.org --_000_D11C97F955C36yusakuhortonworkscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Do you see your new services through the Ambari REST API? http://ambari-server:8080/api/v1/stacks/HDP/versions/2.2/services Yusaku From: Giovanni Paolo Gibilisco = > Reply-To: "user@ambari.apache.org" > Date: Wednesday, March 4, 2015 8:15 AM To: "user@ambari.apache.org" > Subject: Re: Trigger a script after cluster installation Thank you, this was very useful but I'm facing another issue now: I have followed the guide at https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=3D38571133= #Overview(Ambari1.5.0orlater)-DefiningaServiceandComponents and added a dummy service to Ambari service stacks, in particular to HDP 2.= 2. However after restarting the ambari server the "add service" button rema= ins disabled. I noticed that Ambari made an archive in the new folder i cre= ated for the service, so I assume it distributed it to the other agents. How one might mitigate this problem? On Tue, Mar 3, 2015 at 6:53 PM Jayush Luniya > wrote: You can implement a custom command for it. https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=3D38571133 "Ambari supports different commands scripts written in PYTHON. The type is = used to know how to execute the command scripts. You can also create custom= commands if there are other commands beyond the default lifecycle commands= your component needs to support." Regards Jayush From: Giovanni Paolo Gibilisco = > Reply-To: "user@ambari.apache.org" > Date: Tuesday, March 3, 2015 at 9:37 AM To: "user@ambari.apache.org" > Subject: Trigger a script after cluster installation Hi, I'm developing a script to configure hue accordinf to the configuration man= aged by Ambari. I would like to run this script after: the installation of the cluster via ambari web interface is finished AND se= rvices have been started. If there a way to understand when this process is finished? Best, Giovanni --_000_D11C97F955C36yusakuhortonworkscom_ Content-Type: text/html; charset="us-ascii" Content-ID: <4DBEAAF7822E6C48BF670FA850D48AAC@exch080.serverpod.net> Content-Transfer-Encoding: quoted-printable
Do you see your new services through the Ambari REST API?


Yusaku

From: Giovanni Paolo Gibilisco <= gibbo87@gmail.com>
Reply-To: "user@ambari.apache.org" <user@ambari.apache.org>
Date: Wednesday, March 4, 2015 8:15= AM
To: "user@ambari.apache.org" <user@ambari.apache.org>
Subject: Re: Trigger a script after= cluster installation

Thank you, this was very useful but I'm facing another iss= ue now:
=
= I have followed the guide at 
=
= and added a dummy service to Ambari service stacks, in particular to HDP 2.= 2. However after restarting the ambari server the "add service" b= utton remains disabled. I noticed that Ambari made an archive in the new folder i created for the service, so I assume i= t distributed it to the other agents. 

How one might mitigate this problem?

On Tue, Mar 3, 2015 at 6:53 PM Jayush Luniya <= ;jluniya@hortonworks.com>= wrote:
You can implement a custom command for it.


"Ambari supports different commands = scripts written in PYTHON<= span style=3D"color:rgb(51,51,51);line-height:22.2222232818604px;background= -color:rgb(255,255,255)">. The type is used to know how to execute the command scripts. You can also = create custom commands if there are other commands beyond the default lifecycle commands your compon= ent needs to support."

Regards
Jayush

From: Giovanni Paolo Gibilisco <= gibbo87@gmail.com>
Reply-To: "
user@ambari.apache.org" &= lt;user@ambari.= apache.org>
Date: Tuesday, March 3, 2015 at 9:3= 7 AM
To: "user@ambari.apache.org" <user@ambari.apache= .org>
Subject: Trigger a script after clu= ster installation

Hi, 
I'm developing a script to configure hue accordinf to the configuratio= n managed by Ambari. I would like to run this script after:

the installation of the cluster via ambari web interface is finished A= ND services have been started. 

If there a way to understand when this process is finished? 
Best, 
Giovanni
--_000_D11C97F955C36yusakuhortonworkscom_--