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 D65C1107AE for ; Mon, 5 Jan 2015 19:18:23 +0000 (UTC) Received: (qmail 8465 invoked by uid 500); 5 Jan 2015 19:17:46 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 8440 invoked by uid 500); 5 Jan 2015 19:17:46 -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 8428 invoked by uid 99); 5 Jan 2015 19:17:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2015 19:17:46 +0000 Date: Mon, 5 Jan 2015 19:17:34 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-8970) Custom Actions for Namenode to execute tasks by calling a python script 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-8970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264940#comment-14264940 ] Hudson commented on AMBARI-8970: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #1392 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1392/]) AMBARI-8970. Custom Actions for Namenode to execute tasks by calling a python script (alejandro) (afernandez: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ccda41901254a44cde433f91a873388c1b005300) * ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java * ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java * ambari-agent/src/main/python/ambari_agent/PythonExecutor.py * ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/ExecuteTask.java * ambari-agent/src/test/python/ambari_agent/TestActionQueue.py * ambari-agent/src/test/python/ambari_agent/TestCustomServiceOrchestrator.py * ambari-web/app/messages.js * ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java * ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostStackVersionResourceProviderTest.java * ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml * ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py * ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProviderTest.java * ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py * ambari-common/src/main/python/resource_management/libraries/functions/dynamic_variable_interpretation.py * ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java * ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py * ambari-common/src/main/python/resource_management/libraries/script/script.py * ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py * ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java > Custom Actions for Namenode to execute tasks by calling a python script > ----------------------------------------------------------------------- > > Key: AMBARI-8970 > URL: https://issues.apache.org/jira/browse/AMBARI-8970 > Project: Ambari > Issue Type: Technical task > Components: ambari-server > Affects Versions: 2.0.0 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Fix For: 2.0.0 > > Attachments: AMBARI-8970.patch > > > Currently, the upgrade-2.2.xml file, which contains the Upgrade Pack, defines the exact commands to run for the Namenode prepare and finalize steps. > The downside of having this logic in the xml file is that it makes it difficult to maintain, and is not as powerful as being able to run the commands by using Python and its functions. Therefore, it is preferable for the ExecuteTask to be able to invoke a function inside a script. > The plan is for Namenode to have functions for prepare and finalize, and for the upgrade pack to contain something like, > Masters Group, > {code} > > > > > > prepare_rolling_upgrade > > > > > {code} > While the Cluster Group has, > {code} > > > > finalize_rolling_upgrade > > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)