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 3152110D5D for ; Tue, 18 Feb 2014 12:17:23 +0000 (UTC) Received: (qmail 67873 invoked by uid 500); 18 Feb 2014 12:17:22 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 67725 invoked by uid 500); 18 Feb 2014 12:17:20 -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 67707 invoked by uid 99); 18 Feb 2014 12:17:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 12:17:19 +0000 Date: Tue, 18 Feb 2014 12:17:19 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-4708) Actual configs not updated after restart of host component MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dmytro Sen created AMBARI-4708: ---------------------------------- Summary: Actual configs not updated after restart of host component Key: AMBARI-4708 URL: https://issues.apache.org/jira/browse/AMBARI-4708 Project: Ambari Issue Type: Bug Components: agent, controller Affects Versions: 1.5.0 Reporter: Dmytro Sen Assignee: Dmytro Sen Priority: Critical Fix For: 1.5.0 Updated HDFS configs aren't applied after RESTART. Steps: - On a 3 node cluster, create a ConfigGroup for datanode. - Override heap size to 1025m instead of 1024m - Restart DN. Result: - The /var/lib/ambari-agent/data/config.json, has the correct values for the config type: {code} "global": {"2": "version1392171779044", "tag": "version1"} {code} - The API call still shows global as default version: {code} http://hostname1:8080/api/v1/clusters/c1/hosts/hostname1/host_components/DATANODE {code} Note: It works after agent is restarted. {code} { global: { overrides: { 2: "version1392171779044" }, default: "version1" } {code} The cause is that hooks aren't executed for the custom_command like RESTART. Since configs for HDFS are generated in hook.py, we must execute hook.py before custom commands or move config generation from hook.py. -- This message was sent by Atlassian JIRA (v6.1.5#6160)