You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/26 18:53:00 UTC

[jira] [Commented] (AMBARI-23444) Allow Custom Hooks on a Per-Role Basis

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

Hudson commented on AMBARI-23444:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9686 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9686/])
[AMBARI-23444] Allow Custom Hooks on a Per-Role Basis (dgrinenko) (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=f12f5e2135ed65aaa0fb009aff84cd4bdb80d81f])
* (edit) ambari-agent/src/main/python/ambari_agent/CommandStatusDict.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestCustomServiceOrchestrator.py
* (add) ambari-agent/src/main/python/ambari_agent/models/hooks.py
* (edit) ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* (add) ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py
* (edit) ambari-agent/src/main/python/ambari_agent/ActionQueue.py
* (edit) ambari-common/src/main/python/resource_management/libraries/script/hook.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
* (edit) ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestActionQueue.py
* (add) ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py
* (add) ambari-agent/src/main/python/ambari_agent/models/commands.py
* (add) ambari-agent/src/main/python/ambari_agent/models/__init__.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/LiveStatus.py
* (edit) ambari-agent/src/main/python/ambari_agent/RecoveryManager.py
* (edit) ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
* (edit) ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestFileCache.py
* (edit) ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/InitializerModule.py
* (edit) ambari-agent/src/main/python/ambari_agent/FileCache.py
* (edit) ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py


> Allow Custom Hooks on a Per-Role Basis
> --------------------------------------
>
>                 Key: AMBARI-23444
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23444
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-agent, ambari-server
>    Affects Versions: trunk
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Grinenko
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: trunk
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
>  Expand hooks with a  service-specific hooks. In addition, we must use custom command parameters to help with this. For examples:
> {{before-KAFKA-INSTALL}}
> {{after-STORM-START}}
> {{after-KAFKA-RESTART}} <-- this is a custom command, not a "regular" command
>  
> The more-specific hooks should execute tightly to the command script. For example:
> {{before-INSTALL}}
> {{before-KAFKA-INSTALL}}
> install script for Kafka
> {{after-KAFKA-INSTALL}}
> {{after-INSTALL}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)