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 51FD911B01 for ; Tue, 29 Jul 2014 20:13:11 +0000 (UTC) Received: (qmail 43124 invoked by uid 500); 29 Jul 2014 20:13:11 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 43088 invoked by uid 500); 29 Jul 2014 20:13:10 -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 43042 invoked by uid 99); 29 Jul 2014 20:13:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 20:13:10 +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 jeff@hortonworks.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 20:13:07 +0000 Received: by mail-ie0-f171.google.com with SMTP id at1so194356iec.2 for ; Tue, 29 Jul 2014 13:12:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=3QfBx0niaMitMEsBtaTB8RPsAlUL0Xr204GtYC2YjOo=; b=TDmoJDIfLdz7ngwdUy96/8Z5UsWEARds2hOLnyVOMLsE+PawXTFmkTnP/JwKa9LW2j 3s28EZb3JxeKweKx5V/RuxFMNhdUDW//SSex13QGGdPOxOFBxyvXCBQ8fD4NUlyboLtE HUjmn7jHXfoiVOED8IGNou38r9h0xHNsZ2sFwvrU3m6zOmoK0O5KBhaz56hhEjU7j34N O7aTUAIvEuFOdIN9qLsgcuVPijN3oynjp44ep+JT23C+ta9ZCaX6BNE2eVB6vZxW2J9N goVeZpBcgrXCd1KAtQsD3DM5ELeWbQptFWRNfW8Lt95jO7/JhL+CGXBhQul+W8G6eEle 4mtQ== X-Gm-Message-State: ALoCoQlPyJDi84nz9yU/TbXDEh+2U7xKnMrz1mFoNeJaCo3+5Xr7ju7pEUWEW4QBiONubR2Unzchci2OV0QqyAjj8FnW90UQl112E+7Q/2ZT4JQ5XCZDduw= MIME-Version: 1.0 X-Received: by 10.50.221.99 with SMTP id qd3mr251950igc.3.1406664766464; Tue, 29 Jul 2014 13:12:46 -0700 (PDT) Received: by 10.64.129.71 with HTTP; Tue, 29 Jul 2014 13:12:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 16:12:46 -0400 Message-ID: Subject: Re: RestAPI for pushing a configuration to a component in 1.2.4 From: Jeff Sposetti To: "user@ambari.apache.org" Content-Type: multipart/alternative; boundary=001a11346f68b9404e04ff5aa9e9 X-Virus-Checked: Checked by ClamAV on apache.org --001a11346f68b9404e04ff5aa9e9 Content-Type: text/plain; charset=UTF-8 You can also checkout this wiki page on Ambari Stacks. The "Custom Client Service" example might be worth looking at... https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=38571133 On Tue, Jul 29, 2014 at 4:11 PM, Siddharth Wagle wrote: > Correct URL: > > > https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs.py > > -Sid > > > On Tue, Jul 29, 2014 at 1:07 PM, Siddharth Wagle > wrote: > >> You can create a config and attach it to any service and thereby a host >> component. The config will be sent to the host on any execution command, >> example: START/STOP. >> >> However, you would need to add a small snippet of code (4 lines) for the >> configuration to be applied on the host. Take a look at the XMLConfig >> element here, >> https://github.com/hortonworks/ambari/blob/apache-ref/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs.py >> >> The the automated mechanism is a good idea. Maybe you can open a Jira for >> the same. Although, it is probably easier to change the stack definition >> for a quicker resolution if so desired. >> >> -Sid >> >> On Tue, Jul 29, 2014 at 12:42 PM, Aaron Cody >> wrote: >> >>> >>> is there any mechanism available (preferably a REST call) to push an >>> arbitrary file out to a host or hosts in the cluster? >>> >> >> > > 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. -- 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. --001a11346f68b9404e04ff5aa9e9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can also checkout this wiki page on Ambari Stacks. The= "Custom Client Service" example might be worth looking at...
=
https://cwiki.apache.org/confluence/pages/viewpage.action?= pageId=3D38571133


On Tue, Jul 2= 9, 2014 at 4:11 PM, Siddharth Wagle <swagle@hortonworks.com> wrote:
Correct URL:

<= a href=3D"https://github.com/apache/ambari/blob/trunk/ambari-server/src/mai= n/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs.py" target= =3D"_blank">https://github.com/apache/ambari/blob/trunk/ambari-server/src/m= ain/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs.py
-Sid


On Tue, Jul 29, 2014 at 1:07 PM, Siddharth Wagle <swagle@h= ortonworks.com> wrote:
You can create a = config and attach it to any service and thereby a host component. The confi= g will be sent to the host on any execution command, example: START/STOP.
However, you would need to add a small snippet of code (4 lines) = for the configuration to be applied on the host. Take a look at the XMLConf= ig element here, https://github.com/hortonworks= /ambari/blob/apache-ref/trunk/ambari-server/src/main/resources/stacks/HDP/2= .0.6/services/HDFS/package/scripts/hdfs.py

The the automated mechanism is a good idea. Maybe you can open a = Jira for the same. Although, it is probably easier to change the stack defi= nition for a quicker resolution if so desired.

-Sid

On Tue, Jul 29, 2014 at 12:42 PM, Aa= ron Cody <acody@hexiscyber.com> wrote:

is there any mechanism available (preferably a REST call) to push an arbitr= ary file out to a host or hosts in the cluster?



CONFIDENTIALITY NOTICE
NOTICE: This message is = intended for the use of the individual or entity to which it is addressed a= nd 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, dis= semination, distribution, disclosure or forwarding of this communication is= strictly prohibited. If you have received this communication in error, ple= ase contact the sender immediately and delete it from your system. Thank Yo= u.


CONFIDENTIALITY NOTICE
NOTICE: This message is = intended for the use of the individual or entity to which it is addressed a= nd 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, dis= semination, distribution, disclosure or forwarding of this communication is= strictly prohibited. If you have received this communication in error, ple= ase contact the sender immediately and delete it from your system. Thank Yo= u. --001a11346f68b9404e04ff5aa9e9--