You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/02/19 09:27:51 UTC
[GitHub] [incubator-dolphinscheduler] daipeng1104 opened a new issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
daipeng1104 opened a new issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809
**For better global communication, Please describe it in English. If you feel the description in English is not clear, then you can append description in Chinese(just for Mandarin(CN)), thx! **
**Describe the bug**
when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
**To Reproduce**
Steps to reproduce the behavior, for example:
1. ResourceManager HA enable
2. Kerberos authentication yarn cluster
3. http authentication enable ,hadoop.http.authentication.type is set to kerberos . see detail https://hadoop.apache.org/docs/r2.7.6/hadoop-project-dist/hadoop-common/HttpAuthentication.html
4. run a application on yarn by dolphinscheduler

**Expected behavior**
application success on yarn ,but dolphinscheduler get failed status
**Screenshots**
status on yarn

log

**Which version of Dolphin Scheduler:**
1.3.5
** improvement**
- when kerberos enable,use KerberosHttpClient in YarnHAAdminUtils.getRMState method
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] zhuangchong commented on issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
zhuangchong commented on issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809#issuecomment-785666092
@daipeng1104
You are welcome to submit a PR to fix this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] CalvinKirs closed issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
CalvinKirs closed issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] daipeng1104 commented on issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
daipeng1104 commented on issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809#issuecomment-785531614
> @daipeng1104
> Check that YARN IP (192.168.1.55,192.168.1.56) is valid
>
> Application by accessing http://192.168.1.55:8088/ws/v1/cluster/info and http://192.168.1.56:8088/ws/v1/cluster/info to detect the state determine the survival of the ResourceManager
> Look through you provide log, 192.168.1.55, 192.168.1.56 invalid IP, to active the ResourceManager
I found the reason in the source code. In Ha mode, YarnHAAdminUtils.getAcitveRMName called to detect the active RM . but when kerberos http authentication enabled (core-site.xml), the method will always return null . The reason is because the HttpUtils.get(url) can not get result when kerberos http authentication enabled .
in the dev branch, the KerberosHttpClient can solve the problem. but YarnHAAdminUtils.getRMState methods need to be modified to adapt kerberos http authentication by call KerberosHttpClient.get() .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] zhuangchong commented on issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
zhuangchong commented on issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809#issuecomment-785521130
@daipeng1104
Check that YARN IP (192.168.1.55,192.168.1.56) is valid
Application by accessing http://192.168.1.55:8088/ws/v1/cluster/info and http://192.168.1.56:8088/ws/v1/cluster/info to detect the state determine the survival of the ResourceManager
Look through you provide log, 192.168.1.55, 192.168.1.56 invalid IP, to active the ResourceManager
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] daipeng1104 commented on issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
daipeng1104 commented on issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809#issuecomment-782487235
> What are the following two property configurations in the common.properties file
>
> ```
> yarn.resourcemanager.ha.rm.ids=192.168.xx.xx,192.168.xx.xx
> yarn.application.status.address=http://ds1:8088/ws/v1/cluster/apps/%s
> ```
yarn.resourcemanager.ha.rm.ids=192.168.1.55,192.168.1.56
yarn.application.status.address=http://yarnIp1:8088/ws/v1/cluster/apps/%s
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-dolphinscheduler] zhuangchong commented on issue #4809: [Bug][dolphinscheduler-common] when Kerberos authentication is enabled and hadoop.http.authentication.type is set to kerberos and ResourceManager HA is enabled,you cannot get application status
Posted by GitBox <gi...@apache.org>.
zhuangchong commented on issue #4809:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4809#issuecomment-782038050
What are the following two property configurations in the common.properties file
```
yarn.resourcemanager.ha.rm.ids=192.168.xx.xx,192.168.xx.xx
yarn.application.status.address=http://ds1:8088/ws/v1/cluster/apps/%s
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org