Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65CF6FF1C for ; Mon, 28 Apr 2014 18:23:09 +0000 (UTC) Received: (qmail 55034 invoked by uid 500); 28 Apr 2014 18:23:08 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 54971 invoked by uid 500); 28 Apr 2014 18:23:08 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 54954 invoked by uid 99); 28 Apr 2014 18:23:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2014 18:23:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sgunturi@hortonworks.com designates 209.85.192.41 as permitted sender) Received: from [209.85.192.41] (HELO mail-qg0-f41.google.com) (209.85.192.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2014 18:23:04 +0000 Received: by mail-qg0-f41.google.com with SMTP id j107so6711532qga.28 for ; Mon, 28 Apr 2014 11:22:41 -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:from:date :message-id:subject:to:content-type; bh=K4c7eti6XsV7ivHDll9w5a6BA4wZNrTHSi44bEySlN8=; b=gcwwBuV2E12kKtFUHXWZyoQab3uIrjpCBLuyK/0k/Io0QjjEXwU9yyEjqquOxG82aW oV4vkeQYOkm42M98YBQk8wKvvqBZSDTAQGSveRhr4LfR4ovhrZ7l9iRMK74UalDpTEUJ I5840gwGCtl42cVN+D6RZjTUxJm3vukoJ6SKFdX0LT7YiHYJYRBCiiiGHT852Kj2EP9R rzlJa1+SmKmeub9Tkd1Q+o/gX8IBGdyUgl7VldY+pZZL1Lq6+b03OvLWjKMOtG38ZtTO BCwSA2It7RP5DYrbO+blI5pa0zz1L0hRCxmrJJCFSQSS4gIyN+nCqkHi+TU8OUT1E0HH srDw== X-Gm-Message-State: ALoCoQnOMBROQ1Y887tp/mpGAUh0/NJKjpV+bfrujaa/jFLRFYK8658ylc/+kTVRPk7I5HXmOvQFt8p6o/6YTfi0IVD7nfSJ6J9vTtzEmsgV58/7ONS1qwE= X-Received: by 10.140.42.165 with SMTP id c34mr33576618qga.40.1398709361499; Mon, 28 Apr 2014 11:22:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.94.100 with HTTP; Mon, 28 Apr 2014 11:22:20 -0700 (PDT) In-Reply-To: <430211E7-3EE0-4660-A541-089DD73B0399@wandisco.com> References: <430211E7-3EE0-4660-A541-089DD73B0399@wandisco.com> From: Srimanth Gunturi Date: Mon, 28 Apr 2014 11:22:20 -0700 Message-ID: Subject: Re: Switch between existing configurations through API To: dev@ambari.apache.org Content-Type: multipart/alternative; boundary=001a1139bb88a300ca04f81e66a3 X-Virus-Checked: Checked by ClamAV on apache.org --001a1139bb88a300ca04f81e66a3 Content-Type: text/plain; charset=US-ASCII Hi Gordon, Thank you for finding the issue and opening JIRA. This should get fixed in next release. Regards, Srimanth On Mon, Apr 28, 2014 at 11:13 AM, Gordon Hamilton < gordon.hamilton@wandisco.com> wrote: > Hi Srimanth, > > Thanks for confirming it's an issue for me. > > I'm using the work-around you mentioned, and have raised a ticket: > https://issues.apache.org/jira/browse/AMBARI-5599 > > Regards, > Gordon > > > On 28 Apr 2014, at 18:31, Srimanth Gunturi > wrote: > > > Hi Gordon, > > This looks like a regression - the call you have made looks valid for > > reverting back to old configuration. > > Please create a JIRA at https://issues.apache.org/jira/browse/AMBARI/and > > provide us its number. > > > > The only workaround seems to be duplicating 'version1's configs into a > new > > tag, and setting desired_configs at same time. > > Regards, > > Srimanth > > > > > > > > > > On Thu, Apr 24, 2014 at 7:12 AM, Gordon Hamilton >wrote: > > > >> Hi guys, > >> > >> I'm trying to figure out how to change between configurations in 1.5.x > >> version of ambari API. > >> > >> In 1.4.x I could use the following to revert to version 1 of hdfs-site > >> config: > >> > >> *curl -u : -X PUT -H "X-Requested-By: ml" > >> http://
:8080/api/v1/cluster/AMCluster1 -d > >> '{"Clusters":{"desired_config":{"type":"hdfs-site","tag":"version1"}}}'* > >> > >> The API doc here: > >> > >> > https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.mdappears > >> to describe the same usage. > >> > >> However, this now gets a 500 response: > >> *{* > >> * "status" : 500,* > >> * "message" : > "org.apache.ambari.server.controller.spi.SystemException: An > >> internal system exception occurred: Configuration with tag 'version1' > >> exists for 'hdfs-site'"* > >> *}* > >> > >> Is there a different call that I should use switch between existing > >> configurations? > >> > >> Many thanks in advance for any help. > >> > >> Regards, > >> Gordon > >> > > > > -- > > 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. > > Gordon Hamilton I Big Data Developer > > WANdisco // Non-Stop Data > > e. gordon.hamilton@wandisco.com > > > -- > > > Join us in New York and San Francisco for Subversion & Git Live 2014< > http://www.wandisco.com/subversion-git-live-2014> > > Listed on the London Stock Exchange: WAND< > http://www.bloomberg.com/quote/WAND:LN> > > THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE > PRIVILEGED. If this message was misdirected, WANdisco, Inc. and its > subsidiaries, ("WANdisco") does not waive any confidentiality or privilege. > If you are not the intended recipient, please notify us immediately and > destroy the message without disclosing its contents to anyone. Any > distribution, use or copying of this e-mail or the information it contains > by other than an intended recipient is unauthorized. The views and > opinions expressed in this e-mail message are the author's own and may not > reflect the views and opinions of WANdisco, unless the author is authorized > by WANdisco to express such views or opinions on its behalf. All email > sent to or from this address is subject to electronic storage and review by > WANdisco. Although WANdisco operates anti-virus programs, it does not > accept responsibility for any damage whatsoever caused by viruses being > passed. > -- 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. --001a1139bb88a300ca04f81e66a3--