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 60CFC183E7 for ; Tue, 29 Sep 2015 17:21:31 +0000 (UTC) Received: (qmail 52895 invoked by uid 500); 29 Sep 2015 17:21:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 52861 invoked by uid 500); 29 Sep 2015 17:21:04 -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 52848 invoked by uid 99); 29 Sep 2015 17:21:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 17:21:04 +0000 Date: Tue, 29 Sep 2015 17:21:04 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-13256) configs.sh cannot add name-value pair to an empty config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14935477#comment-14935477 ] Dmytro Sen commented on AMBARI-13256: ------------------------------------- Test failures aren't related to this patch > configs.sh cannot add name-value pair to an empty config > -------------------------------------------------------- > > Key: AMBARI-13256 > URL: https://issues.apache.org/jira/browse/AMBARI-13256 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.1.1 > Reporter: Dmytro Sen > Assignee: Dmytro Sen > Fix For: 2.1.3 > > Attachments: AMBARI-13256.patch > > > {{slider-client}} by default is an empty config. > Using configs.sh to add a name-value pair fails. > {code} > [root@c6401 vagrant]# /var/lib/ambari-server/resources/scripts/configs.sh set localhost c1 slider-client slider.yarn.queue system > ########## Performing 'set' slider.yarn.queue:system on (Site:slider-client, Tag:version1) > ########## PUTting json into: doSet_version1442967870900626075.json > { > "status" : 400, > "message" : "Invalid Request: Malformed Request Body. An exception occurred parsing the request body: Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: java.io.StringReader@3b1cbed6; line: 1, column: 99]" > }########## NEW Site:slider-client, Tag:version1 > {code} > The work-around is to use the CONFIG_FILENAME option. > {code} > [root@c6401 vagrant]# cat set_slider_client.json > "properties" : {"slider.yarn.queue" : "system" } > {code} > {code} > /var/lib/ambari-server/resources/scripts/configs.sh set localhost c1 slider-client set_slider_client.json > {code} > After that you can add different name-value pairs but not what you just added. This is not common but should be tested as part of the fix. > {code} > [root@c6401 vagrant]# /var/lib/ambari-server/resources/scripts/configs.sh set localhost c1 slider-client slider.yarn.queue system > ########## Performing 'set' slider.yarn.queue:system on (Site:slider-client, Tag:version1442968406632940163) > ########## Config found. Skipping origin value > ########## PUTting json into: doSet_version1442968426333905754.json > { > "status" : 400, > "message" : "Invalid Request: Malformed Request Body. An exception occurred parsing the request body: Unexpected character (',' (code 44)): was expecting double-quote to start field name\n at [Source: java.io.StringReader@4b51dc38; line: 1, column: 115]" > }########## NEW Site:slider-client, Tag:version1442968406632940163 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)