[ 
https://issues.apache.org/jira/browse/FLINK-36389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885232#comment-17885232
 ] 

Luke Chen commented on FLINK-36389:
-----------------------------------

I think we did check if delegation tokens is enabled before checking the state:
https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/security/token/DelegationTokenReceiverRepository.java#L70

The error seems to indicate that there are multiple Delegation token receivers 
set. Maybe have a look?

> Fix DelegationTokenReceiverRepository to check if Delegation Token is enabled
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-36389
>                 URL: https://issues.apache.org/jira/browse/FLINK-36389
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Kubernetes, Deployment / YARN
>            Reporter: Archit Goyal
>            Priority: Major
>              Labels: security
>
> {*}Issue{*}: During the initialization of the 
> {{DelegationTokenReceiverRepository}} in the constructor, the 
> {{loadReceivers()}} method is invoked without checking whether delegation 
> tokens are enabled. This leads to the following error in the TaskManager logs:
> {code:java}
> java.lang.IllegalStateException: Delegation token receiver with service name 
> {} has multiple implementations [hadoopfs]{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to