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 9F3D711AA1 for ; Tue, 29 Jul 2014 20:07:56 +0000 (UTC) Received: (qmail 8705 invoked by uid 500); 29 Jul 2014 20:07:51 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 8676 invoked by uid 500); 29 Jul 2014 20:07:51 -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 8664 invoked by uid 99); 29 Jul 2014 20:07:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 20:07:51 +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 (nike.apache.org: domain of swagle@hortonworks.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 20:07:49 +0000 Received: by mail-oa0-f47.google.com with SMTP id g18so225785oah.6 for ; Tue, 29 Jul 2014 13:07:24 -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=TGzlNy8YQYZPI1fPN1Dtb6Zv/AOURYns9cz3PowstWI=; b=m3QLzjaZScMwXfJRYnRnf2Zxfk4S1hnc0Uh6bwnqkrlbzyldESBkpXCWP50FQHUEgS /V2VL6mTA+G8kr1KPJqNVQTqDLT0TjTedpEOvgBgZ5r1iiVX3aDHmGgbfAXmPPtbsCGa dU4DYS2LeoFzNBU2Fc1sOoWt9X879dGPFaZCpb6GbK9lZDmtFtkH0WCMFcVxejPdDZTO wcb/uN8u3z4MxAdJzPXVjvYcfK8V7Nt183EgPe6DDb0+KoBstfe5hcXhrmsJdL3KV4wr tl6PsY7pkKg57avR12TN2BZls0wLfVQG1tVgscpPVCyPStIIb8mM/jADN9pnR0xakWMV Ed1w== X-Gm-Message-State: ALoCoQn4ofbdk1Dm9vrOsW5TnbSfVOMY995aZr7icqYjUx5xHOUsUyL61IAghjIvsi03VDAmv3mnV2iYhoSQNGLZSu1YE/aGdvT/ygv4GmwoIZleqLQ59Rs= MIME-Version: 1.0 X-Received: by 10.60.77.68 with SMTP id q4mr6873125oew.1.1406664443940; Tue, 29 Jul 2014 13:07:23 -0700 (PDT) Received: by 10.76.11.230 with HTTP; Tue, 29 Jul 2014 13:07:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Jul 2014 13:07:23 -0700 Message-ID: Subject: Re: RestAPI for pushing a configuration to a component in 1.2.4 From: Siddharth Wagle To: "user@ambari.apache.org" Content-Type: multipart/alternative; boundary=047d7b33d1647fe61b04ff5a96ba X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33d1647fe61b04ff5a96ba Content-Type: text/plain; charset=UTF-8 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. --047d7b33d1647fe61b04ff5a96ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can create a config and attach it to any ser= vice and thereby a host component. The config will be sent to the host on a= ny execution command, example: START/STOP.

However, you would = need to add a small snippet of code (4 lines) for the configuration to be a= pplied on the host. Take a look at the XMLConfig element here, ht= tps://github.com/hortonworks/ambari/blob/apache-ref/trunk/ambari-server/src= /main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs.py<= br>
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, Aaron C= ody <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. --047d7b33d1647fe61b04ff5a96ba--