Oozie协调员行动重新运行

时间:2016-12-29 11:16:26

标签: hadoop oozie oozie-coordinator

我正在尝试使用以下命令重新运行失败的协调员,但每次重新启动时都会使用一些随机的协调员操作而不是最早的协调员操作。

  

oozie job -rerun {co-ordinator ID} -action 6374-6441

首先重新运行6404。我们怎样才能让它从6374开始重新运行?

1 个答案:

答案 0 :(得分:0)

我想通过查看这段代码,目前无法实现这一目标:getActionsIds

    Set<String> actions = new HashSet<String>();
    String[] list = scope.split(",");
    for (String s : list) {
        s = s.trim();
        // An action range is specified with two actions separated by '-'
        if (s.contains("-")) {
            String[] range = s.split("-");
        ...............
            int start;
            int end;
            //Get the starting and ending action numbers
            try {
                start = Integer.parseInt(range[0].trim());
            } catch (NumberFormatException ne) {
                throw new CommandException(ErrorCode.E0302, "could not parse " + range[0].trim() + "into an integer", ne);
            }
            try {
                end = Integer.parseInt(range[1].trim());
            } catch (NumberFormatException ne) {
                throw new CommandException(ErrorCode.E0302, "could not parse " + range[1].trim() + "into an integer", ne);
            }
        ...............
            // Add the actionIds
            for (int i = start; i <= end; i++) {
                actions.add(jobId + "@" + i);
            }

修改:这是Apache Jira OOZIE-2766以及补丁。感谢。

相关问题