question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cassandra Sink Connector - Exception in thread "main" java.lang.InstantiationError: com.typesafe.scalalogging.Logger

See original GitHub issue

Hi,

I downloaded Cassandra Sink Connector from: https://docs.lenses.io/connectors/sink/cassandra.html

And added to Kafka “libs/” folder, and then when i try to launch the kafka server: ./kafka-server-start.sh ../config/server.properties

I am getting this error message:

Exception in thread "main" java.lang.InstantiationError: com.typesafe.scalalogging.Logger
	at com.typesafe.scalalogging.Logger$.apply(Logger.scala:48)
	at kafka.utils.Log4jControllerRegistration$.<init>(Logging.scala:25)
	at kafka.utils.Log4jControllerRegistration$.<clinit>(Logging.scala)
	at kafka.utils.Logging.$init$(Logging.scala:47)
	at kafka.Kafka$.<init>(Kafka.scala:30)
	at kafka.Kafka$.<clinit>(Kafka.scala)
	at kafka.Kafka.main(Kafka.scala)

Is there a way to solve this error please ?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
stheppicommented, Oct 13, 2019

I will re-share with you the docs for installing the connection (It has nothing to do with vanilla kafka or not): https://docs.lenses.io/connectors/sink/cassandra.html#installing-the-connector

The docs tell you where to copy the jar and they give you the example of running Connect in distributed mode. To configure the worker it points to etc/schema-registry/connect-avro-distributed.properties. Kafka connect standlone needs a configuration file as well, which I assume you already pass because otherwise it just does not start. Here is the docs for running Connect with the Cassandra Sink enabled:

Install and configure a Kafka Connect cluster
1.Create a folder on each server called plugins/lib
2.Copy into the above folder the required connector jars from the stream reactor download
3. Edit connect-avro-distributed.properties in the etc/schema-registry folder and uncomment the plugin.path option. Set it to the root directory i.e. plugins you deployed the stream reactor connector jars in step 2.
4.Start Connect, bin/connect-distributed etc/schema-registry/connect-avro-distributed.properties

Also, maybe you missed my earlier message, but let me repeat it again:

 do not to copy the jar into the `libs/` folder. That is the folder which contains all the Kafka broker Jar artefacts. A connector can easily overwrite some files.

Use the plugins/lib or any other folder on your machine. The set the plugin.path in your Kafka connect standalone properties file.

0reactions
KabDevelopercommented, Oct 14, 2019

@stheppi You hadn’t to bother yourself to past again the same messages.

It seem that there misunderstanding related to my question but it doesn’t matter, I just found about another customizable option …

Thanks for your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KAFKA Cassandra Source connect - Stack Overflow
Exception in thread “main” java.lang.InstantiationError: com.typesafe.scalalogging.Logger at com.typesafe.scalalogging.
Read more >
kafka-connect-cassandra - Scaladex
Kafka Connect Cassandra Connector. This project includes source & sink connectors. Release Status. Experimental phase. Table of Contents.
Read more >
Re: spark-submit results in NoClassDefFoundError
This email appears to be a reply to another email, as it contains an in-reply-to reference. If you wish to attempt finding the...
Read more >
com.typesafe.scala-logging : scala-logging_2.12 : 3.9.4
[![Maven Central](https://img.shields.io/maven-central/v/com.typesafe.scala-logging/scala-logging_2.12.svg?label=Maven%20Central)](https://search.maven.org/ ...
Read more >
com.typesafe.scala-logging - Maven Repository
Scala Logging 1,581 usages. com.typesafe.scala-logging » scala-loggingApache. scala-logging. Last Release on May 21, 2022.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found