ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-7985) Allow for server-side commands
Date Mon, 17 Nov 2014 18:18:35 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-7985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214933#comment-14214933
] 

Hudson commented on AMBARI-7985:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit-docker #252 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/252/])
AMBARI-7985.  Add server side command functionality. (jspeidel: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3d397dc04aab8d81c00aae2a8e5afa099fc57567)
* ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* ambari-server/src/test/java/org/apache/ambari/server/serveraction/MockServerAction.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
* ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionDBAccessorImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/serveraction/AbstractServerAction.java
* ambari-server/src/main/java/org/apache/ambari/server/serveraction/ServerActionManagerImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostUpgradeEvent.java
* ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionManager.java
* ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostServerActionEvent.java
* ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java
* ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java
* ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessor.java
* ambari-server/src/main/java/org/apache/ambari/server/serveraction/ServerActionExecutor.java
* ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentHostEventType.java
* ambari-server/src/main/java/org/apache/ambari/server/serveraction/ServerAction.java
* ambari-server/src/test/java/org/apache/ambari/server/agent/TestHeartbeatHandler.java
* ambari-server/src/main/java/org/apache/ambari/server/serveraction/ServerActionManager.java
* ambari-server/src/test/java/org/apache/ambari/server/serveraction/ServerActionExecutorTest.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
* ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionManager.java
* ambari-server/src/main/java/org/apache/ambari/server/state/ServiceComponentHostEvent.java


> Allow for server-side commands
> ------------------------------
>
>                 Key: AMBARI-7985
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7985
>             Project: Ambari
>          Issue Type: New Feature
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>              Labels: ambari-server, commands, server, server-side, tasks
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-7985_01.patch, AMBARI-7985_01.patch, AMBARI-7985_02.patch,
AMBARI-7985_03.patch, AMBARI-7985_03.patch, AMBARI-7985_04.patch, AMBARI-7985_05.patch, AMBARI-7985_06.patch,
AMBARI-7985_07.patch, AMBARI-7985_08.patch, AMBARI-7985_10.patch
>
>
> Ambari currently handles _client-/agent-side_ commands; however there is no ability to
handle _server-side_ commands. Server-side commands should be specified as a task in a stage
and managed along with the stage.
> *Use Case:*  Generate principals and keytabs on the Ambari server before sending the
keytabs to their relevant hosts.
> *Implementation:*  To add the concept of a server-side task:
> * update {{org.apache.ambari.server.serveraction.ServerAction}} to be an _abstract class_
> ** _server-side_ tasks must implement this class 
> * reuse existing _host_role_command_ and _execution_command_ data
> ** _server-side_ tasks are to have a role of {{AMBARI_SERVER_ACTION}}
> ** _server-side_  execution command data should be encapsulated as JSON and specify the
ServerAction implementation class and any needed payload data
> * {{org.apache.ambari.server.actionmanager.ActionScheduler}} and {{org.apache.ambari.server.serveraction.ServerActionManagerImpl}}
need to be updated to handle the execution of server-side tasks
> ** each _server-side_ task should be executed in its own thread.
> *** _server_side_ tasks should be executed in (staged) order, serially - not in parallel
> *** _server_side_ tasks should ensure not to mess up _stage_ ordering



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message