Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F195DC77 for ; Wed, 13 Mar 2013 18:14:13 +0000 (UTC) Received: (qmail 19415 invoked by uid 500); 13 Mar 2013 18:14:13 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 19362 invoked by uid 500); 13 Mar 2013 18:14:13 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 19239 invoked by uid 99); 13 Mar 2013 18:14:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 18:14:12 +0000 Date: Wed, 13 Mar 2013 18:14:12 +0000 (UTC) From: "Sumit Mohanty (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-1626) API support to upgrade host component MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sumit Mohanty created AMBARI-1626: ------------------------------------- Summary: API support to upgrade host component Key: AMBARI-1626 URL: https://issues.apache.org/jira/browse/AMBARI-1626 Project: Ambari Issue Type: Sub-task Affects Versions: 1.3.0 Reporter: Sumit Mohanty Fix For: 1.3.0 Need to wire-up upgrade task support with a PUT action that generates the stage/task plan for upgrading a single host-component and returns a request id. The PUT action essentially tries to update the desired version number for the host component and if the current stack version is not same as desired then performs the necessary stage/task creation. Something like curl --user admin:admin -i -X PUT -d '{"HostRoles": {"stack_id" : "HDP-1.2.2"}}' http://server:8080/api/v1/clusters/c1/hosts/host1/host_components/HIVE_CLIENT -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira