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 8F24D11245 for ; Thu, 26 Jun 2014 02:49:24 +0000 (UTC) Received: (qmail 63039 invoked by uid 500); 26 Jun 2014 02:49:24 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 63011 invoked by uid 500); 26 Jun 2014 02:49:24 -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 62998 invoked by uid 99); 26 Jun 2014 02:49:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2014 02:49:24 +0000 Date: Thu, 26 Jun 2014 02:49:24 +0000 (UTC) From: "Srimanth Gunturi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-6281) Provide 'properties_attributes' property on configuration provided by /api/v1/configurations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Srimanth Gunturi created AMBARI-6281: ---------------------------------------- Summary: Provide 'properties_attributes' property on configura= tion provided by /api/v1/configurations Key: AMBARI-6281 URL: https://issues.apache.org/jira/browse/AMBARI-6281 Project: Ambari Issue Type: Task Components: client Affects Versions: 1.7.0 Reporter: Srimanth Gunturi Assignee: Srimanth Gunturi Fix For: 1.7.0 When a call is made to=20 {{GET http://server:8080/api/v1/clusters/c1/configurations?type=3Dcore-site= &tag=3Dversion1}}, the response should include attributes of various proper= ties also {code} { "tag": "version1", "type": "core-site", "properties": { "fs.defaultFS": "hdfs://server:8020", "fs.trash.interval": "360", "hadoop.proxyuser.falcon.groups": "users", ... "mapreduce.jobtracker.webinterface.trusted": "false" }, =E2=80=9Cproperties_attributes=E2=80=9D: { =E2=80=9Cfinal=E2=80=9D: { "fs.defaultFS": =E2=80=9Ctrue=E2=80=9D,=20 "hadoop.proxyuser.falcon.groups": =E2=80=9Ctrue=E2=80=9D }, } } {code} This should support POST and PUT calls to update 'properties_attributes' of= configs. Table {{ambari:clusterconfig}} will have new column called {{config_attribu= tes}}. This column will be of type varchar of size 32K. It will contain a s= erialized JSON object where key is the attribute name, and value is an obje= ct containing config-names as keys along with attribute values. Example:=20 Configuration attributes would be persisted in the config_attributes column= as=20 {code} { =E2=80=9Cfinal=E2=80=9D: { =E2=80=9Cfs.defaultFS=E2=80=9D: =E2=80=9Ctrue=E2=80=9D,=20 =E2=80=9Chadoop.proxyuser.falcon.groups=E2=80=9D: =E2=80=9Ctrue=E2=80= =9D } } {code} -- This message was sent by Atlassian JIRA (v6.2#6252)