[
https://issues.apache.org/jira/browse/AMBARI-23444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16559470#comment-16559470
]
Hudson commented on AMBARI-23444:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #80 (See
[https://builds.apache.org/job/Ambari-branch-2.7/80/])
[AMBARI-23444] Allow Custom Hooks on a Per-Role Basis (dgrinenko) (github:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=8b3c3853f252cc1d35791b82cc59fb31887219c6])
* (edit) ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestActionQueue.py
* (edit) ambari-agent/src/main/python/ambari_agent/FileCache.py
* (add) ambari-agent/src/main/python/ambari_agent/models/commands.py
* (edit) ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py
* (edit) ambari-agent/src/main/python/ambari_agent/RecoveryManager.py
* (edit)
ambari-agent/src/main/python/ambari_agent/BackgroundCommandExecutionHandle.py
* (add) ambari-agent/src/main/python/ambari_agent/models/__init__.py
* (edit)
ambari-agent/src/test/python/ambari_agent/TestCustomServiceOrchestrator.py
* (edit)
ambari-server/src/main/resources/stack-hooks/after-INSTALL/scripts/hook.py
* (add) ambari-agent/src/main/python/ambari_agent/CommandHooksOrchestrator.py
* (edit)
ambari-common/src/main/python/resource_management/libraries/script/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/PythonReflectiveExecutor.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestFileCache.py
* (edit)
ambari-server/src/main/resources/custom_actions/scripts/ru_execute_tasks.py
* (edit)
ambari-server/src/main/resources/stack-hooks/before-START/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/PythonExecutor.py
* (edit) ambari-agent/src/test/python/ambari_agent/TestPythonExecutor.py
* (add) ambari-agent/src/main/python/ambari_agent/models/hooks.py
* (edit) ambari-agent/src/main/python/ambari_agent/LiveStatus.py
* (add)
ambari-agent/src/test/python/ambari_agent/TestCommandHooksOrchestrator.py
* (edit) ambari-agent/src/main/python/ambari_agent/InitializerModule.py
* (edit)
ambari-server/src/main/resources/stack-hooks/before-RESTART/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* (edit)
ambari-server/src/main/resources/stack-hooks/before-INSTALL/scripts/hook.py
* (edit)
ambari-server/src/main/resources/stack-hooks/before-SET_KEYTAB/scripts/hook.py
* (edit) ambari-agent/src/main/python/ambari_agent/CommandStatusDict.py
* (edit) ambari-agent/src/main/python/ambari_agent/ActionQueue.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.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: 2h 10m
> 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)