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.

issue on databricks

See original GitHub issue

Hi,

i run into the following issue when using scalalogging on databricks. any idea what it means and how to fix it?

i use scala_logging version 3.7.2 scala 2.11

java.lang.InstantiationError: com.typesafe.scalalogging.Logger
	at com.typesafe.scalalogging.Logger$.apply(Logger.scala:32)
	at com.typesafe.scalalogging.LazyLogging$class.logger(Logging.scala:28)
	at com.someOrg.Main$.logger$lzycompute(Main.scala:17)
	at com.someOrg.Main$.logger(Main.scala:17)
	at com.someOrg.Main$.doSpark(Main.scala:39)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:66)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw$$iw$$iw$$iw$$iw.<init>(<console>:85)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw$$iw$$iw$$iw.<init>(<console>:87)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw$$iw$$iw.<init>(<console>:89)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw$$iw.<init>(<console>:91)
	at linefc4399efb4de4685ab70d641c74f4ba441.$read$$iw.<init>(<console>:93)
	at linefc4399efb4de4685ab70d641c74f4ba441.$eval$.$print$lzycompute(<console>:7)
	at linefc4399efb4de4685ab70d641c74f4ba441.$eval$.$print(<console>:6)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
Arnold1commented, Jan 30, 2018

@Adrian-Sanz-Alstom i ended up to fix it as follows: i changed from:

compile "com.typesafe.scala-logging:scala-logging_2.11:3.7.2"

to:

compile "com.typesafe.scala-logging:scala-logging-slf4j_2.11:2.1.2"

than i changed from:

import com.typesafe.scalalogging.LazyLogging

to

import com.typesafe.scalalogging.slf4j.LazyLogging

let me know if the same works for you!?

0reactions
timo-ahocommented, Aug 28, 2019

I could not make the solutions work. So, I explained mine in here: https://github.com/lightbend/scala-logging/issues/68

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error conditions in Databricks
This is a bug that has existed before DBR 5.0. To fix this issue, please upgrade your writer jobs to DBR 5.0 and...
Read more >
Troubleshoot performance bottlenecks in Azure Databricks
Monitoring and troubleshooting performance issues is a critical when operating production Azure Databricks workloads.
Read more >
Issues · databricks/Spark-The-Definitive-Guide - GitHub
Issues : databricks/Spark-The-Definitive-Guide ... Have a question about this project? Sign up for a free GitHub account to open an issue and ...
Read more >
Databricks Delta Issues | Stitch Documentation - Stitch Data
The automatic schema evolution feature available for Delta tables can cause issues when loading data to your Databricks Delta destination.
Read more >
Newest 'databricks' Questions - Stack Overflow
I've seen many iterations of this question but cannot seem to understand/fix this behavior. I am on Azure Databricks working on DBR 10.4...
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