Browse Source

[Fix-5551][common] Fix ExecutionStatus for hive-on-Tez application (#6289)

* add ENDED state

* Update HadoopUtils.java
3.0.0/version-upgrade
Manhua 3 years ago committed by GitHub
parent
commit
2dc09c627f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
  2. 1
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java

4
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java

@ -436,6 +436,10 @@ public final class Constants {
* SUCCEEDED * SUCCEEDED
*/ */
public static final String SUCCEEDED = "SUCCEEDED"; public static final String SUCCEEDED = "SUCCEEDED";
/**
* ENDED
*/
public static final String ENDED = "ENDED";
/** /**
* NEW * NEW
*/ */

1
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java

@ -453,6 +453,7 @@ public class HadoopUtils implements Closeable {
case Constants.ACCEPTED: case Constants.ACCEPTED:
return ExecutionStatus.SUBMITTED_SUCCESS; return ExecutionStatus.SUBMITTED_SUCCESS;
case Constants.SUCCEEDED: case Constants.SUCCEEDED:
case Constants.ENDED:
return ExecutionStatus.SUCCESS; return ExecutionStatus.SUCCESS;
case Constants.NEW: case Constants.NEW:
case Constants.NEW_SAVING: case Constants.NEW_SAVING:

Loading…
Cancel
Save