You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Adam Antal (JIRA)" <ji...@apache.org> on 2019/05/09 08:18:00 UTC

[jira] [Commented] (KAFKA-8146) WARNING: An illegal reflective access operation has occurred

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

Adam Antal commented on KAFKA-8146:
-----------------------------------

Hi,

This error is the same as in HADOOP-10848. This is due to JDK9+ blocking access to sun.* classes.

Can be resolved with a patch in ZK side by getting rid of the reflective call.

> WARNING: An illegal reflective access operation has occurred
> ------------------------------------------------------------
>
>                 Key: KAFKA-8146
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8146
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, core
>    Affects Versions: 2.1.1
>         Environment: Java 11
> Kafka v2.1.1
>            Reporter: Abhi
>            Priority: Major
>
> Hi,
> I am running Kafka v2.1.1 and see below warnings at the startup of server and clients. What is the cause of these warnings and how they can be avoided or fixed?
> *Client side:*
> WARNING: Illegal reflective access by org.apache.kafka.common.network.SaslChannelBuilder (file:/local/kafka/kafka_installation/kafka_2.12-2.1.1/libs/kafka-clients-2.1.1.jar) to method sun.security.krb5.Config.getInstance()
> WARNING: Please consider reporting this to the maintainers of org.apache.kafka.common.network.SaslChannelBuilder
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> *Server side:*
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.zookeeper.server.util.KerberosUtil (file:/local/kafka/kafka_installation/kafka_2.12-2.1.1/libs/zookeeper-3.4.13.jar) to method sun.security.krb5.Config.getInstance()
> WARNING: Please consider reporting this to the maintainers of org.apache.zookeeper.server.util.KerberosUtil
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)