如何为每个作业设置流参数?我正在尝试配置自定义警报程序,我希望每个作业都能触发它。它看起来像是在从流参数中寻找一个"alert.type“属性,但是现在我只能通过接口来触发它。有什么想法吗?
发布于 2017-01-31 06:57:24
您可以使用REST API:
curl -k -d flowOverride[alert.type]=my-alerter -d scheduleDate=01/30/2017 -d scheduleTime=03,44,pm,PDT -d is_recurring=off -d projectId=1 -d ajax=scheduleFlow -d projectName=myproject -d flow=myflow -b "azkaban.browser.session.id=..." http://localhost:8081/schedule
请注意参数
flowOverride[alert.type]=alerter-name
https://groups.google.com/forum/#!topic/azkaban-dev/pUYYpsmNsbk
https://stackoverflow.com/questions/35903362
复制相似问题