Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class io.confluent.connect.avro.AvroConverter could not be found #420

Open
renukaradhya opened this issue Sep 25, 2016 · 3 comments
Open

Comments

@renukaradhya
Copy link

I am trying to run connect-standalone.bat on windows and getting below error

command:
confluent-3.0.1\bin\windows>connect-standalone.bat ../../etc/schema-registry/connect-avro-standalone.properties ../../etc/kafka-connect-elasticsearch/quickstart-elasticsearch.properties

Exception in thread "main" org.apache.kafka.common.config.ConfigException: Invalid value io.confluent.connect.avro.AvroConverter for configuration value.converter: Class io.confluent.connect.avro.AvroConverter could not be found.
at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:672)
at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:418)
at org.apache.kafka.common.config.AbstractConfig.(AbstractConfig.java:55)
at org.apache.kafka.common.config.AbstractConfig.(AbstractConfig.java:62)
at org.apache.kafka.connect.runtime.WorkerConfig.(WorkerConfig.java:156)
at org.apache.kafka.connect.runtime.standalone.StandaloneConfig.(StandaloneConfig.java:43)
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:70)

I build new kafka-connect-avro-converter-3.1.0.jar from \schema-registry-master\avro-converter GIT hub code.

I have placed the kafka-connect-avro-converter-3.1.0.jar in confluent-3.0.1\share\java\schema-registry folder before running the connect-standalone.bat

I even tried creating an instance of AvroConverter in separate project but getting below error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/kafka/connect/storage/Converter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.targeting.util.MyConverter.main(MyConverter.java:9)
Caused by: java.lang.ClassNotFoundException: org.apache.kafka.connect.storage.Converter
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more

@jcustenborder
Copy link
Contributor

@renukaradhya Just a FYI. We are not currently testing the Confluent platform on windows. The class not found is in core Kafka. In general the server processes for Kafka are only tested on Linux.

@renukaradhya
Copy link
Author

Hi,

I am using Confluent Platform on windows and fixed some of the issues and
checked in to GITHUB. Its available in the below link.

https://github.com/renukaradhya/confluentplatform

Basically updated few batch files.

Regards,
Aradhya

On Thu, Oct 13, 2016 at 2:45 AM, Jeremy Custenborder <
notifications@github.com> wrote:

@renukaradhya https://github.com/renukaradhya Just a FYI. We are not
currently testing the Confluent platform on windows. The class not found is
in core Kafka. In general the server processes for Kafka are only tested on
Linux.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#420 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVVblKjaiHK6Nq3D9IeM6hw2Sq8WSecFks5qzU4AgaJpZM4KF3TY
.

@OneCricketeer
Copy link
Contributor

OneCricketeer commented Feb 8, 2022

NoClassDefFoundError: org/apache/kafka/connect/storage/Converter

This is a built-in class with Kafka, and would indicate your classpath for the connect-standalone script was incorrect.

If you still have problems with it, report the problem to Apache Kafka JIRA.

Class io.confluent.connect.avro.AvroConverter could not be found

Nowadays, you should install the Converter from Confluent Hub

https://www.confluent.io/hub/confluentinc/kafka-connect-avro-converter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants