You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Spongebob (Jira)" <ji...@apache.org> on 2023/06/08 02:24:00 UTC

[jira] [Closed] (FLINK-32274) kafka class could not be found while using appliction mode.

     [ https://issues.apache.org/jira/browse/FLINK-32274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Spongebob closed FLINK-32274.
-----------------------------
    Release Note: try to replace `org.apache.kafka.common.serialization.StringSerializer` with `Class.forName("org.apache.kafka.common.serialization.StringSerializer")`
      Resolution: Invalid

> kafka class could not be found while using appliction mode.
> -----------------------------------------------------------
>
>                 Key: FLINK-32274
>                 URL: https://issues.apache.org/jira/browse/FLINK-32274
>             Project: Flink
>          Issue Type: Bug
>          Components: Client / Job Submission
>    Affects Versions: 1.14.5
>            Reporter: Spongebob
>            Priority: Major
>
> While using yarn-application mode to submit my app, it would throw an exception: `org.apache.kafka.common.config.ConfigException: Invalid value org.apache.kafka.common.serialization.StringDeserializer for configuration key.deserializer: Class org.apache.kafka.common.serialization.StringDeserializer could not be found.` I had defined KafkaProducer variation in my client code. And I think the kafka-clients dependency was already uploaded while submitting the app.
> But I found it is ok in per-job mode.



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