status
stringclasses
1 value
repo_name
stringclasses
31 values
repo_url
stringclasses
31 values
issue_id
int64
1
104k
title
stringlengths
4
233
body
stringlengths
0
186k
issue_url
stringlengths
38
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
unknown
language
stringclasses
5 values
commit_datetime
unknown
updated_file
stringlengths
7
188
chunk_content
stringlengths
1
1.03M
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,110
[Feature][dolphinscheduler-api] support grant project by code
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Third-party integrated scenarios, support grant through project code ### Use case ## API ## org.apache.dolphinscheduler.api.controller.UsersController#grantProjectByCode ## Request ## | Name | Type | Require | | :--- | :--- | :---: | | userId | Int | ✓ | | projectCodes | String | ✓ | ## Response ## Same as `org.apache.dolphinscheduler.api.controller.UsersController#grantProject` ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7110
https://github.com/apache/dolphinscheduler/pull/7111
fa8ccd3855dfaa19d73cd7541184938f227bb4b7
27ea43d5dfda2556fa5fb02179e7c906408007ad
"2021-12-01T16:08:53Z"
java
"2021-12-04T13:43:14Z"
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.java
/** * query project detail by code * @param projectCode projectCode * @return project */ Project queryByCode(@Param("projectCode") long projectCode); /** * TODO: delete * query project detail by id * @param projectId projectId * @return project */ Project queryDetailById(@Param("projectId") int projectId); /** * query project detail by code * @param projectCode projectCode * @return project */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,110
[Feature][dolphinscheduler-api] support grant project by code
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Third-party integrated scenarios, support grant through project code ### Use case ## API ## org.apache.dolphinscheduler.api.controller.UsersController#grantProjectByCode ## Request ## | Name | Type | Require | | :--- | :--- | :---: | | userId | Int | ✓ | | projectCodes | String | ✓ | ## Response ## Same as `org.apache.dolphinscheduler.api.controller.UsersController#grantProject` ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7110
https://github.com/apache/dolphinscheduler/pull/7111
fa8ccd3855dfaa19d73cd7541184938f227bb4b7
27ea43d5dfda2556fa5fb02179e7c906408007ad
"2021-12-01T16:08:53Z"
java
"2021-12-04T13:43:14Z"
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.java
Project queryDetailByCode(@Param("projectCode") long projectCode); /** * query project by name * @param projectName projectName * @return project */ Project queryByName(@Param("projectName") String projectName); /** * project page * @param page page * @param userId userId * @param searchName searchName * @return project Ipage */ IPage<Project> queryProjectListPaging(IPage<Project> page, @Param("userId") int userId, @Param("searchName") String searchName); /** * query create project user * @param userId userId * @return project list */ List<Project> queryProjectCreatedByUser(@Param("userId") int userId); /** * query authed project list by userId * @param userId userId * @return project list */ List<Project> queryAuthedProjectListByUserId(@Param("userId") int userId); /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,110
[Feature][dolphinscheduler-api] support grant project by code
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Third-party integrated scenarios, support grant through project code ### Use case ## API ## org.apache.dolphinscheduler.api.controller.UsersController#grantProjectByCode ## Request ## | Name | Type | Require | | :--- | :--- | :---: | | userId | Int | ✓ | | projectCodes | String | ✓ | ## Response ## Same as `org.apache.dolphinscheduler.api.controller.UsersController#grantProject` ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7110
https://github.com/apache/dolphinscheduler/pull/7111
fa8ccd3855dfaa19d73cd7541184938f227bb4b7
27ea43d5dfda2556fa5fb02179e7c906408007ad
"2021-12-01T16:08:53Z"
java
"2021-12-04T13:43:14Z"
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.java
* query relation project list by userId * @param userId userId * @return project list */ List<Project> queryRelationProjectListByUserId(@Param("userId") int userId); /** * query project except userId * @param userId userId * @return project list */ List<Project> queryProjectExceptUserId(@Param("userId") int userId); /** * query project list by userId * @param userId * @return */ List<Project> queryProjectCreatedAndAuthorizedByUserId(@Param("userId") int userId); /** * query project name and user name by processInstanceId. * @param processInstanceId processInstanceId * @return projectName and userName */ ProjectUser queryProjectWithUserByProcessInstanceId(@Param("processInstanceId") int processInstanceId); /** * query all project * @return projectList */ List<Project> queryAllProject(); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,093
[Bug] [Dependent] stuck in running
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![](https://files.catbox.moe/3y3efn.png) ![](https://files.catbox.moe/h12kd7.png) dependent stuck in starting.no log output and pid is 0. It seems dependent task not launch. ### What you expected to happen running successfully ### How to reproduce ![](https://files.catbox.moe/hqc4hs.png) ### Anything else _No response_ ### Version 2.0.0 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7093
https://github.com/apache/dolphinscheduler/pull/7116
eb07a2b1c953596dd0c2a420f8bd31334f6dfd3e
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
"2021-12-01T03:05:16Z"
java
"2021-12-05T05:52:48Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,093
[Bug] [Dependent] stuck in running
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![](https://files.catbox.moe/3y3efn.png) ![](https://files.catbox.moe/h12kd7.png) dependent stuck in starting.no log output and pid is 0. It seems dependent task not launch. ### What you expected to happen running successfully ### How to reproduce ![](https://files.catbox.moe/hqc4hs.png) ### Anything else _No response_ ### Version 2.0.0 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7093
https://github.com/apache/dolphinscheduler/pull/7116
eb07a2b1c953596dd0c2a420f8bd31334f6dfd3e
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
"2021-12-01T03:05:16Z"
java
"2021-12-05T05:52:48Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
package org.apache.dolphinscheduler.server.master.runner; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.ExecutionStatus; import org.apache.dolphinscheduler.common.enums.StateEvent; import org.apache.dolphinscheduler.common.enums.StateEventType; import org.apache.dolphinscheduler.common.enums.TimeoutFlag; import org.apache.dolphinscheduler.common.thread.Stopper; import org.apache.dolphinscheduler.common.utils.DateUtils; import org.apache.dolphinscheduler.dao.entity.ProcessInstance; import org.apache.dolphinscheduler.dao.entity.TaskInstance; import org.apache.dolphinscheduler.server.master.cache.ProcessInstanceExecCacheManager; import org.apache.hadoop.util.ThreadUtil; import java.util.concurrent.ConcurrentHashMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 1. timeout check wheel * 2. dependent task check wheel */ public class StateWheelExecuteThread extends Thread { private static final Logger logger = LoggerFactory.getLogger(StateWheelExecuteThread.class); ConcurrentHashMap<Integer, ProcessInstance> processInstanceCheckList; ConcurrentHashMap<Integer, TaskInstance> taskInstanceCheckList; private ProcessInstanceExecCacheManager processInstanceExecCacheManager; private int stateCheckIntervalSecs; public StateWheelExecuteThread(ConcurrentHashMap<Integer, ProcessInstance> processInstances, ConcurrentHashMap<Integer, TaskInstance> taskInstances, ProcessInstanceExecCacheManager processInstanceExecCacheManager, int stateCheckIntervalSecs) { this.processInstanceCheckList = processInstances;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,093
[Bug] [Dependent] stuck in running
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![](https://files.catbox.moe/3y3efn.png) ![](https://files.catbox.moe/h12kd7.png) dependent stuck in starting.no log output and pid is 0. It seems dependent task not launch. ### What you expected to happen running successfully ### How to reproduce ![](https://files.catbox.moe/hqc4hs.png) ### Anything else _No response_ ### Version 2.0.0 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7093
https://github.com/apache/dolphinscheduler/pull/7116
eb07a2b1c953596dd0c2a420f8bd31334f6dfd3e
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
"2021-12-01T03:05:16Z"
java
"2021-12-05T05:52:48Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
this.taskInstanceCheckList = taskInstances; this.processInstanceExecCacheManager = processInstanceExecCacheManager; this.stateCheckIntervalSecs = stateCheckIntervalSecs; } @Override public void run() { logger.info("state wheel thread start"); while (Stopper.isRunning()) { try { checkProcess(); checkTask(); } catch (Exception e) { logger.error("state wheel thread check error:", e); } ThreadUtil.sleepAtLeastIgnoreInterrupts(stateCheckIntervalSecs); } } public boolean addProcess(ProcessInstance processInstance) { this.processInstanceCheckList.put(processInstance.getId(), processInstance); return true; } public boolean addTask(TaskInstance taskInstance) { this.taskInstanceCheckList.put(taskInstance.getId(), taskInstance); return true; } private void checkTask() { if (taskInstanceCheckList.isEmpty()) { return; } for (TaskInstance taskInstance : this.taskInstanceCheckList.values()) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,093
[Bug] [Dependent] stuck in running
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![](https://files.catbox.moe/3y3efn.png) ![](https://files.catbox.moe/h12kd7.png) dependent stuck in starting.no log output and pid is 0. It seems dependent task not launch. ### What you expected to happen running successfully ### How to reproduce ![](https://files.catbox.moe/hqc4hs.png) ### Anything else _No response_ ### Version 2.0.0 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7093
https://github.com/apache/dolphinscheduler/pull/7116
eb07a2b1c953596dd0c2a420f8bd31334f6dfd3e
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
"2021-12-01T03:05:16Z"
java
"2021-12-05T05:52:48Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
if (TimeoutFlag.OPEN == taskInstance.getTaskDefine().getTimeoutFlag()) { long timeRemain = DateUtils.getRemainTime(taskInstance.getStartTime(), taskInstance.getTaskDefine().getTimeout() * Constants.SEC_2_MINUTES_TIME_UNIT); if (0 <= timeRemain && processTimeout(taskInstance)) { taskInstanceCheckList.remove(taskInstance.getId()); return; } } if (taskInstance.taskCanRetry() && taskInstance.retryTaskIntervalOverTime()) { processDependCheck(taskInstance); taskInstanceCheckList.remove(taskInstance.getId()); } if (taskInstance.isSubProcess() || taskInstance.isDependTask()) { processDependCheck(taskInstance); } } } private void checkProcess() { if (processInstanceCheckList.isEmpty()) { return; } for (ProcessInstance processInstance : this.processInstanceCheckList.values()) { long timeRemain = DateUtils.getRemainTime(processInstance.getStartTime(), processInstance.getTimeout() * Constants.SEC_2_MINUTES_TIME_UNIT); if (0 <= timeRemain && processTimeout(processInstance)) { processInstanceCheckList.remove(processInstance.getId()); } } } private void putEvent(StateEvent stateEvent) { if (!processInstanceExecCacheManager.contains(stateEvent.getProcessInstanceId())) { return;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,093
[Bug] [Dependent] stuck in running
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened ![](https://files.catbox.moe/3y3efn.png) ![](https://files.catbox.moe/h12kd7.png) dependent stuck in starting.no log output and pid is 0. It seems dependent task not launch. ### What you expected to happen running successfully ### How to reproduce ![](https://files.catbox.moe/hqc4hs.png) ### Anything else _No response_ ### Version 2.0.0 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7093
https://github.com/apache/dolphinscheduler/pull/7116
eb07a2b1c953596dd0c2a420f8bd31334f6dfd3e
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
"2021-12-01T03:05:16Z"
java
"2021-12-05T05:52:48Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
} WorkflowExecuteThread workflowExecuteThread = this.processInstanceExecCacheManager.getByProcessInstanceId(stateEvent.getProcessInstanceId()); workflowExecuteThread.addStateEvent(stateEvent); } private boolean processDependCheck(TaskInstance taskInstance) { StateEvent stateEvent = new StateEvent(); stateEvent.setType(StateEventType.TASK_STATE_CHANGE); stateEvent.setProcessInstanceId(taskInstance.getProcessInstanceId()); stateEvent.setTaskInstanceId(taskInstance.getId()); stateEvent.setExecutionStatus(ExecutionStatus.RUNNING_EXECUTION); putEvent(stateEvent); return true; } private boolean processTimeout(TaskInstance taskInstance) { StateEvent stateEvent = new StateEvent(); stateEvent.setType(StateEventType.TASK_TIMEOUT); stateEvent.setProcessInstanceId(taskInstance.getProcessInstanceId()); stateEvent.setTaskInstanceId(taskInstance.getId()); putEvent(stateEvent); return true; } private boolean processTimeout(ProcessInstance processInstance) { StateEvent stateEvent = new StateEvent(); stateEvent.setType(StateEventType.PROCESS_TIMEOUT); stateEvent.setProcessInstanceId(processInstance.getId()); putEvent(stateEvent); return true; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.common; import org.apache.dolphinscheduler.common.enums.ExecutionStatus; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.SystemUtils; import java.util.regex.Pattern; /** * Constants */ public final class Constants { private Constants() { throw new UnsupportedOperationException("Construct Constants"); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * common properties path */ public static final String COMMON_PROPERTIES_PATH = "/common.properties"; /** * alert properties */ public static final String ALERT_RPC_PORT = "alert.rpc.port"; /** * registry properties */ public static final String REGISTRY_DOLPHINSCHEDULER_MASTERS = "/nodes/master"; public static final String REGISTRY_DOLPHINSCHEDULER_WORKERS = "/nodes/worker"; public static final String REGISTRY_DOLPHINSCHEDULER_DEAD_SERVERS = "/dead-servers"; public static final String REGISTRY_DOLPHINSCHEDULER_NODE = "/nodes"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_MASTERS = "/lock/masters"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_MASTERS = "/lock/failover/masters"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_WORKERS = "/lock/failover/workers"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_STARTUP_MASTERS = "/lock/failover/startup-masters"; /** * fs.defaultFS */ public static final String FS_DEFAULTFS = "fs.defaultFS"; /** * fs s3a endpoint */ public static final String FS_S3A_ENDPOINT = "fs.s3a.endpoint"; /** * fs s3a access key */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String FS_S3A_ACCESS_KEY = "fs.s3a.access.key"; /** * fs s3a secret key */ public static final String FS_S3A_SECRET_KEY = "fs.s3a.secret.key"; /** * hadoop configuration */ public static final String HADOOP_RM_STATE_ACTIVE = "ACTIVE"; public static final String HADOOP_RESOURCE_MANAGER_HTTPADDRESS_PORT = "resource.manager.httpaddress.port"; /** * yarn.resourcemanager.ha.rm.ids */ public static final String YARN_RESOURCEMANAGER_HA_RM_IDS = "yarn.resourcemanager.ha.rm.ids"; /** * yarn.application.status.address */ public static final String YARN_APPLICATION_STATUS_ADDRESS = "yarn.application.status.address"; /** * yarn.job.history.status.address */ public static final String YARN_JOB_HISTORY_STATUS_ADDRESS = "yarn.job.history.status.address"; /** * hdfs configuration * hdfs.root.user */ public static final String HDFS_ROOT_USER = "hdfs.root.user"; /** * hdfs/s3 configuration * resource.upload.path
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String RESOURCE_UPLOAD_PATH = "resource.upload.path"; /** * data basedir path */ public static final String DATA_BASEDIR_PATH = "data.basedir.path"; /** * dolphinscheduler.env.path */ public static final String DOLPHINSCHEDULER_ENV_PATH = "dolphinscheduler.env.path"; /** * environment properties default path */ public static final String ENV_PATH = "env/dolphinscheduler_env.sh"; /** * resource.view.suffixs */ public static final String RESOURCE_VIEW_SUFFIXS = "resource.view.suffixs"; public static final String RESOURCE_VIEW_SUFFIXS_DEFAULT_VALUE = "txt,log,sh,bat,conf,cfg,py,java,sql,xml,hql,properties,json,yml,yaml,ini,js"; /** * development.state */ public static final String DEVELOPMENT_STATE = "development.state"; /** * sudo enable */ public static final String SUDO_ENABLE = "sudo.enable"; /** * string true */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String STRING_TRUE = "true"; /** * resource storage type */ public static final String RESOURCE_STORAGE_TYPE = "resource.storage.type"; /** * comma , */ public static final String COMMA = ","; /** * COLON : */ public static final String COLON = ":"; /** * SINGLE_SLASH / */ public static final String SINGLE_SLASH = "/"; /** * DOUBLE_SLASH // */ public static final String DOUBLE_SLASH = "//"; /** * EQUAL SIGN */ public static final String EQUAL_SIGN = "="; /** * date format of yyyy-MM-dd HH:mm:ss */ public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* date format of yyyyMMdd */ public static final String YYYYMMDD = "yyyyMMdd"; /** * date format of yyyyMMddHHmmss */ public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; /** * date format of yyyyMMddHHmmssSSS */ public static final String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS"; /** * http connect time out */ public static final int HTTP_CONNECT_TIMEOUT = 60 * 1000; /** * http connect request time out */ public static final int HTTP_CONNECTION_REQUEST_TIMEOUT = 60 * 1000; /** * httpclient soceket time out */ public static final int SOCKET_TIMEOUT = 60 * 1000; /** * http header */ public static final String HTTP_HEADER_UNKNOWN = "unKnown"; /** * http X-Forwarded-For */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String HTTP_X_FORWARDED_FOR = "X-Forwarded-For"; /** * http X-Real-IP */ public static final String HTTP_X_REAL_IP = "X-Real-IP"; /** * UTF-8 */ public static final String UTF_8 = "UTF-8"; /** * user name regex */ public static final Pattern REGEX_USER_NAME = Pattern.compile("^[a-zA-Z0-9._-]{3,39}$"); /** * email regex */ public static final Pattern REGEX_MAIL_NAME = Pattern.compile("^([a-z0-9A-Z]+[_|\\-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"); /** * read permission */ public static final int READ_PERMISSION = 2; /** * write permission */ public static final int WRITE_PERMISSION = 2 * 2; /** * execute permission */ public static final int EXECUTE_PERMISSION = 1; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* default admin permission */ public static final int DEFAULT_ADMIN_PERMISSION = 7; /** * all permissions */ public static final int ALL_PERMISSIONS = READ_PERMISSION | WRITE_PERMISSION | EXECUTE_PERMISSION; /** * max task timeout */ public static final int MAX_TASK_TIMEOUT = 24 * 3600; /** * worker host weight */ public static final int DEFAULT_WORKER_HOST_WEIGHT = 100; /** * time unit secong to minutes */ public static final int SEC_2_MINUTES_TIME_UNIT = 60; /*** * * rpc port */ public static final String RPC_PORT = "rpc.port"; /** * forbid running task */ public static final String FLOWNODE_RUN_FLAG_FORBIDDEN = "FORBIDDEN"; /** * normal running task
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String FLOWNODE_RUN_FLAG_NORMAL = "NORMAL"; public static final String COMMON_TASK_TYPE = "common"; public static final String DEFAULT = "default"; public static final String PASSWORD = "password"; public static final String XXXXXX = "******"; public static final String NULL = "NULL"; public static final String THREAD_NAME_MASTER_SERVER = "Master-Server"; public static final String THREAD_NAME_WORKER_SERVER = "Worker-Server"; /** * command parameter keys */ public static final String CMD_PARAM_RECOVER_PROCESS_ID_STRING = "ProcessInstanceId"; public static final String CMD_PARAM_RECOVERY_START_NODE_STRING = "StartNodeIdList"; public static final String CMD_PARAM_RECOVERY_WAITING_THREAD = "WaitingThreadInstanceId"; public static final String CMD_PARAM_SUB_PROCESS = "processInstanceId"; public static final String CMD_PARAM_EMPTY_SUB_PROCESS = "0"; public static final String CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID = "parentProcessInstanceId"; public static final String CMD_PARAM_SUB_PROCESS_DEFINE_CODE = "processDefinitionCode"; public static final String CMD_PARAM_START_NODES = "StartNodeList"; public static final String CMD_PARAM_START_PARAMS = "StartParams"; public static final String CMD_PARAM_FATHER_PARAMS = "fatherParams"; /** * complement data start date */ public static final String CMDPARAM_COMPLEMENT_DATA_START_DATE = "complementStartDate"; /** * complement data end date */ public static final String CMDPARAM_COMPLEMENT_DATA_END_DATE = "complementEndDate";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * complement date default cron string */ public static final String DEFAULT_CRON_STRING = "0 0 0 * * ? *"; public static final int SLEEP_TIME_MILLIS = 1000; /** * one second mils */ public static final int SECOND_TIME_MILLIS = 1000; /** * master task instance cache-database refresh interval */ public static final int CACHE_REFRESH_TIME_MILLIS = 20 * 1000; /** * heartbeat for zk info length */ public static final int HEARTBEAT_FOR_ZOOKEEPER_INFO_LENGTH = 13; /** * jar */ public static final String JAR = "jar"; /** * hadoop */ public static final String HADOOP = "hadoop"; /** * -D <property>=<value> */ public static final String D = "-D"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* exit code success */ public static final int EXIT_CODE_SUCCESS = 0; /** * exit code failure */ public static final int EXIT_CODE_FAILURE = -1; /** * process or task definition failure */ public static final int DEFINITION_FAILURE = -1; /** * process or task definition first version */ public static final int VERSION_FIRST = 1; /** * date format of yyyyMMdd */ public static final String PARAMETER_FORMAT_DATE = "yyyyMMdd"; /** * date format of yyyyMMddHHmmss */ public static final String PARAMETER_FORMAT_TIME = "yyyyMMddHHmmss"; /** * system date(yyyyMMddHHmmss) */ public static final String PARAMETER_DATETIME = "system.datetime"; /** * system date(yyyymmdd) today */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String PARAMETER_CURRENT_DATE = "system.biz.curdate"; /** * system date(yyyymmdd) yesterday */ public static final String PARAMETER_BUSINESS_DATE = "system.biz.date"; /** * ACCEPTED */ public static final String ACCEPTED = "ACCEPTED"; /** * SUCCEEDED */ public static final String SUCCEEDED = "SUCCEEDED"; /** * NEW */ public static final String NEW = "NEW"; /** * NEW_SAVING */ public static final String NEW_SAVING = "NEW_SAVING"; /** * SUBMITTED */ public static final String SUBMITTED = "SUBMITTED"; /** * FAILED */ public static final String FAILED = "FAILED"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* KILLED */ public static final String KILLED = "KILLED"; /** * RUNNING */ public static final String RUNNING = "RUNNING"; /** * underline "_" */ public static final String UNDERLINE = "_"; /** * quartz job prifix */ public static final String QUARTZ_JOB_PRIFIX = "job"; /** * quartz job group prifix */ public static final String QUARTZ_JOB_GROUP_PRIFIX = "jobgroup"; /** * projectId */ public static final String PROJECT_ID = "projectId"; /** * processId */ public static final String SCHEDULE_ID = "scheduleId"; /** * schedule */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String SCHEDULE = "schedule"; /** * application regex */ public static final String APPLICATION_REGEX = "application_\\d+_\\d+"; public static final String PID = SystemUtils.IS_OS_WINDOWS ? "handle" : "pid"; /** * month_begin */ public static final String MONTH_BEGIN = "month_begin"; /** * add_months */ public static final String ADD_MONTHS = "add_months"; /** * month_end */ public static final String MONTH_END = "month_end"; /** * week_begin */ public static final String WEEK_BEGIN = "week_begin"; /** * week_end */ public static final String WEEK_END = "week_end"; /** * timestamp */ public static final String TIMESTAMP = "timestamp";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final char SUBTRACT_CHAR = '-'; public static final char ADD_CHAR = '+'; public static final char MULTIPLY_CHAR = '*'; public static final char DIVISION_CHAR = '/'; public static final char LEFT_BRACE_CHAR = '('; public static final char RIGHT_BRACE_CHAR = ')'; public static final String ADD_STRING = "+"; public static final String STAR = "*"; public static final String DIVISION_STRING = "/"; public static final String LEFT_BRACE_STRING = "("; public static final char P = 'P'; public static final char N = 'N'; public static final String SUBTRACT_STRING = "-"; public static final String GLOBAL_PARAMS = "globalParams"; public static final String LOCAL_PARAMS = "localParams"; public static final String SUBPROCESS_INSTANCE_ID = "subProcessInstanceId"; public static final String PROCESS_INSTANCE_STATE = "processInstanceState"; public static final String PARENT_WORKFLOW_INSTANCE = "parentWorkflowInstance"; public static final String CONDITION_RESULT = "conditionResult"; public static final String SWITCH_RESULT = "switchResult"; public static final String WAIT_START_TIMEOUT = "waitStartTimeout"; public static final String DEPENDENCE = "dependence"; public static final String TASK_LIST = "taskList"; public static final String QUEUE = "queue"; public static final String QUEUE_NAME = "queueName"; public static final int LOG_QUERY_SKIP_LINE_NUMBER = 0; public static final int LOG_QUERY_LIMIT = 4096; /** * master/worker server use for zk */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String MASTER_TYPE = "master"; public static final String WORKER_TYPE = "worker"; public static final String DELETE_OP = "delete"; public static final String ADD_OP = "add"; public static final String ALIAS = "alias"; public static final String CONTENT = "content"; public static final String DEPENDENT_SPLIT = ":||"; public static final long DEPENDENT_ALL_TASK_CODE = 0; /** * preview schedule execute count */ public static final int PREVIEW_SCHEDULE_EXECUTE_COUNT = 5; /** * kerberos */ public static final String KERBEROS = "kerberos"; /** * kerberos expire time */ public static final String KERBEROS_EXPIRE_TIME = "kerberos.expire.time"; /** * java.security.krb5.conf */ public static final String JAVA_SECURITY_KRB5_CONF = "java.security.krb5.conf"; /** * java.security.krb5.conf.path */ public static final String JAVA_SECURITY_KRB5_CONF_PATH = "java.security.krb5.conf.path"; /** * hadoop.security.authentication
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String HADOOP_SECURITY_AUTHENTICATION = "hadoop.security.authentication"; /** * hadoop.security.authentication */ public static final String HADOOP_SECURITY_AUTHENTICATION_STARTUP_STATE = "hadoop.security.authentication.startup.state"; /** * com.amazonaws.services.s3.enableV4 */ public static final String AWS_S3_V4 = "com.amazonaws.services.s3.enableV4"; /** * loginUserFromKeytab user */ public static final String LOGIN_USER_KEY_TAB_USERNAME = "login.user.keytab.username"; /** * loginUserFromKeytab path */ public static final String LOGIN_USER_KEY_TAB_PATH = "login.user.keytab.path"; /** * task log info format */ public static final String TASK_LOG_INFO_FORMAT = "TaskLogInfo-%s"; public static final int[] NOT_TERMINATED_STATES = new int[] { ExecutionStatus.SUBMITTED_SUCCESS.ordinal(), ExecutionStatus.RUNNING_EXECUTION.ordinal(), ExecutionStatus.DELAY_EXECUTION.ordinal(), ExecutionStatus.READY_PAUSE.ordinal(), ExecutionStatus.READY_STOP.ordinal(), ExecutionStatus.NEED_FAULT_TOLERANCE.ordinal(), ExecutionStatus.WAITING_THREAD.ordinal(),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
ExecutionStatus.WAITING_DEPEND.ordinal() }; public static final int[] RUNNING_PROCESS_STATE = new int[] { ExecutionStatus.RUNNING_EXECUTION.ordinal(), ExecutionStatus.SUBMITTED_SUCCESS.ordinal(), ExecutionStatus.SERIAL_WAIT.ordinal() }; /** * status */ public static final String STATUS = "status"; /** * message */ public static final String MSG = "msg"; /** * data total */ public static final String COUNT = "count"; /** * page size */ public static final String PAGE_SIZE = "pageSize"; /** * current page no */ public static final String PAGE_NUMBER = "pageNo"; /** * */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String DATA_LIST = "data"; public static final String TOTAL_LIST = "totalList"; public static final String CURRENT_PAGE = "currentPage"; public static final String TOTAL_PAGE = "totalPage"; public static final String TOTAL = "total"; /** * workflow */ public static final String WORKFLOW_LIST = "workFlowList"; public static final String WORKFLOW_RELATION_LIST = "workFlowRelationList"; /** * session user */ public static final String SESSION_USER = "session.user"; public static final String SESSION_ID = "sessionId"; /** * locale */ public static final String LOCALE_LANGUAGE = "language"; /** * database type */ public static final String MYSQL = "MYSQL"; public static final String HIVE = "HIVE"; public static final String ADDRESS = "address"; public static final String DATABASE = "database"; public static final String OTHER = "other"; /** * session timeout */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final int SESSION_TIME_OUT = 7200; public static final int MAX_FILE_SIZE = 1024 * 1024 * 1024; public static final String UDF = "UDF"; public static final String CLASS = "class"; /** * dataSource sensitive param */ public static final String DATASOURCE_PASSWORD_REGEX = "(?<=((?i)password((\\\\\":\\\\\")|(=')))).*?(?=((\\\\\")|(')))"; /** * default worker group */ public static final String DEFAULT_WORKER_GROUP = "default"; /** * authorize writable perm */ public static final int AUTHORIZE_WRITABLE_PERM = 7; /** * authorize readable perm */ public static final int AUTHORIZE_READABLE_PERM = 4; public static final int NORMAL_NODE_STATUS = 0; public static final int ABNORMAL_NODE_STATUS = 1; public static final int BUSY_NODE_STATUE = 2; public static final String START_TIME = "start time"; public static final String END_TIME = "end time"; public static final String START_END_DATE = "startDate,endDate"; /** * system line separator */ public static final String SYSTEM_LINE_SEPARATOR = System.getProperty("line.separator");
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * datasource encryption salt */ public static final String DATASOURCE_ENCRYPTION_SALT_DEFAULT = "!@#$%^&*"; public static final String DATASOURCE_ENCRYPTION_ENABLE = "datasource.encryption.enable"; public static final String DATASOURCE_ENCRYPTION_SALT = "datasource.encryption.salt"; /** * network interface preferred */ public static final String DOLPHIN_SCHEDULER_NETWORK_INTERFACE_PREFERRED = "dolphin.scheduler.network.interface.preferred"; /** * network IP gets priority, default inner outer */ public static final String DOLPHIN_SCHEDULER_NETWORK_PRIORITY_STRATEGY = "dolphin.scheduler.network.priority.strategy"; /** * exec shell scripts */ public static final String SH = "sh"; /** * pstree, get pud and sub pid */ public static final String PSTREE = "pstree"; public static final Boolean KUBERNETES_MODE = !StringUtils.isEmpty(System.getenv("KUBERNETES_SERVICE_HOST")) && !StringUtils.isEmpty(System.getenv("KUBERNETES_SERVICE_PORT")); /** * dry run flag */ public static final int DRY_RUN_FLAG_NO = 0; public static final int DRY_RUN_FLAG_YES = 1; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.common.utils; import static org.apache.dolphinscheduler.common.Constants.RESOURCE_UPLOAD_PATH; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.ExecutionStatus; import org.apache.dolphinscheduler.common.enums.ResUploadType; import org.apache.dolphinscheduler.common.exception.BaseException; import org.apache.dolphinscheduler.spi.enums.ResourceType; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
import org.apache.hadoop.fs.FileUtil; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.HdfsConfiguration; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.yarn.client.cli.RMAdminCLI; import java.io.BufferedReader; import java.io.Closeable; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.security.PrivilegedExceptionAction; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import java.util.stream.Stream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; /** * hadoop utils * single instance */ public class HadoopUtils implements Closeable {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
private static final Logger logger = LoggerFactory.getLogger(HadoopUtils.class); private static String hdfsUser = PropertyUtils.getString(Constants.HDFS_ROOT_USER); public static final String resourceUploadPath = PropertyUtils.getString(RESOURCE_UPLOAD_PATH, "/dolphinscheduler"); public static final String rmHaIds = PropertyUtils.getString(Constants.YARN_RESOURCEMANAGER_HA_RM_IDS); public static final String appAddress = PropertyUtils.getString(Constants.YARN_APPLICATION_STATUS_ADDRESS); public static final String jobHistoryAddress = PropertyUtils.getString(Constants.YARN_JOB_HISTORY_STATUS_ADDRESS); public static final int HADOOP_RESOURCE_MANAGER_HTTP_ADDRESS_PORT_VALUE = PropertyUtils.getInt(Constants.HADOOP_RESOURCE_MANAGER_HTTPADDRESS_PORT, 8088); private static final String HADOOP_UTILS_KEY = "HADOOP_UTILS_KEY"; private static final LoadingCache<String, HadoopUtils> cache = CacheBuilder .newBuilder() .expireAfterWrite(PropertyUtils.getInt(Constants.KERBEROS_EXPIRE_TIME, 2), TimeUnit.HOURS) .build(new CacheLoader<String, HadoopUtils>() { @Override public HadoopUtils load(String key) throws Exception { return new HadoopUtils(); } }); private static volatile boolean yarnEnabled = false; private Configuration configuration; private FileSystem fs; private HadoopUtils() { init(); initHdfsPath(); } public static HadoopUtils getInstance() {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
return cache.getUnchecked(HADOOP_UTILS_KEY); } /** * init dolphinscheduler root path in hdfs */ private void initHdfsPath() { Path path = new Path(resourceUploadPath); try { if (!fs.exists(path)) { fs.mkdirs(path); } } catch (Exception e) { logger.error(e.getMessage(), e); } } /** * init hadoop configuration */ private void init() { try { configuration = new HdfsConfiguration(); String resourceStorageType = PropertyUtils.getUpperCaseString(Constants.RESOURCE_STORAGE_TYPE); ResUploadType resUploadType = ResUploadType.valueOf(resourceStorageType); if (resUploadType == ResUploadType.HDFS) { if (CommonUtils.loadKerberosConf(configuration)) { hdfsUser = ""; } String defaultFS = configuration.get(Constants.FS_DEFAULTFS);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
if (defaultFS.startsWith("file")) { String defaultFSProp = PropertyUtils.getString(Constants.FS_DEFAULTFS); if (StringUtils.isNotBlank(defaultFSProp)) { Map<String, String> fsRelatedProps = PropertyUtils.getPrefixedProperties("fs."); configuration.set(Constants.FS_DEFAULTFS, defaultFSProp); fsRelatedProps.forEach((key, value) -> configuration.set(key, value)); } else { logger.error("property:{} can not to be empty, please set!", Constants.FS_DEFAULTFS); throw new RuntimeException( String.format("property: %s can not to be empty, please set!", Constants.FS_DEFAULTFS) ); } } else { logger.info("get property:{} -> {}, from core-site.xml hdfs-site.xml ", Constants.FS_DEFAULTFS, defaultFS); } if (StringUtils.isNotEmpty(hdfsUser)) { UserGroupInformation ugi = UserGroupInformation.createRemoteUser(hdfsUser); ugi.doAs((PrivilegedExceptionAction<Boolean>) () -> { fs = FileSystem.get(configuration); return true; }); } else { logger.warn("hdfs.root.user is not set value!"); fs = FileSystem.get(configuration); } } else if (resUploadType == ResUploadType.S3) { System.setProperty(Constants.AWS_S3_V4, Constants.STRING_TRUE); configuration.set(Constants.FS_DEFAULTFS, PropertyUtils.getString(Constants.FS_DEFAULTFS)); configuration.set(Constants.FS_S3A_ENDPOINT, PropertyUtils.getString(Constants.FS_S3A_ENDPOINT)); configuration.set(Constants.FS_S3A_ACCESS_KEY, PropertyUtils.getString(Constants.FS_S3A_ACCESS_KEY));
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
configuration.set(Constants.FS_S3A_SECRET_KEY, PropertyUtils.getString(Constants.FS_S3A_SECRET_KEY)); fs = FileSystem.get(configuration); } } catch (Exception e) { logger.error(e.getMessage(), e); } } /** * @return Configuration */ public Configuration getConfiguration() { return configuration; } /** * @return DefaultFS */ public String getDefaultFS() { return getConfiguration().get(Constants.FS_DEFAULTFS); } /** * get application url * * @param applicationId application id * @return url of application */ public String getApplicationUrl(String applicationId) throws Exception { /** * if rmHaIds contains xx, it signs not use resourcemanager * otherwise: * if rmHaIds is empty, single resourcemanager enabled
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
* if rmHaIds not empty: resourcemanager HA enabled */ yarnEnabled = true; String appUrl = StringUtils.isEmpty(rmHaIds) ? appAddress : getAppAddress(appAddress, rmHaIds); if (StringUtils.isBlank(appUrl)) { throw new BaseException("yarn application url generation failed"); } if (logger.isDebugEnabled()) { logger.debug("yarn application url:{}, applicationId:{}", appUrl, applicationId); } return String.format(appUrl, HADOOP_RESOURCE_MANAGER_HTTP_ADDRESS_PORT_VALUE, applicationId); } public String getJobHistoryUrl(String applicationId) { String jobId = applicationId.replace("application", "job"); return String.format(jobHistoryAddress, jobId); } /** * cat file on hdfs * * @param hdfsFilePath hdfs file path * @return byte[] byte array * @throws IOException errors */ public byte[] catFile(String hdfsFilePath) throws IOException { if (StringUtils.isBlank(hdfsFilePath)) { logger.error("hdfs file path:{} is blank", hdfsFilePath); return new byte[0]; } try (FSDataInputStream fsDataInputStream = fs.open(new Path(hdfsFilePath))) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
return IOUtils.toByteArray(fsDataInputStream); } } /** * cat file on hdfs * * @param hdfsFilePath hdfs file path * @param skipLineNums skip line numbers * @param limit read how many lines * @return content of file * @throws IOException errors */ public List<String> catFile(String hdfsFilePath, int skipLineNums, int limit) throws IOException { if (StringUtils.isBlank(hdfsFilePath)) { logger.error("hdfs file path:{} is blank", hdfsFilePath); return Collections.emptyList(); } try (FSDataInputStream in = fs.open(new Path(hdfsFilePath))) { BufferedReader br = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)); Stream<String> stream = br.lines().skip(skipLineNums).limit(limit); return stream.collect(Collectors.toList()); } } /** * make the given file and all non-existent parents into * directories. Has the semantics of Unix 'mkdir -p'. * Existence of the directory hierarchy is not an error. * * @param hdfsPath path to create * @return mkdir result
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
* @throws IOException errors */ public boolean mkdir(String hdfsPath) throws IOException { return fs.mkdirs(new Path(hdfsPath)); } /** * copy files between FileSystems * * @param srcPath source hdfs path * @param dstPath destination hdfs path * @param deleteSource whether to delete the src * @param overwrite whether to overwrite an existing file * @return if success or not * @throws IOException errors */ public boolean copy(String srcPath, String dstPath, boolean deleteSource, boolean overwrite) throws IOException { return FileUtil.copy(fs, new Path(srcPath), fs, new Path(dstPath), deleteSource, overwrite, fs.getConf()); } /** * the src file is on the local disk. Add it to FS at * the given dst name. * * @param srcFile local file * @param dstHdfsPath destination hdfs path * @param deleteSource whether to delete the src * @param overwrite whether to overwrite an existing file * @return if success or not * @throws IOException errors */ public boolean copyLocalToHdfs(String srcFile, String dstHdfsPath, boolean deleteSource, boolean overwrite) throws IOException {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
Path srcPath = new Path(srcFile); Path dstPath = new Path(dstHdfsPath); fs.copyFromLocalFile(deleteSource, overwrite, srcPath, dstPath); return true; } /** * copy hdfs file to local * * @param srcHdfsFilePath source hdfs file path * @param dstFile destination file * @param deleteSource delete source * @param overwrite overwrite * @return result of copy hdfs file to local * @throws IOException errors */ public boolean copyHdfsToLocal(String srcHdfsFilePath, String dstFile, boolean deleteSource, boolean overwrite) throws IOException { Path srcPath = new Path(srcHdfsFilePath); File dstPath = new File(dstFile); if (dstPath.exists()) { if (dstPath.isFile()) { if (overwrite) { Files.delete(dstPath.toPath()); } } else { logger.error("destination file must be a file"); } } if (!dstPath.getParentFile().exists()) { dstPath.getParentFile().mkdirs(); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
return FileUtil.copy(fs, srcPath, dstPath, deleteSource, fs.getConf()); } /** * delete a file * * @param hdfsFilePath the path to delete. * @param recursive if path is a directory and set to * true, the directory is deleted else throws an exception. In * case of a file the recursive can be set to either true or false. * @return true if delete is successful else false. * @throws IOException errors */ public boolean delete(String hdfsFilePath, boolean recursive) throws IOException { return fs.delete(new Path(hdfsFilePath), recursive); } /** * check if exists * * @param hdfsFilePath source file path * @return result of exists or not * @throws IOException errors */ public boolean exists(String hdfsFilePath) throws IOException { return fs.exists(new Path(hdfsFilePath)); } /** * Gets a list of files in the directory * * @param filePath file path * @return {@link FileStatus} file status
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
* @throws Exception errors */ public FileStatus[] listFileStatus(String filePath) throws Exception { try { return fs.listStatus(new Path(filePath)); } catch (IOException e) { logger.error("Get file list exception", e); throw new Exception("Get file list exception", e); } } /** * Renames Path src to Path dst. Can take place on local fs * or remote DFS. * * @param src path to be renamed * @param dst new path after rename * @return true if rename is successful * @throws IOException on failure */ public boolean rename(String src, String dst) throws IOException { return fs.rename(new Path(src), new Path(dst)); } /** * hadoop resourcemanager enabled or not * * @return result */ public boolean isYarnEnabled() { return yarnEnabled; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
/** * get the state of an application * * @param applicationId application id * @return the return may be null or there may be other parse exceptions */ public ExecutionStatus getApplicationStatus(String applicationId) throws Exception { if (StringUtils.isEmpty(applicationId)) { return null; } String result = Constants.FAILED; String applicationUrl = getApplicationUrl(applicationId); if (logger.isDebugEnabled()) { logger.debug("generate yarn application url, applicationUrl={}", applicationUrl); } String responseContent = PropertyUtils.getBoolean(Constants.HADOOP_SECURITY_AUTHENTICATION_STARTUP_STATE, false) ? KerberosHttpClient.get(applicationUrl) : HttpUtils.get(applicationUrl); if (responseContent != null) { ObjectNode jsonObject = JSONUtils.parseObject(responseContent); if (!jsonObject.has("app")) { return ExecutionStatus.FAILURE; } result = jsonObject.path("app").path("finalStatus").asText(); } else { String jobHistoryUrl = getJobHistoryUrl(applicationId); if (logger.isDebugEnabled()) { logger.debug("generate yarn job history application url, jobHistoryUrl={}", jobHistoryUrl); } responseContent = PropertyUtils.getBoolean(Constants.HADOOP_SECURITY_AUTHENTICATION_STARTUP_STATE, false) ? KerberosHttpClient.get(jobHistoryUrl) : HttpUtils.get(jobHistoryUrl); if (null != responseContent) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
ObjectNode jsonObject = JSONUtils.parseObject(responseContent); if (!jsonObject.has("job")) { return ExecutionStatus.FAILURE; } result = jsonObject.path("job").path("state").asText(); } else { return ExecutionStatus.FAILURE; } } switch (result) { case Constants.ACCEPTED: return ExecutionStatus.SUBMITTED_SUCCESS; case Constants.SUCCEEDED: return ExecutionStatus.SUCCESS; case Constants.NEW: case Constants.NEW_SAVING: case Constants.SUBMITTED: case Constants.FAILED: return ExecutionStatus.FAILURE; case Constants.KILLED: return ExecutionStatus.KILL; case Constants.RUNNING: default: return ExecutionStatus.RUNNING_EXECUTION; } } /** * get data hdfs path * * @return data hdfs path
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
*/ public static String getHdfsDataBasePath() { if ("/".equals(resourceUploadPath)) { return ""; } else { return resourceUploadPath; } } /** * hdfs resource dir * * @param tenantCode tenant code * @param resourceType resource type * @return hdfs resource dir */ public static String getHdfsDir(ResourceType resourceType, String tenantCode) { String hdfsDir = ""; if (resourceType.equals(ResourceType.FILE)) { hdfsDir = getHdfsResDir(tenantCode); } else if (resourceType.equals(ResourceType.UDF)) { hdfsDir = getHdfsUdfDir(tenantCode); } return hdfsDir; } /** * hdfs resource dir * * @param tenantCode tenant code * @return hdfs resource dir
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
*/ public static String getHdfsResDir(String tenantCode) { return String.format("%s/resources", getHdfsTenantDir(tenantCode)); } /** * hdfs user dir * * @param tenantCode tenant code * @param userId user id * @return hdfs resource dir */ public static String getHdfsUserDir(String tenantCode, int userId) { return String.format("%s/home/%d", getHdfsTenantDir(tenantCode), userId); } /** * hdfs udf dir * * @param tenantCode tenant code * @return get udf dir on hdfs */ public static String getHdfsUdfDir(String tenantCode) { return String.format("%s/udfs", getHdfsTenantDir(tenantCode)); } /** * get hdfs file name * * @param resourceType resource type * @param tenantCode tenant code * @param fileName file name * @return hdfs file name
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
*/ public static String getHdfsFileName(ResourceType resourceType, String tenantCode, String fileName) { if (fileName.startsWith("/")) { fileName = fileName.replaceFirst("/", ""); } return String.format("%s/%s", getHdfsDir(resourceType, tenantCode), fileName); } /** * get absolute path and name for resource file on hdfs * * @param tenantCode tenant code * @param fileName file name * @return get absolute path and name for file on hdfs */ public static String getHdfsResourceFileName(String tenantCode, String fileName) { if (fileName.startsWith("/")) { fileName = fileName.replaceFirst("/", ""); } return String.format("%s/%s", getHdfsResDir(tenantCode), fileName); } /** * get absolute path and name for udf file on hdfs * * @param tenantCode tenant code * @param fileName file name * @return get absolute path and name for udf file on hdfs */ public static String getHdfsUdfFileName(String tenantCode, String fileName) { if (fileName.startsWith("/")) { fileName = fileName.replaceFirst("/", "");
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
} return String.format("%s/%s", getHdfsUdfDir(tenantCode), fileName); } /** * @param tenantCode tenant code * @return file directory of tenants on hdfs */ public static String getHdfsTenantDir(String tenantCode) { return String.format("%s/%s", getHdfsDataBasePath(), tenantCode); } /** * getAppAddress * * @param appAddress app address * @param rmHa resource manager ha * @return app address */ public static String getAppAddress(String appAddress, String rmHa) { String activeRM = YarnHAAdminUtils.getActiveRMName(rmHa); if (StringUtils.isEmpty(activeRM)) { return null; } String[] split1 = appAddress.split(Constants.DOUBLE_SLASH); if (split1.length != 2) { return null; } String start = split1[0] + Constants.DOUBLE_SLASH; String[] split2 = split1[1].split(Constants.COLON); if (split2.length != 2) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
return null; } String end = Constants.COLON + split2[1]; return start + activeRM + end; } @Override public void close() throws IOException { if (fs != null) { try { fs.close(); } catch (IOException e) { logger.error("Close HadoopUtils instance failed", e); throw new IOException("Close HadoopUtils instance failed", e); } } } /** * yarn ha admin utils */ private static final class YarnHAAdminUtils extends RMAdminCLI { /** * get active resourcemanager */ public static String getActiveRMName(String rmIds) { String[] rmIdArr = rmIds.split(Constants.COMMA); String yarnUrl = "http://%s:" + HADOOP_RESOURCE_MANAGER_HTTP_ADDRESS_PORT_VALUE + "/ws/v1/cluster/info"; try { /** * send http get request to rm */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
5,551
[Bug][Module Name] job state always in final state:RUNNING_EXECUTION when execution engine is tez
``` yarn application -status application_1621995850095_6901 21/05/27 07:06:04 INFO client.RMProxy: Connecting to ResourceManager at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:8032 21/05/27 07:06:04 INFO client.AHSProxy: Connecting to Application History server at ip-192-168-24-254.us-west-2.compute.internal/192.168.24.254:10200 21/05/27 07:06:04 INFO conf.Configuration: resource-types.xml not found 21/05/27 07:06:04 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'. 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = memory-mb, units = Mi, type = COUNTABLE 21/05/27 07:06:04 INFO resource.ResourceUtils: Adding resource type - name = vcores, units = , type = COUNTABLE Application Report : Application-Id : application_1621995850095_6901 Application-Name : HIVE-f07905b9-25b6-4e3f-93a4-652ed349b9bd Application-Type : TEZ User : hadoop Queue : default Application Priority : 0 Start-Time : 1622098349177 Finish-Time : 1622098762224 Progress : 100% State : FINISHED Final-State : ENDED job final state is not SUCCEEDED but ENDED.Cause shell command always running. worker.log [INFO] 2021-05-27 07:05:41.030 - [taskAppId=TASK-10-264-3804]:[127] - FINALIZE_SESSION [INFO] 2021-05-27 07:05:41.809 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:42.811 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:43.812 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:44.814 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:45.816 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:46.818 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:47.820 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:48.821 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:49.823 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:50.825 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION [INFO] 2021-05-27 07:05:51.826 - [taskAppId=TASK-16-259-3724]:[404] - appId:application_1621995850095_6901, final state:RUNNING_EXECUTION ``` **Which version of Dolphin Scheduler:** -[1.3.6]
https://github.com/apache/dolphinscheduler/issues/5551
https://github.com/apache/dolphinscheduler/pull/6289
8d39bf14b1b189b43d27acfa2a3ae9ddd4eec5c6
2dc09c627fe1d32c63e9a7551390540581916d7d
"2021-05-27T07:22:10Z"
java
"2021-12-05T06:03:29Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
for (String rmId : rmIdArr) { String state = getRMState(String.format(yarnUrl, rmId)); if (Constants.HADOOP_RM_STATE_ACTIVE.equals(state)) { return rmId; } } } catch (Exception e) { logger.error("yarn ha application url generation failed, message:{}", e.getMessage()); } return null; } /** * get ResourceManager state */ public static String getRMState(String url) { String retStr = PropertyUtils.getBoolean(Constants.HADOOP_SECURITY_AUTHENTICATION_STARTUP_STATE, false) ? KerberosHttpClient.get(url) : HttpUtils.get(url); if (StringUtils.isEmpty(retStr)) { return null; } ObjectNode jsonObject = JSONUtils.parseObject(retStr); if (!jsonObject.has("clusterInfo")) { return null; } return jsonObject.get("clusterInfo").path("haState").asText(); } } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.controller; import static org.apache.dolphinscheduler.api.enums.Status.AUTHORIZED_USER_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.CREATE_USER_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.DELETE_USER_BY_ID_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.GET_USER_INFO_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.GRANT_DATASOURCE_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.GRANT_PROJECT_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.GRANT_RESOURCE_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.GRANT_UDF_FUNCTION_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.QUERY_USER_LIST_PAGING_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.UNAUTHORIZED_USER_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.UPDATE_USER_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.USER_LIST_ERROR; import static org.apache.dolphinscheduler.api.enums.Status.VERIFY_USERNAME_ERROR; import org.apache.dolphinscheduler.api.aspect.AccessLogAnnotation; import org.apache.dolphinscheduler.api.enums.Status; import org.apache.dolphinscheduler.api.exceptions.ApiException; import org.apache.dolphinscheduler.api.service.UsersService; import org.apache.dolphinscheduler.api.utils.Result; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.utils.ParameterUtils; import org.apache.dolphinscheduler.dao.entity.User; import java.util.List; import java.util.Map;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestAttribute; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestController; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import springfox.documentation.annotations.ApiIgnore; /** * users controller */ @Api(tags = "USERS_TAG") @RestController @RequestMapping("/users") public class UsersController extends BaseController { private static final Logger logger = LoggerFactory.getLogger(UsersController.class); @Autowired private UsersService usersService; /** * create user
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
* * @param loginUser login user * @param userName user name * @param userPassword user password * @param email email * @param tenantId tenant id * @param phone phone * @param queue queue * @return create result code */ @ApiOperation(value = "createUser", notes = "CREATE_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userName", value = "USER_NAME", required = true, type = "String"), @ApiImplicitParam(name = "userPassword", value = "USER_PASSWORD", required = true, type = "String"), @ApiImplicitParam(name = "tenantId", value = "TENANT_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "queue", value = "QUEUE", dataType = "String"), @ApiImplicitParam(name = "email", value = "EMAIL", required = true, dataType = "String"), @ApiImplicitParam(name = "phone", value = "PHONE", dataType = "String"), @ApiImplicitParam(name = "state", value = "STATE", dataType = "Int", example = "1") }) @PostMapping(value = "/create") @ResponseStatus(HttpStatus.CREATED) @ApiException(CREATE_USER_ERROR) @AccessLogAnnotation(ignoreRequestArgs = {"loginUser", "userPassword"}) public Result createUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userName") String userName, @RequestParam(value = "userPassword") String userPassword, @RequestParam(value = "tenantId") int tenantId, @RequestParam(value = "queue", required = false, defaultValue = "") String queue, @RequestParam(value = "email") String email,
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@RequestParam(value = "phone", required = false) String phone, @RequestParam(value = "state", required = false) int state) throws Exception { Map<String, Object> result = usersService.createUser(loginUser, userName, userPassword, email, tenantId, phone, queue, state); return returnDataList(result); } /** * query user list paging * * @param loginUser login user * @param pageNo page number * @param searchVal search avlue * @param pageSize page size * @return user list page */ @ApiOperation(value = "queryUserList", notes = "QUERY_USER_LIST_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "pageNo", value = "PAGE_NO", required = true, dataType = "Int", example = "1"), @ApiImplicitParam(name = "pageSize", value = "PAGE_SIZE", required = true, dataType = "Int", example = "10"), @ApiImplicitParam(name = "searchVal", value = "SEARCH_VAL", type = "String") }) @GetMapping(value = "/list-paging") @ResponseStatus(HttpStatus.OK) @ApiException(QUERY_USER_LIST_PAGING_ERROR) @AccessLogAnnotation(ignoreRequestArgs = "loginUser") public Result queryUserList(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize, @RequestParam(value = "searchVal", required = false) String searchVal) { Result result = checkPageParams(pageNo, pageSize); if (!result.checkResult()) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
return result; } searchVal = ParameterUtils.handleEscapes(searchVal); result = usersService.queryUserList(loginUser, searchVal, pageNo, pageSize); return result; } /** * update user * * @param loginUser login user * @param id user id * @param userName user name * @param userPassword user password * @param email email * @param tenantId tennat id * @param phone phone * @param queue queue * @return update result code */ @ApiOperation(value = "updateUser", notes = "UPDATE_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "userName", value = "USER_NAME", required = true, type = "String"), @ApiImplicitParam(name = "userPassword", value = "USER_PASSWORD", required = true, type = "String"), @ApiImplicitParam(name = "tenantId", value = "TENANT_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "queue", value = "QUEUE", dataType = "String"), @ApiImplicitParam(name = "email", value = "EMAIL", required = true, dataType = "String"), @ApiImplicitParam(name = "phone", value = "PHONE", dataType = "String"), @ApiImplicitParam(name = "state", value = "STATE", dataType = "Int", example = "1") })
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@PostMapping(value = "/update") @ResponseStatus(HttpStatus.OK) @ApiException(UPDATE_USER_ERROR) @AccessLogAnnotation(ignoreRequestArgs = {"loginUser", "userPassword"}) public Result updateUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "id") int id, @RequestParam(value = "userName") String userName, @RequestParam(value = "userPassword") String userPassword, @RequestParam(value = "queue", required = false, defaultValue = "") String queue, @RequestParam(value = "email") String email, @RequestParam(value = "tenantId") int tenantId, @RequestParam(value = "phone", required = false) String phone, @RequestParam(value = "state", required = false) int state) throws Exception { Map<String, Object> result = usersService.updateUser(loginUser, id, userName, userPassword, email, tenantId, phone, queue, state); return returnDataList(result); } /** * delete user by id * * @param loginUser login user * @param id user id * @return delete result code */ @ApiOperation(value = "delUserById", notes = "DELETE_USER_BY_ID_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "USER_ID", required = true, dataType = "Int", example = "100") }) @PostMapping(value = "/delete") @ResponseStatus(HttpStatus.OK) @ApiException(DELETE_USER_BY_ID_ERROR)
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@AccessLogAnnotation public Result delUserById(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "id") int id) throws Exception { Map<String, Object> result = usersService.deleteUserById(loginUser, id); return returnDataList(result); } /** * grant project * * @param loginUser login user * @param userId user id * @param projectIds project id array * @return grant result code */ @ApiOperation(value = "grantProject", notes = "GRANT_PROJECT_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "projectIds", value = "PROJECT_IDS", required = true, type = "String") }) @PostMapping(value = "/grant-project") @ResponseStatus(HttpStatus.OK) @ApiException(GRANT_PROJECT_ERROR) @AccessLogAnnotation public Result grantProject(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userId") int userId, @RequestParam(value = "projectIds") String projectIds) { Map<String, Object> result = usersService.grantProject(loginUser, userId, projectIds); return returnDataList(result); } /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
* grant project by code * * @param loginUser login user * @param userId user id * @param projectCodes project code array * @return grant result code */ @ApiOperation(value = "grantProjectByCode", notes = "GRANT_PROJECT_BY_CODE_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "projectCodes", value = "PROJECT_CODES", required = true, type = "String") }) @PostMapping(value = "/grant-project-by-code") @ResponseStatus(HttpStatus.OK) @ApiException(GRANT_PROJECT_ERROR) @AccessLogAnnotation public Result grantProjectByCode(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userId") int userId, @RequestParam(value = "projectCodes") String projectCodes) { Map<String, Object> result = this.usersService.grantProjectByCode(loginUser, userId, projectCodes); return returnDataList(result); } /** * grant resource * * @param loginUser login user * @param userId user id * @param resourceIds resource id array * @return grant result code */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@ApiOperation(value = "grantResource", notes = "GRANT_RESOURCE_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "resourceIds", value = "RESOURCE_IDS", required = true, type = "String") }) @PostMapping(value = "/grant-file") @ResponseStatus(HttpStatus.OK) @ApiException(GRANT_RESOURCE_ERROR) @AccessLogAnnotation public Result grantResource(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userId") int userId, @RequestParam(value = "resourceIds") String resourceIds) { Map<String, Object> result = usersService.grantResources(loginUser, userId, resourceIds); return returnDataList(result); } /** * grant udf function * * @param loginUser login user * @param userId user id * @param udfIds udf id array * @return grant result code */ @ApiOperation(value = "grantUDFFunc", notes = "GRANT_UDF_FUNC_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "udfIds", value = "UDF_IDS", required = true, type = "String") }) @PostMapping(value = "/grant-udf-func") @ResponseStatus(HttpStatus.OK)
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@ApiException(GRANT_UDF_FUNCTION_ERROR) @AccessLogAnnotation public Result grantUDFFunc(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userId") int userId, @RequestParam(value = "udfIds") String udfIds) { Map<String, Object> result = usersService.grantUDFFunction(loginUser, userId, udfIds); return returnDataList(result); } /** * grant datasource * * @param loginUser login user * @param userId user id * @param datasourceIds data source id array * @return grant result code */ @ApiOperation(value = "grantDataSource", notes = "GRANT_DATASOURCE_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "USER_ID", required = true, dataType = "Int", example = "100"), @ApiImplicitParam(name = "datasourceIds", value = "DATASOURCE_IDS", required = true, type = "String") }) @PostMapping(value = "/grant-datasource") @ResponseStatus(HttpStatus.OK) @ApiException(GRANT_DATASOURCE_ERROR) @AccessLogAnnotation public Result grantDataSource(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userId") int userId, @RequestParam(value = "datasourceIds") String datasourceIds) { Map<String, Object> result = usersService.grantDataSource(loginUser, userId, datasourceIds); return returnDataList(result);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
} /** * get user info * * @param loginUser login user * @return user info */ @ApiOperation(value = "getUserInfo", notes = "GET_USER_INFO_NOTES") @GetMapping(value = "/get-user-info") @ResponseStatus(HttpStatus.OK) @ApiException(GET_USER_INFO_ERROR) @AccessLogAnnotation public Result getUserInfo(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { Map<String, Object> result = usersService.getUserInfo(loginUser); return returnDataList(result); } /** * user list no paging * * @param loginUser login user * @return user list */ @ApiOperation(value = "listUser", notes = "LIST_USER_NOTES") @GetMapping(value = "/list") @ResponseStatus(HttpStatus.OK) @ApiException(USER_LIST_ERROR) @AccessLogAnnotation public Result listUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { Map<String, Object> result = usersService.queryAllGeneralUsers(loginUser); return returnDataList(result);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
} /** * user list no paging * * @param loginUser login user * @return user list */ @GetMapping(value = "/list-all") @ResponseStatus(HttpStatus.OK) @ApiException(USER_LIST_ERROR) @AccessLogAnnotation public Result listAll(@RequestAttribute(value = Constants.SESSION_USER) User loginUser) { Map<String, Object> result = usersService.queryUserList(loginUser); return returnDataList(result); } /** * verify username * * @param loginUser login user * @param userName user name * @return true if user name not exists, otherwise return false */ @ApiOperation(value = "verifyUserName", notes = "VERIFY_USER_NAME_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userName", value = "USER_NAME", required = true, type = "String") }) @GetMapping(value = "/verify-user-name") @ResponseStatus(HttpStatus.OK) @ApiException(VERIFY_USERNAME_ERROR) @AccessLogAnnotation
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
public Result verifyUserName(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userName") String userName ) { return usersService.verifyUserName(userName); } /** * unauthorized user * * @param loginUser login user * @param alertgroupId alert group id * @return unauthorize result code */ @ApiOperation(value = "unauthorizedUser", notes = "UNAUTHORIZED_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "alertgroupId", value = "ALERT_GROUP_ID", required = true, type = "String") }) @GetMapping(value = "/unauth-user") @ResponseStatus(HttpStatus.OK) @ApiException(UNAUTHORIZED_USER_ERROR) @AccessLogAnnotation public Result unauthorizedUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam("alertgroupId") Integer alertgroupId) { Map<String, Object> result = usersService.unauthorizedUser(loginUser, alertgroupId); return returnDataList(result); } /** * authorized user * * @param loginUser login user * @param alertgroupId alert group id
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
* @return authorized result code */ @ApiOperation(value = "authorizedUser", notes = "AUTHORIZED_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "alertgroupId", value = "ALERT_GROUP_ID", required = true, type = "String") }) @GetMapping(value = "/authed-user") @ResponseStatus(HttpStatus.OK) @ApiException(AUTHORIZED_USER_ERROR) @AccessLogAnnotation public Result authorizedUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam("alertgroupId") Integer alertgroupId) { try { Map<String, Object> result = usersService.authorizedUser(loginUser, alertgroupId); return returnDataList(result); } catch (Exception e) { logger.error(Status.AUTHORIZED_USER_ERROR.getMsg(), e); return error(Status.AUTHORIZED_USER_ERROR.getCode(), Status.AUTHORIZED_USER_ERROR.getMsg()); } } /** * user registry * * @param userName user name * @param userPassword user password * @param repeatPassword repeat password * @param email user email */ @ApiOperation(value = "registerUser", notes = "REGISTER_USER_NOTES") @ApiImplicitParams({
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@ApiImplicitParam(name = "userName", value = "USER_NAME", required = true, type = "String"), @ApiImplicitParam(name = "userPassword", value = "USER_PASSWORD", required = true, type = "String"), @ApiImplicitParam(name = "repeatPassword", value = "REPEAT_PASSWORD", required = true, type = "String"), @ApiImplicitParam(name = "email", value = "EMAIL", required = true, type = "String"), }) @PostMapping("/register") @ResponseStatus(HttpStatus.OK) @ApiException(CREATE_USER_ERROR) @AccessLogAnnotation public Result<Object> registerUser(@RequestParam(value = "userName") String userName, @RequestParam(value = "userPassword") String userPassword, @RequestParam(value = "repeatPassword") String repeatPassword, @RequestParam(value = "email") String email) throws Exception { userName = ParameterUtils.handleEscapes(userName); userPassword = ParameterUtils.handleEscapes(userPassword); repeatPassword = ParameterUtils.handleEscapes(repeatPassword); email = ParameterUtils.handleEscapes(email); Map<String, Object> result = usersService.registerUser(userName, userPassword, repeatPassword, email); return returnDataList(result); } /** * user activate * * @param userName user name */ @ApiOperation(value = "activateUser", notes = "ACTIVATE_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userName", value = "USER_NAME", type = "String"), }) @PostMapping("/activate")
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java
@ResponseStatus(HttpStatus.OK) @ApiException(UPDATE_USER_ERROR) @AccessLogAnnotation public Result<Object> activateUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam(value = "userName") String userName) { userName = ParameterUtils.handleEscapes(userName); Map<String, Object> result = usersService.activateUser(loginUser, userName); return returnDataList(result); } /** * user batch activate * * @param userNames user names */ @ApiOperation(value = "batchActivateUser", notes = "BATCH_ACTIVATE_USER_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "userNames", value = "USER_NAMES", required = true, type = "String"), }) @PostMapping("/batch/activate") @ResponseStatus(HttpStatus.OK) @ApiException(UPDATE_USER_ERROR) @AccessLogAnnotation public Result<Object> batchActivateUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestBody List<String> userNames) { List<String> formatUserNames = userNames.stream().map(ParameterUtils::handleEscapes).collect(Collectors.toList()); Map<String, Object> result = usersService.batchActivateUser(loginUser, formatUserNames); return returnDataList(result); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
* limitations under the License. */ package org.apache.dolphinscheduler.api.enums; import java.util.Locale; import java.util.Optional; import org.springframework.context.i18n.LocaleContextHolder; /** * status enum // todo #4855 One category one interval */ public enum Status { SUCCESS(0, "success", "成功"), INTERNAL_SERVER_ERROR_ARGS(10000, "Internal Server Error: {0}", "服务端异常: {0}"), REQUEST_PARAMS_NOT_VALID_ERROR(10001, "request parameter {0} is not valid", "请求参数[{0}]无效"), TASK_TIMEOUT_PARAMS_ERROR(10002, "task timeout parameter is not valid", "任务超时参数无效"), USER_NAME_EXIST(10003, "user name already exists", "用户名已存在"), USER_NAME_NULL(10004, "user name is null", "用户名不能为空"), HDFS_OPERATION_ERROR(10006, "hdfs operation error", "hdfs操作错误"), TASK_INSTANCE_NOT_FOUND(10008, "task instance not found", "任务实例不存在"), OS_TENANT_CODE_EXIST(10009, "os tenant code {0} already exists", "操作系统租户[{0}]已存在"), USER_NOT_EXIST(10010, "user {0} not exists", "用户[{0}]不存在"), ALERT_GROUP_NOT_EXIST(10011, "alarm group not found", "告警组不存在"), ALERT_GROUP_EXIST(10012, "alarm group already exists", "告警组名称已存在"), USER_NAME_PASSWD_ERROR(10013, "user name or password error", "用户名或密码错误"), LOGIN_SESSION_FAILED(10014, "create session failed!", "创建session失败"), DATASOURCE_EXIST(10015, "data source name already exists", "数据源名称已存在"), DATASOURCE_CONNECT_FAILED(10016, "data source connection failed", "建立数据源连接失败"), TENANT_NOT_EXIST(10017, "tenant not exists", "租户不存在"), PROJECT_NOT_FOUNT(10018, "project {0} not found ", "项目[{0}]不存在"), PROJECT_ALREADY_EXISTS(10019, "project {0} already exists", "项目名称[{0}]已存在"), TASK_INSTANCE_NOT_EXISTS(10020, "task instance {0} does not exist", "任务实例[{0}]不存在"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
TASK_INSTANCE_NOT_SUB_WORKFLOW_INSTANCE(10021, "task instance {0} is not sub process instance", "任务实例[{0}]不是子流程实例"), SCHEDULE_CRON_NOT_EXISTS(10022, "scheduler crontab {0} does not exist", "调度配置定时表达式[{0}]不存在"), SCHEDULE_CRON_ONLINE_FORBID_UPDATE(10023, "online status does not allow update operations", "调度配置上线状态不允许修改"), SCHEDULE_CRON_CHECK_FAILED(10024, "scheduler crontab expression validation failure: {0}", "调度配置定时表达式验证失败: {0}"), MASTER_NOT_EXISTS(10025, "master does not exist", "无可用master节点"), SCHEDULE_STATUS_UNKNOWN(10026, "unknown status: {0}", "未知状态: {0}"), CREATE_ALERT_GROUP_ERROR(10027, "create alert group error", "创建告警组错误"), QUERY_ALL_ALERTGROUP_ERROR(10028, "query all alertgroup error", "查询告警组错误"), LIST_PAGING_ALERT_GROUP_ERROR(10029, "list paging alert group error", "分页查询告警组错误"), UPDATE_ALERT_GROUP_ERROR(10030, "update alert group error", "更新告警组错误"), DELETE_ALERT_GROUP_ERROR(10031, "delete alert group error", "删除告警组错误"), ALERT_GROUP_GRANT_USER_ERROR(10032, "alert group grant user error", "告警组授权用户错误"), CREATE_DATASOURCE_ERROR(10033, "create datasource error", "创建数据源错误"), UPDATE_DATASOURCE_ERROR(10034, "update datasource error", "更新数据源错误"), QUERY_DATASOURCE_ERROR(10035, "query datasource error", "查询数据源错误"), CONNECT_DATASOURCE_FAILURE(10036, "connect datasource failure", "建立数据源连接失败"), CONNECTION_TEST_FAILURE(10037, "connection test failure", "测试数据源连接失败"), DELETE_DATA_SOURCE_FAILURE(10038, "delete data source failure", "删除数据源失败"), VERIFY_DATASOURCE_NAME_FAILURE(10039, "verify datasource name failure", "验证数据源名称失败"), UNAUTHORIZED_DATASOURCE(10040, "unauthorized datasource", "未经授权的数据源"), AUTHORIZED_DATA_SOURCE(10041, "authorized data source", "授权数据源失败"), LOGIN_SUCCESS(10042, "login success", "登录成功"), USER_LOGIN_FAILURE(10043, "user login failure", "用户登录失败"), LIST_WORKERS_ERROR(10044, "list workers error", "查询worker列表错误"), LIST_MASTERS_ERROR(10045, "list masters error", "查询master列表错误"), UPDATE_PROJECT_ERROR(10046, "update project error", "更新项目信息错误"), QUERY_PROJECT_DETAILS_BY_CODE_ERROR(10047, "query project details by code error", "查询项目详细信息错误"), CREATE_PROJECT_ERROR(10048, "create project error", "创建项目错误"), LOGIN_USER_QUERY_PROJECT_LIST_PAGING_ERROR(10049, "login user query project list paging error", "分页查询项目列表错误"), DELETE_PROJECT_ERROR(10050, "delete project error", "删除项目错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
QUERY_UNAUTHORIZED_PROJECT_ERROR(10051, "query unauthorized project error", "查询未授权项目错误"), QUERY_AUTHORIZED_PROJECT(10052, "query authorized project", "查询授权项目错误"), QUERY_QUEUE_LIST_ERROR(10053, "query queue list error", "查询队列列表错误"), CREATE_RESOURCE_ERROR(10054, "create resource error", "创建资源错误"), UPDATE_RESOURCE_ERROR(10055, "update resource error", "更新资源错误"), QUERY_RESOURCES_LIST_ERROR(10056, "query resources list error", "查询资源列表错误"), QUERY_RESOURCES_LIST_PAGING(10057, "query resources list paging", "分页查询资源列表错误"), DELETE_RESOURCE_ERROR(10058, "delete resource error", "删除资源错误"), VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR(10059, "verify resource by name and type error", "资源名称或类型验证错误"), VIEW_RESOURCE_FILE_ON_LINE_ERROR(10060, "view resource file online error", "查看资源文件错误"), CREATE_RESOURCE_FILE_ON_LINE_ERROR(10061, "create resource file online error", "创建资源文件错误"), RESOURCE_FILE_IS_EMPTY(10062, "resource file is empty", "资源文件内容不能为空"), EDIT_RESOURCE_FILE_ON_LINE_ERROR(10063, "edit resource file online error", "更新资源文件错误"), DOWNLOAD_RESOURCE_FILE_ERROR(10064, "download resource file error", "下载资源文件错误"), CREATE_UDF_FUNCTION_ERROR(10065, "create udf function error", "创建UDF函数错误"), VIEW_UDF_FUNCTION_ERROR(10066, "view udf function error", "查询UDF函数错误"), UPDATE_UDF_FUNCTION_ERROR(10067, "update udf function error", "更新UDF函数错误"), QUERY_UDF_FUNCTION_LIST_PAGING_ERROR(10068, "query udf function list paging error", "分页查询UDF函数列表错误"), QUERY_DATASOURCE_BY_TYPE_ERROR(10069, "query datasource by type error", "查询数据源信息错误"), VERIFY_UDF_FUNCTION_NAME_ERROR(10070, "verify udf function name error", "UDF函数名称验证错误"), DELETE_UDF_FUNCTION_ERROR(10071, "delete udf function error", "删除UDF函数错误"), AUTHORIZED_FILE_RESOURCE_ERROR(10072, "authorized file resource error", "授权资源文件错误"), AUTHORIZE_RESOURCE_TREE(10073, "authorize resource tree display error", "授权资源目录树错误"), UNAUTHORIZED_UDF_FUNCTION_ERROR(10074, "unauthorized udf function error", "查询未授权UDF函数错误"), AUTHORIZED_UDF_FUNCTION_ERROR(10075, "authorized udf function error", "授权UDF函数错误"), CREATE_SCHEDULE_ERROR(10076, "create schedule error", "创建调度配置错误"), UPDATE_SCHEDULE_ERROR(10077, "update schedule error", "更新调度配置错误"), PUBLISH_SCHEDULE_ONLINE_ERROR(10078, "publish schedule online error", "上线调度配置错误"), OFFLINE_SCHEDULE_ERROR(10079, "offline schedule error", "下线调度配置错误"), QUERY_SCHEDULE_LIST_PAGING_ERROR(10080, "query schedule list paging error", "分页查询调度配置列表错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
QUERY_SCHEDULE_LIST_ERROR(10081, "query schedule list error", "查询调度配置列表错误"), QUERY_TASK_LIST_PAGING_ERROR(10082, "query task list paging error", "分页查询任务列表错误"), QUERY_TASK_RECORD_LIST_PAGING_ERROR(10083, "query task record list paging error", "分页查询任务记录错误"), CREATE_TENANT_ERROR(10084, "create tenant error", "创建租户错误"), QUERY_TENANT_LIST_PAGING_ERROR(10085, "query tenant list paging error", "分页查询租户列表错误"), QUERY_TENANT_LIST_ERROR(10086, "query tenant list error", "查询租户列表错误"), UPDATE_TENANT_ERROR(10087, "update tenant error", "更新租户错误"), DELETE_TENANT_BY_ID_ERROR(10088, "delete tenant by id error", "删除租户错误"), VERIFY_OS_TENANT_CODE_ERROR(10089, "verify os tenant code error", "操作系统租户验证错误"), CREATE_USER_ERROR(10090, "create user error", "创建用户错误"), QUERY_USER_LIST_PAGING_ERROR(10091, "query user list paging error", "分页查询用户列表错误"), UPDATE_USER_ERROR(10092, "update user error", "更新用户错误"), DELETE_USER_BY_ID_ERROR(10093, "delete user by id error", "删除用户错误"), GRANT_PROJECT_ERROR(10094, "grant project error", "授权项目错误"), GRANT_RESOURCE_ERROR(10095, "grant resource error", "授权资源错误"), GRANT_UDF_FUNCTION_ERROR(10096, "grant udf function error", "授权UDF函数错误"), GRANT_DATASOURCE_ERROR(10097, "grant datasource error", "授权数据源错误"), GET_USER_INFO_ERROR(10098, "get user info error", "获取用户信息错误"), USER_LIST_ERROR(10099, "user list error", "查询用户列表错误"), VERIFY_USERNAME_ERROR(10100, "verify username error", "用户名验证错误"), UNAUTHORIZED_USER_ERROR(10101, "unauthorized user error", "查询未授权用户错误"), AUTHORIZED_USER_ERROR(10102, "authorized user error", "查询授权用户错误"), QUERY_TASK_INSTANCE_LOG_ERROR(10103, "view task instance log error", "查询任务实例日志错误"), DOWNLOAD_TASK_INSTANCE_LOG_FILE_ERROR(10104, "download task instance log file error", "下载任务日志文件错误"), CREATE_PROCESS_DEFINITION_ERROR(10105, "create process definition error", "创建工作流错误"), VERIFY_PROCESS_DEFINITION_NAME_UNIQUE_ERROR(10106, "verify process definition name unique error", "工作流定义名称验证错误"), UPDATE_PROCESS_DEFINITION_ERROR(10107, "update process definition error", "更新工作流定义错误"), RELEASE_PROCESS_DEFINITION_ERROR(10108, "release process definition error", "上线工作流错误"), QUERY_DETAIL_OF_PROCESS_DEFINITION_ERROR(10109, "query detail of process definition error", "查询工作流详细信息错误"), QUERY_PROCESS_DEFINITION_LIST(10110, "query process definition list", "查询工作流列表错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
ENCAPSULATION_TREEVIEW_STRUCTURE_ERROR(10111, "encapsulation treeview structure error", "查询工作流树形图数据错误"), GET_TASKS_LIST_BY_PROCESS_DEFINITION_ID_ERROR(10112, "get tasks list by process definition id error", "查询工作流定义节点信息错误"), QUERY_PROCESS_INSTANCE_LIST_PAGING_ERROR(10113, "query process instance list paging error", "分页查询工作流实例列表错误"), QUERY_TASK_LIST_BY_PROCESS_INSTANCE_ID_ERROR(10114, "query task list by process instance id error", "查询任务实例列表错误"), UPDATE_PROCESS_INSTANCE_ERROR(10115, "update process instance error", "更新工作流实例错误"), QUERY_PROCESS_INSTANCE_BY_ID_ERROR(10116, "query process instance by id error", "查询工作流实例错误"), DELETE_PROCESS_INSTANCE_BY_ID_ERROR(10117, "delete process instance by id error", "删除工作流实例错误"), QUERY_SUB_PROCESS_INSTANCE_DETAIL_INFO_BY_TASK_ID_ERROR(10118, "query sub process instance detail info by task id error", "查询子流程任务实例错误"), QUERY_PARENT_PROCESS_INSTANCE_DETAIL_INFO_BY_SUB_PROCESS_INSTANCE_ID_ERROR(10119, "query parent process instance detail info by sub process instance id error", "查询子流程该工作流实例错误"), QUERY_PROCESS_INSTANCE_ALL_VARIABLES_ERROR(10120, "query process instance all variables error", "查询工作流自定义变量信息错误"), ENCAPSULATION_PROCESS_INSTANCE_GANTT_STRUCTURE_ERROR(10121, "encapsulation process instance gantt structure error", "查询工作流实例甘特图数据错误"), QUERY_PROCESS_DEFINITION_LIST_PAGING_ERROR(10122, "query process definition list paging error", "分页查询工作流定义列表错误"), SIGN_OUT_ERROR(10123, "sign out error", "退出错误"), OS_TENANT_CODE_HAS_ALREADY_EXISTS(10124, "os tenant code has already exists", "操作系统租户已存在"), IP_IS_EMPTY(10125, "ip is empty", "IP地址不能为空"), SCHEDULE_CRON_REALEASE_NEED_NOT_CHANGE(10126, "schedule release is already {0}", "调度配置上线错误[{0}]"), CREATE_QUEUE_ERROR(10127, "create queue error", "创建队列错误"), QUEUE_NOT_EXIST(10128, "queue {0} not exists", "队列ID[{0}]不存在"), QUEUE_VALUE_EXIST(10129, "queue value {0} already exists", "队列值[{0}]已存在"), QUEUE_NAME_EXIST(10130, "queue name {0} already exists", "队列名称[{0}]已存在"), UPDATE_QUEUE_ERROR(10131, "update queue error", "更新队列信息错误"), NEED_NOT_UPDATE_QUEUE(10132, "no content changes, no updates are required", "数据未变更,不需要更新队列信息"), VERIFY_QUEUE_ERROR(10133, "verify queue error", "验证队列信息错误"), NAME_NULL(10134, "name must be not null", "名称不能为空"), NAME_EXIST(10135, "name {0} already exists", "名称[{0}]已存在"), SAVE_ERROR(10136, "save error", "保存错误"), DELETE_PROJECT_ERROR_DEFINES_NOT_NULL(10137, "please delete the process definitions in project first!", "请先删除全部工作流定义"), BATCH_DELETE_PROCESS_INSTANCE_BY_IDS_ERROR(10117, "batch delete process instance by ids {0} error", "批量删除工作流实例错误"), PREVIEW_SCHEDULE_ERROR(10139, "preview schedule error", "预览调度配置错误"), PARSE_TO_CRON_EXPRESSION_ERROR(10140, "parse cron to cron expression error", "解析调度表达式错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
SCHEDULE_START_TIME_END_TIME_SAME(10141, "The start time must not be the same as the end", "开始时间不能和结束时间一样"), DELETE_TENANT_BY_ID_FAIL(10142, "delete tenant by id fail, for there are {0} process instances in executing using it", "删除租户失败,有[{0}]个运行中的工作流实例正在使用"), DELETE_TENANT_BY_ID_FAIL_DEFINES(10143, "delete tenant by id fail, for there are {0} process definitions using it", "删除租户失败,有[{0}]个工作流定义正在使用"), DELETE_TENANT_BY_ID_FAIL_USERS(10144, "delete tenant by id fail, for there are {0} users using it", "删除租户失败,有[{0}]个用户正在使用"), DELETE_WORKER_GROUP_BY_ID_FAIL(10145, "delete worker group by id fail, for there are {0} process instances in executing using it", "删除Worker分组失败,有[{0}]个运行中的工作流实例正在使用"), QUERY_WORKER_GROUP_FAIL(10146, "query worker group fail ", "查询worker分组失败"), DELETE_WORKER_GROUP_FAIL(10147, "delete worker group fail ", "删除worker分组失败"), USER_DISABLED(10148, "The current user is disabled", "当前用户已停用"), COPY_PROCESS_DEFINITION_ERROR(10149, "copy process definition from {0} to {1} error : {2}", "从{0}复制工作流到{1}错误 : {2}"), MOVE_PROCESS_DEFINITION_ERROR(10150, "move process definition from {0} to {1} error : {2}", "从{0}移动工作流到{1}错误 : {2}"), SWITCH_PROCESS_DEFINITION_VERSION_ERROR(10151, "Switch process definition version error", "切换工作流版本出错"), SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_ERROR(10152 , "Switch process definition version error: not exists process definition, [process definition id {0}]", "切换工作流版本出错:工作流不存在,[工作流id {0}]"), SWITCH_PROCESS_DEFINITION_VERSION_NOT_EXIST_PROCESS_DEFINITION_VERSION_ERROR(10153 , "Switch process definition version error: not exists process definition version, [process definition id {0}] [version number {1}]", "切换工作流版本出错:工作流版本信息不存在,[工作流id {0}] [版本号 {1}]"), QUERY_PROCESS_DEFINITION_VERSIONS_ERROR(10154, "query process definition versions error", "查询工作流历史版本信息出错"), DELETE_PROCESS_DEFINITION_VERSION_ERROR(10156, "delete process definition version error", "删除工作流历史版本出错"), QUERY_USER_CREATED_PROJECT_ERROR(10157, "query user created project error error", "查询用户创建的项目错误"), PROCESS_DEFINITION_CODES_IS_EMPTY(10158, "process definition codes is empty", "工作流CODES不能为空"), BATCH_COPY_PROCESS_DEFINITION_ERROR(10159, "batch copy process definition error", "复制工作流错误"), BATCH_MOVE_PROCESS_DEFINITION_ERROR(10160, "batch move process definition error", "移动工作流错误"), QUERY_WORKFLOW_LINEAGE_ERROR(10161, "query workflow lineage error", "查询血缘失败"), QUERY_AUTHORIZED_AND_USER_CREATED_PROJECT_ERROR(10162, "query authorized and user created project error error", "查询授权的和用户创建的项目错误"), DELETE_PROCESS_DEFINITION_BY_CODE_FAIL(10163, "delete process definition by code fail, for there are {0} process instances in executing using it", "删除工作流定义失败,有[{0}]个运行中的工作流实例正在使用"), CHECK_OS_TENANT_CODE_ERROR(10164, "Please enter the English os tenant code", "请输入英文操作系统租户"), FORCE_TASK_SUCCESS_ERROR(10165, "force task success error", "强制成功任务实例错误"), TASK_INSTANCE_STATE_OPERATION_ERROR(10166, "the status of task instance {0} is {1},Cannot perform force success operation", "任务实例[{0}]的状态是[{1}],无法执行强制成功操作"), DATASOURCE_TYPE_NOT_EXIST(10167, "data source type not exist", "数据源类型不存在"), PROCESS_DEFINITION_NAME_EXIST(10168, "process definition name {0} already exists", "工作流定义名称[{0}]已存在"), DATASOURCE_DB_TYPE_ILLEGAL(10169, "datasource type illegal", "数据源类型参数不合法"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
DATASOURCE_PORT_ILLEGAL(10170, "datasource port illegal", "数据源端口参数不合法"), DATASOURCE_OTHER_PARAMS_ILLEGAL(10171, "datasource other params illegal", "数据源其他参数不合法"), DATASOURCE_NAME_ILLEGAL(10172, "datasource name illegal", "数据源名称不合法"), DATASOURCE_HOST_ILLEGAL(10173, "datasource host illegal", "数据源HOST不合法"), DELETE_WORKER_GROUP_NOT_EXIST(10174, "delete worker group not exist ", "删除worker分组不存在"), CREATE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10175, "create worker group forbidden in docker ", "创建worker分组在docker中禁止"), DELETE_WORKER_GROUP_FORBIDDEN_IN_DOCKER(10176, "delete worker group forbidden in docker ", "删除worker分组在docker中禁止"), WORKER_ADDRESS_INVALID(10177, "worker address {0} invalid", "worker地址[{0}]无效"), QUERY_WORKER_ADDRESS_LIST_FAIL(10178, "query worker address list fail ", "查询worker地址列表失败"), TRANSFORM_PROJECT_OWNERSHIP(10179, "Please transform project ownership [{0}]", "请先转移项目所有权[{0}]"), QUERY_ALERT_GROUP_ERROR(10180, "query alert group error", "查询告警组错误"), CURRENT_LOGIN_USER_TENANT_NOT_EXIST(10181, "the tenant of the currently login user is not specified", "未指定当前登录用户的租户"), UDF_FUNCTION_NOT_EXIST(20001, "UDF function not found", "UDF函数不存在"), UDF_FUNCTION_EXISTS(20002, "UDF function already exists", "UDF函数已存在"), RESOURCE_NOT_EXIST(20004, "resource not exist", "资源不存在"), RESOURCE_EXIST(20005, "resource already exists", "资源已存在"), RESOURCE_SUFFIX_NOT_SUPPORT_VIEW(20006, "resource suffix do not support online viewing", "资源文件后缀不支持查看"), RESOURCE_SIZE_EXCEED_LIMIT(20007, "upload resource file size exceeds limit", "上传资源文件大小超过限制"), RESOURCE_SUFFIX_FORBID_CHANGE(20008, "resource suffix not allowed to be modified", "资源文件后缀不支持修改"), UDF_RESOURCE_SUFFIX_NOT_JAR(20009, "UDF resource suffix name must be jar", "UDF资源文件后缀名只支持[jar]"), HDFS_COPY_FAIL(20010, "hdfs copy {0} -> {1} fail", "hdfs复制失败:[{0}] -> [{1}]"), RESOURCE_FILE_EXIST(20011, "resource file {0} already exists in hdfs,please delete it or change name!", "资源文件[{0}]在hdfs中已存在,请删除或修改资源名"), RESOURCE_FILE_NOT_EXIST(20012, "resource file {0} not exists in hdfs!", "资源文件[{0}]在hdfs中不存在"), UDF_RESOURCE_IS_BOUND(20013, "udf resource file is bound by UDF functions:{0}", "udf函数绑定了资源文件[{0}]"), RESOURCE_IS_USED(20014, "resource file is used by process definition", "资源文件被上线的流程定义使用了"), PARENT_RESOURCE_NOT_EXIST(20015, "parent resource not exist", "父资源文件不存在"), RESOURCE_NOT_EXIST_OR_NO_PERMISSION(20016, "resource not exist or no permission,please view the task node and remove error resource", "请检查任务节点并移除无权限或者已删除的资源"), RESOURCE_IS_AUTHORIZED(20017, "resource is authorized to user {0},suffix not allowed to be modified", "资源文件已授权其他用户[{0}],后缀不允许修改"), USER_NO_OPERATION_PERM(30001, "user has no operation privilege", "当前用户没有操作权限"), USER_NO_OPERATION_PROJECT_PERM(30002, "user {0} is not has project {1} permission", "当前用户[{0}]没有[{1}]项目的操作权限"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
PROCESS_INSTANCE_NOT_EXIST(50001, "process instance {0} does not exist", "工作流实例[{0}]不存在"), PROCESS_INSTANCE_EXIST(50002, "process instance {0} already exists", "工作流实例[{0}]已存在"), PROCESS_DEFINE_NOT_EXIST(50003, "process definition {0} does not exist", "工作流定义[{0}]不存在"), PROCESS_DEFINE_NOT_RELEASE(50004, "process definition {0} not on line", "工作流定义[{0}]不是上线状态"), PROCESS_INSTANCE_ALREADY_CHANGED(50005, "the status of process instance {0} is already {1}", "工作流实例[{0}]的状态已经是[{1}]"), PROCESS_INSTANCE_STATE_OPERATION_ERROR(50006, "the status of process instance {0} is {1},Cannot perform {2} operation", "工作流实例[{0}]的状态是[{1}],无法执行[{2}]操作"), SUB_PROCESS_INSTANCE_NOT_EXIST(50007, "the task belong to process instance does not exist", "子工作流实例不存在"), PROCESS_DEFINE_NOT_ALLOWED_EDIT(50008, "process definition {0} does not allow edit", "工作流定义[{0}]不允许修改"), PROCESS_INSTANCE_EXECUTING_COMMAND(50009, "process instance {0} is executing the command, please wait ...", "工作流实例[{0}]正在执行命令,请稍等..."), PROCESS_INSTANCE_NOT_SUB_PROCESS_INSTANCE(50010, "process instance {0} is not sub process instance", "工作流实例[{0}]不是子工作流实例"), TASK_INSTANCE_STATE_COUNT_ERROR(50011, "task instance state count error", "查询各状态任务实例数错误"), COUNT_PROCESS_INSTANCE_STATE_ERROR(50012, "count process instance state error", "查询各状态流程实例数错误"), COUNT_PROCESS_DEFINITION_USER_ERROR(50013, "count process definition user error", "查询各用户流程定义数错误"), START_PROCESS_INSTANCE_ERROR(50014, "start process instance error", "运行工作流实例错误"), EXECUTE_PROCESS_INSTANCE_ERROR(50015, "execute process instance error", "操作工作流实例错误"), CHECK_PROCESS_DEFINITION_ERROR(50016, "check process definition error", "工作流定义错误"), QUERY_RECIPIENTS_AND_COPYERS_BY_PROCESS_DEFINITION_ERROR(50017, "query recipients and copyers by process definition error", "查询收件人和抄送人错误"), DATA_IS_NOT_VALID(50017, "data {0} not valid", "数据[{0}]无效"), DATA_IS_NULL(50018, "data {0} is null", "数据[{0}]不能为空"), PROCESS_NODE_HAS_CYCLE(50019, "process node has cycle", "流程节点间存在循环依赖"), PROCESS_NODE_S_PARAMETER_INVALID(50020, "process node {0} parameter invalid", "流程节点[{0}]参数无效"), PROCESS_DEFINE_STATE_ONLINE(50021, "process definition {0} is already on line", "工作流定义[{0}]已上线"), DELETE_PROCESS_DEFINE_BY_CODE_ERROR(50022, "delete process definition by code error", "删除工作流定义错误"), SCHEDULE_CRON_STATE_ONLINE(50023, "the status of schedule {0} is already on line", "调度配置[{0}]已上线"), DELETE_SCHEDULE_CRON_BY_ID_ERROR(50024, "delete schedule by id error", "删除调度配置错误"), BATCH_DELETE_PROCESS_DEFINE_ERROR(50025, "batch delete process definition error", "批量删除工作流定义错误"), BATCH_DELETE_PROCESS_DEFINE_BY_CODES_ERROR(50026, "batch delete process definition by codes {0} error", "批量删除工作流定义[{0}]错误"), TENANT_NOT_SUITABLE(50027, "there is not any tenant suitable, please choose a tenant available.", "没有合适的租户,请选择可用的租户"), EXPORT_PROCESS_DEFINE_BY_ID_ERROR(50028, "export process definition by id error", "导出工作流定义错误"), BATCH_EXPORT_PROCESS_DEFINE_BY_IDS_ERROR(50028, "batch export process definition by ids error", "批量导出工作流定义错误"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
IMPORT_PROCESS_DEFINE_ERROR(50029, "import process definition error", "导入工作流定义错误"), TASK_DEFINE_NOT_EXIST(50030, "task definition {0} does not exist", "任务定义[{0}]不存在"), CREATE_PROCESS_TASK_RELATION_ERROR(50032, "create process task relation error", "创建工作流任务关系错误"), PROCESS_TASK_RELATION_NOT_EXIST(50033, "process task relation {0} does not exist", "工作流任务关系[{0}]不存在"), PROCESS_TASK_RELATION_EXIST(50034, "process task relation is already exist, processCode:[{0}]", "工作流任务关系已存在, processCode:[{0}]"), PROCESS_DAG_IS_EMPTY(50035, "process dag is empty", "工作流dag是空"), CHECK_PROCESS_TASK_RELATION_ERROR(50036, "check process task relation error", "工作流任务关系参数错误"), CREATE_TASK_DEFINITION_ERROR(50037, "create task definition error", "创建任务错误"), UPDATE_TASK_DEFINITION_ERROR(50038, "update task definition error", "更新任务定义错误"), QUERY_TASK_DEFINITION_VERSIONS_ERROR(50039, "query task definition versions error", "查询任务历史版本信息出错"), SWITCH_TASK_DEFINITION_VERSION_ERROR(50040, "Switch task definition version error", "切换任务版本出错"), DELETE_TASK_DEFINITION_VERSION_ERROR(50041, "delete task definition version error", "删除任务历史版本出错"), DELETE_TASK_DEFINE_BY_CODE_ERROR(50042, "delete task definition by code error", "删除任务定义错误"), QUERY_DETAIL_OF_TASK_DEFINITION_ERROR(50043, "query detail of task definition error", "查询任务详细信息错误"), QUERY_TASK_DEFINITION_LIST_PAGING_ERROR(50044, "query task definition list paging error", "分页查询任务定义列表错误"), TASK_DEFINITION_NAME_EXISTED(50045, "task definition name [{0}] already exists", "任务定义名称[{0}]已经存在"), RELEASE_TASK_DEFINITION_ERROR(50046, "release task definition error", "上线任务错误"), MOVE_PROCESS_TASK_RELATION_ERROR(50047, "move process task relation error", "移动任务到其他工作流错误"), DELETE_TASK_PROCESS_RELATION_ERROR(50048, "delete process task relation error", "删除工作流任务关系错误"), QUERY_TASK_PROCESS_RELATION_ERROR(50049, "query process task relation error", "查询工作流任务关系错误"), TASK_DEFINE_STATE_ONLINE(50050, "task definition {0} is already on line", "任务定义[{0}]已上线"), TASK_HAS_DOWNSTREAM(50051, "Task [{0}] exists downstream dependence", "任务[{0}]存在下游依赖"), TASK_HAS_UPSTREAM(50052, "Task [{0}] exists upstream dependence", "任务[{0}]存在上游依赖"), MAIN_TABLE_USING_VERSION(50053, "the version that the master table is using", "主表正在使用该版本"), PROJECT_PROCESS_NOT_MATCH(50054, "the project and the process is not match", "项目和工作流不匹配"), DELETE_EDGE_ERROR(50055, "delete edge error", "删除工作流任务连接线错误"), HDFS_NOT_STARTUP(60001, "hdfs not startup", "hdfs未启用"), /** * for monitor */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
QUERY_DATABASE_STATE_ERROR(70001, "query database state error", "查询数据库状态错误"), CREATE_ACCESS_TOKEN_ERROR(70010, "create access token error", "创建访问token错误"), GENERATE_TOKEN_ERROR(70011, "generate token error", "生成token错误"), QUERY_ACCESSTOKEN_LIST_PAGING_ERROR(70012, "query access token list paging error", "分页查询访问token列表错误"), UPDATE_ACCESS_TOKEN_ERROR(70013, "update access token error", "更新访问token错误"), DELETE_ACCESS_TOKEN_ERROR(70014, "delete access token error", "删除访问token错误"), ACCESS_TOKEN_NOT_EXIST(70015, "access token not exist", "访问token不存在"), COMMAND_STATE_COUNT_ERROR(80001, "task instance state count error", "查询各状态任务实例数错误"), NEGTIVE_SIZE_NUMBER_ERROR(80002, "query size number error", "查询size错误"), START_TIME_BIGGER_THAN_END_TIME_ERROR(80003, "start time bigger than end time error", "开始时间在结束时间之后错误"), QUEUE_COUNT_ERROR(90001, "queue count error", "查询队列数据错误"), KERBEROS_STARTUP_STATE(100001, "get kerberos startup state error", "获取kerberos启动状态错误"), //plugin PLUGIN_NOT_A_UI_COMPONENT(110001, "query plugin error, this plugin has no UI component", "查询插件错误,此插件无UI组件"), QUERY_PLUGINS_RESULT_IS_NULL(110002, "query plugins result is null", "查询插件为空"), QUERY_PLUGINS_ERROR(110003, "query plugins error", "查询插件错误"), QUERY_PLUGIN_DETAIL_RESULT_IS_NULL(110004, "query plugin detail result is null", "查询插件详情结果为空"), UPDATE_ALERT_PLUGIN_INSTANCE_ERROR(110005, "update alert plugin instance error", "更新告警组和告警组插件实例错误"), DELETE_ALERT_PLUGIN_INSTANCE_ERROR(110006, "delete alert plugin instance error", "删除告警组和告警组插件实例错误"), GET_ALERT_PLUGIN_INSTANCE_ERROR(110007, "get alert plugin instance error", "获取告警组和告警组插件实例错误"), CREATE_ALERT_PLUGIN_INSTANCE_ERROR(110008, "create alert plugin instance error", "创建告警组和告警组插件实例错误"), QUERY_ALL_ALERT_PLUGIN_INSTANCE_ERROR(110009, "query all alert plugin instance error", "查询所有告警实例失败"), PLUGIN_INSTANCE_ALREADY_EXIT(110010, "plugin instance already exit", "该告警插件实例已存在"), LIST_PAGING_ALERT_PLUGIN_INSTANCE_ERROR(110011, "query plugin instance page error", "分页查询告警实例失败"), DELETE_ALERT_PLUGIN_INSTANCE_ERROR_HAS_ALERT_GROUP_ASSOCIATED(110012, "failed to delete the alert instance, there is an alarm group associated with this alert instance", "删除告警实例失败,存在与此告警实例关联的警报组"), PROCESS_DEFINITION_VERSION_IS_USED(110013,"this process definition version is used","此工作流定义版本被使用"), CREATE_ENVIRONMENT_ERROR(120001, "create environment error", "创建环境失败"), ENVIRONMENT_NAME_EXISTS(120002,"this enviroment name [{0}] already exists","环境名称[{0}]已经存在"), ENVIRONMENT_NAME_IS_NULL(120003,"this enviroment name shouldn't be empty.","环境名称不能为空"),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
ENVIRONMENT_CONFIG_IS_NULL(120004,"this enviroment config shouldn't be empty.","环境配置信息不能为空"), UPDATE_ENVIRONMENT_ERROR(120005, "update environment [{0}] info error", "更新环境[{0}]信息失败"), DELETE_ENVIRONMENT_ERROR(120006, "delete environment error", "删除环境信息失败"), DELETE_ENVIRONMENT_RELATED_TASK_EXISTS(120007, "this environment has been used in tasks,so you can't delete it.", "该环境已经被任务使用,所以不能删除该环境信息"), QUERY_ENVIRONMENT_BY_NAME_ERROR(1200008, "not found environment [{0}] ", "查询环境名称[{0}]信息不存在"), QUERY_ENVIRONMENT_BY_CODE_ERROR(1200009, "not found environment [{0}] ", "查询环境编码[{0}]不存在"), QUERY_ENVIRONMENT_ERROR(1200010, "login user query environment error", "分页查询环境列表错误"), VERIFY_ENVIRONMENT_ERROR(1200011, "verify environment error", "验证环境信息错误"), TASK_GROUP_NAME_EXSIT(130001,"this task group name is repeated in a project","该任务组名称在一个项目中已经使用"), TASK_GROUP_SIZE_ERROR(130002,"task group size error","任务组大小应该为大于1的整数"), TASK_GROUP_STATUS_ERROR(130003,"task group status error","任务组已经被关闭"), TASK_GROUP_FULL(130004,"task group is full","任务组已经满了"), TASK_GROUP_USED_SIZE_ERROR(130005,"the used size number of task group is dirty","任务组使用的容量发生了变化"), TASK_GROUP_QUEUE_RELEASE_ERROR(130006,"relase task group queue failed","任务组资源释放时出现了错误"), TASK_GROUP_QUEUE_AWAKE_ERROR(130007,"awake waiting task failed","任务组使唤醒等待任务时发生了错误"), CREATE_TASK_GROUP_ERROR(130008,"create task group error","创建任务组错误"), UPDATE_TASK_GROUP_ERROR(130009,"update task group list error","更新任务组错误"), QUERY_TASK_GROUP_LIST_ERROR(130010,"query task group list error","查询任务组列表错误"), CLOSE_TASK_GROUP_ERROR(130011,"close task group error","关闭任务组错误"), START_TASK_GROUP_ERROR(130012,"start task group error","启动任务组错误"), QUERY_TASK_GROUP_QUEUE_LIST_ERROR(130013,"query task group queue list error","查询任务组队列列表错误"), TASK_GROUP_CACHE_START_FAILED(130014,"cache , ENVIRONMENT_WORKER_GROUPS_IS_INVALID(130015, "environment worker groups is invalid format", "环境关联的工作组参数解析错误"), UPDATE_ENVIRONMENT_WORKER_GROUP_RELATION_ERROR(130016,"You can't modify the worker group, because the worker group [{0}] and this environment [{1}] already be used in the task [{2}]", "您不能修改工作组选项,因为该工作组 [{0}] 和 该环境 [{1}] 已经被用在任务 [{2}] 中"), TASK_GROUP_QUEUE_ALREADY_START(130017, "task group queue already start", "节点已经获取任务组资源") ; private final int code; private final String enMsg; private final String zhMsg;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
Status(int code, String enMsg, String zhMsg) { this.code = code; this.enMsg = enMsg; this.zhMsg = zhMsg; } public int getCode() { return this.code; } public String getMsg() { if (Locale.SIMPLIFIED_CHINESE.getLanguage().equals(LocaleContextHolder.getLocale().getLanguage())) { return this.zhMsg; } else { return this.enMsg; } } /** * Retrieve Status enum entity by status code. * @param code * @return */ public static Optional<Status> findStatusBy(int code) { for (Status status : Status.value if (code == status.getCode()) { return Optional.of(status); } } return Optional.empty(); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.service; import org.apache.dolphinscheduler.api.utils.Result; import org.apache.dolphinscheduler.common.enums.UserType; import org.apache.dolphinscheduler.dao.entity.User; import java.io.IOException; import java.util.List; import java.util.Map; /** * users service */ public interface UsersService {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
/** * create user, only system admin have permission * * @param loginUser login user * @param userName user name * @param userPassword user password * @param email email * @param tenantId tenant id
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
* @param phone phone * @param queue queue * @return create result code * @throws Exception exception */ Map<String, Object> createUser(User loginUser, String userName, String userPassword, String email, int tenantId, String phone, String queue, int state) throws IOException; User createUser(String userName, String userPassword, String email, int tenantId, String phone, String queue, int state); /*** * create User for ldap login */ User createUser(UserType userType, String userId, String email); /** * get user by user name * * @param userName user name * @return exist user or null */ User getUserByUserName(String userName); /** * query user by id * * @param id id * @return user info */ User queryUser(int id); /** * query user by ids *
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
* @param ids id list * @return user list */ List<User> queryUser(List<Integer> ids); /** * query user * * @param name name * @return user info */ User queryUser(String name); /** * query user * * @param name name * @param password password * @return user info */ User queryUser(String name, String password); /** * get user id by user name * * @param name user name * @return if name empty 0, user not exists -1, user exist user id */ int getUserIdByName(String name); /** * query user list * * @param loginUser login user
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
* @param pageNo page number * @param searchVal search avlue * @param pageSize page size * @return user list page */ Result queryUserList(User loginUser, String searchVal, Integer pageNo, Integer pageSize); /** * updateProcessInstance user * * * @param loginUser * @param userId user id * @param userName user name * @param userPassword user password * @param email email * @param tenantId tennat id * @param phone phone * @param queue queue * @return update result code * @throws Exception exception */ Map<String, Object> updateUser(User loginUser, int userId, String userName, String userPassword, String email, int tenantId, String phone, String queue, int state) throws IOException; /** * delete user * * @param loginUser login user * @param id user id * @return delete result code * @throws Exception exception when operate hdfs
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
*/ Map<String, Object> deleteUserById(User loginUser, int id) throws IOException; /** * grant project * * @param loginUser login user * @param userId user id * @param projectIds project id array * @return grant result code */ Map<String, Object> grantProject(User loginUser, int userId, String projectIds); /** * grant project by code * * @param loginUser login user * @param userId user id * @param projectCodes project code array * @return grant result code */ Map<String, Object> grantProjectByCode(User loginUser, int userId, String projectCodes); /** * grant resource * * @param loginUser login user * @param userId user id * @param resourceIds resource id array * @return grant result code */ Map<String, Object> grantResources(User loginUser, int userId, String resourceIds); /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
* grant udf function * * @param loginUser login user * @param userId user id * @param udfIds udf id array * @return grant result code */ Map<String, Object> grantUDFFunction(User loginUser, int userId, String udfIds); /** * grant datasource * * @param loginUser login user * @param userId user id * @param datasourceIds data source id array * @return grant result code */ Map<String, Object> grantDataSource(User loginUser, int userId, String datasourceIds); /** * query user info * * @param loginUser login user * @return user info */ Map<String, Object> getUserInfo(User loginUser); /** * query user list * * @param loginUser login user * @return user list */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
Map<String, Object> queryAllGeneralUsers(User loginUser); /** * query user list * * @param loginUser login user * @return user list */ Map<String, Object> queryUserList(User loginUser); /** * verify user name exists * * @param userName user name * @return true if user name not exists, otherwise return false */ Result<Object> verifyUserName(String userName); /** * unauthorized user * * @param loginUser login user * @param alertgroupId alert group id * @return unauthorize result code */ Map<String, Object> unauthorizedUser(User loginUser, Integer alertgroupId); /** * authorized user * * @param loginUser login user * @param alertgroupId alert group id * @return authorized result code */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/UsersService.java
Map<String, Object> authorizedUser(User loginUser, Integer alertgroupId); /** * registry user, default state is 0, default tenant_id is 1, no phone, no queue * * @param userName user name * @param userPassword user password * @param repeatPassword repeat password * @param email email * @return registry result code * @throws Exception exception */ Map<String, Object> registerUser(String userName, String userPassword, String repeatPassword, String email); /** * activate user, only system admin have permission, change user state code 0 to 1 * * @param loginUser login user * @param userName user name * @return create result code */ Map<String, Object> activateUser(User loginUser, String userName); /** * activate user, only system admin have permission, change users state code 0 to 1 * * @param loginUser login user * @param userNames user name * @return create result code */ Map<String, Object> batchActivateUser(User loginUser, List<String> userNames); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.api.service.impl; import org.apache.dolphinscheduler.api.dto.resources.ResourceComponent; import org.apache.dolphinscheduler.api.dto.resources.visitor.ResourceTreeVisitor; import org.apache.dolphinscheduler.api.enums.Status; import org.apache.dolphinscheduler.api.exceptions.ServiceException; import org.apache.dolphinscheduler.api.service.UsersService; import org.apache.dolphinscheduler.api.utils.CheckUtils; import org.apache.dolphinscheduler.api.utils.PageInfo;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
import org.apache.dolphinscheduler.api.utils.Result; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.Flag; import org.apache.dolphinscheduler.common.enums.UserType; import org.apache.dolphinscheduler.common.utils.EncryptionUtils; import org.apache.dolphinscheduler.common.utils.HadoopUtils; import org.apache.dolphinscheduler.common.utils.PropertyUtils; import org.apache.dolphinscheduler.dao.entity.AlertGroup; import org.apache.dolphinscheduler.dao.entity.DatasourceUser; import org.apache.dolphinscheduler.dao.entity.Project; import org.apache.dolphinscheduler.dao.entity.ProjectUser; import org.apache.dolphinscheduler.dao.entity.Resource; import org.apache.dolphinscheduler.dao.entity.ResourcesUser; import org.apache.dolphinscheduler.dao.entity.Tenant; import org.apache.dolphinscheduler.dao.entity.UDFUser; import org.apache.dolphinscheduler.dao.entity.User; import org.apache.dolphinscheduler.dao.mapper.AccessTokenMapper; import org.apache.dolphinscheduler.dao.mapper.AlertGroupMapper; import org.apache.dolphinscheduler.dao.mapper.DataSourceUserMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionMapper; import org.apache.dolphinscheduler.dao.mapper.ProjectMapper; import org.apache.dolphinscheduler.dao.mapper.ProjectUserMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceUserMapper; import org.apache.dolphinscheduler.dao.mapper.TenantMapper; import org.apache.dolphinscheduler.dao.mapper.UDFUserMapper; import org.apache.dolphinscheduler.dao.mapper.UserMapper; import org.apache.dolphinscheduler.dao.utils.ResourceProcessDefinitionUtils; import org.apache.dolphinscheduler.spi.enums.ResourceType; import org.apache.commons.collections.CollectionUtils;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
import org.apache.commons.lang.StringUtils; import java.io.IOException; import java.text.MessageFormat; import java.util.Arrays; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; /** * users service impl */ @Service public class UsersServiceImpl extends BaseServiceImpl implements UsersService { private static final Logger logger = LoggerFactory.getLogger(UsersServiceImpl.class); @Autowired private AccessTokenMapper accessTokenMapper; @Autowired private UserMapper userMapper; @Autowired
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
private TenantMapper tenantMapper; @Autowired private ProjectUserMapper projectUserMapper; @Autowired private ResourceUserMapper resourceUserMapper; @Autowired private ResourceMapper resourceMapper; @Autowired private DataSourceUserMapper datasourceUserMapper; @Autowired private UDFUserMapper udfUserMapper; @Autowired private AlertGroupMapper alertGroupMapper; @Autowired private ProcessDefinitionMapper processDefinitionMapper; @Autowired private ProjectMapper projectMapper; /** * create user, only system admin have permission * * @param loginUser login user * @param userName user name * @param userPassword user password * @param email email * @param tenantId tenant id * @param phone phone * @param queue queue * @return create result code * @throws Exception exception */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
@Override @Transactional(rollbackFor = Exception.class) public Map<String, Object> createUser(User loginUser, String userName, String userPassword, String email, int tenantId, String phone, String queue, int state) throws IOException { Map<String, Object> result = new HashMap<>(); String msg = this.checkUserParams(userName, userPassword, email, phone); if (!StringUtils.isEmpty(msg)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, msg); return result; } if (!isAdmin(loginUser)) { putMsg(result, Status.USER_NO_OPERATION_PERM); return result; } if (!checkTenantExists(tenantId)) { putMsg(result, Status.TENANT_NOT_EXIST); return result; } User user = createUser(userName, userPassword, email, tenantId, phone, queue, state); Tenant tenant = tenantMapper.queryById(tenantId); if (PropertyUtils.getResUploadStartupState()) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
if (!HadoopUtils.getInstance().exists(HadoopUtils.getHdfsTenantDir(tenant.getTenantCode()))) { createTenantDirIfNotExists(tenant.getTenantCode()); } String userPath = HadoopUtils.getHdfsUserDir(tenant.getTenantCode(), user.getId()); HadoopUtils.getInstance().mkdir(userPath); } result.put(Constants.DATA_LIST, user); putMsg(result, Status.SUCCESS); return result; } @Override @Transactional(rollbackFor = RuntimeException.class) public User createUser(String userName, String userPassword, String email, int tenantId, String phone, String queue, int state) { User user = new User(); Date now = new Date(); user.setUserName(userName); user.setUserPassword(EncryptionUtils.getMd5(userPassword)); user.setEmail(email); user.setTenantId(tenantId); user.setPhone(phone); user.setState(state); user.setUserType(UserType.GENERAL_USER); user.setCreateTime(now);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
user.setUpdateTime(now); if (StringUtils.isEmpty(queue)) { queue = ""; } user.setQueue(queue); userMapper.insert(user); return user; } /*** * create User for ldap login */ @Override @Transactional(rollbackFor = Exception.class) public User createUser(UserType userType, String userId, String email) { User user = new User(); Date now = new Date(); user.setUserName(userId); user.setEmail(email); user.setUserType(userType); user.setCreateTime(now); user.setUpdateTime(now); user.setQueue(""); userMapper.insert(user); return user; } /** * get user by user name
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
* * @param userName user name * @return exist user or null */ @Override public User getUserByUserName(String userName) { return userMapper.queryByUserNameAccurately(userName); } /** * query user by id * * @param id id * @return user info */ @Override public User queryUser(int id) { return userMapper.selectById(id); } @Override public List<User> queryUser(List<Integer> ids) { if (CollectionUtils.isEmpty(ids)) { return new ArrayList<>(); } return userMapper.selectByIds(ids); } /** * query user * * @param name name * @return user info
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
*/ @Override public User queryUser(String name) { return userMapper.queryByUserNameAccurately(name); } /** * query user * * @param name name * @param password password * @return user info */ @Override public User queryUser(String name, String password) { String md5 = EncryptionUtils.getMd5(password); return userMapper.queryUserByNamePassword(name, md5); } /** * get user id by user name * * @param name user name * @return if name empty 0, user not exists -1, user exist user id */ @Override public int getUserIdByName(String name) { int executorId = 0; if (StringUtils.isNotEmpty(name)) { User executor = queryUser(name); if (null != executor) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
executorId = executor.getId(); } else { executorId = -1; } } return executorId; } /** * query user list * * @param loginUser login user * @param pageNo page number * @param searchVal search value * @param pageSize page size * @return user list page */ @Override public Result queryUserList(User loginUser, String searchVal, Integer pageNo, Integer pageSize) { Result result = new Result(); if (!isAdmin(loginUser)) { putMsg(result, Status.USER_NO_OPERATION_PERM); return result; } Page<User> page = new Page<>(pageNo, pageSize); IPage<User> scheduleList = userMapper.queryUserPaging(page, searchVal); PageInfo<User> pageInfo = new PageInfo<>(pageNo, pageSize); pageInfo.setTotal((int) scheduleList.getTotal()); pageInfo.setTotalList(scheduleList.getRecords()); result.setData(pageInfo); putMsg(result, Status.SUCCESS);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
return result; } /** * updateProcessInstance user * * @param userId user id * @param userName user name * @param userPassword user password * @param email email * @param tenantId tenant id * @param phone phone * @param queue queue * @return update result code * @throws Exception exception */ @Override public Map<String, Object> updateUser(User loginUser, int userId, String userName, String userPassword, String email, int tenantId, String phone, String queue, int state) throws IOException { Map<String, Object> result = new HashMap<>(); result.put(Constants.STATUS, false); if (check(result, !hasPerm(loginUser, userId), Status.USER_NO_OPERATION_PERM)) { return result; } User user = userMapper.selectById(userId);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
7,180
[Feature][dolphinscheduler-api] Revoke project permission for specified user
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Revoke project permission for specified user ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/7180
https://github.com/apache/dolphinscheduler/pull/7185
2dc09c627fe1d32c63e9a7551390540581916d7d
3361d763c4af1b387602dfc97a5a57961b5a7c43
"2021-12-04T17:08:06Z"
java
"2021-12-05T06:13:23Z"
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
if (user == null) { putMsg(result, Status.USER_NOT_EXIST, userId); return result; } if (StringUtils.isNotEmpty(userName)) { if (!CheckUtils.checkUserName(userName)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, userName); return result; } User tempUser = userMapper.queryByUserNameAccurately(userName); if (tempUser != null && tempUser.getId() != userId) { putMsg(result, Status.USER_NAME_EXIST); return result; } user.setUserName(userName); } if (StringUtils.isNotEmpty(userPassword)) { if (!CheckUtils.checkPassword(userPassword)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, userPassword); return result; } user.setUserPassword(EncryptionUtils.getMd5(userPassword)); } if (StringUtils.isNotEmpty(email)) { if (!CheckUtils.checkEmail(email)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, email); return result; } user.setEmail(email); }