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.

How to build with Scala 2.12?

See original GitHub issue

I’m currently trying to build this package with Scala 2.12 and not 2.11. It’s my first time working with a POM so I wasn’t sure how to proceed.

The reason why I’m trying to build the package with this Scala version is because we’re currently using the connector in our Databricks cluster running Databricks Runtime 7.0 + Spark 3.0. The runtime uses Scala 2.12. We were having some issues with the connector and it seems to be compatibility issues with Spark 3.0. There was currently a fix made in PR #520 that would resolve the error, but it won’t be out until the next release.

I tried just changing the Scala version from 2.11 to 2.12 and Spark version from 2.3.3 to 3.0.0 but that gave me the following errors: object SharedSQLContext is not a member of package org.apache.spark.sql.test The other errors were similar, stating how certain objects were not members of certain packages.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

irvinktangcommented, Aug 5, 2020

@nyaghma hey it turns out, that job was actually supposed to hang. So everything works now! Thanks for all your help 😃

nyaghmacommented, Aug 5, 2020

Ok, then we need to look into the code and stack trace to find out what causes the issue. I’d be happy to help if you can share those with me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scala 2.12.2
Download and use Scala with IntelliJ and then build a project, then test it. Using SDKMAN!, you can easily install specific versions of...
Read more >
Building a Scala Project with IntelliJ and sbt
On the Project panel on the left, expand SBTExampleProject => src => main · Right-click scala and select New => Package · Name...
Read more >
sbt Reference Manual — Cross-building
Define the versions of Scala to build against in the crossScalaVersions setting. ... For, example if the current subproject's scalaVersion is 2.12.10, ...
Read more >
Building Spark - Spark 3.3.1 Documentation
The Maven-based build is the build of reference for Apache Spark. Building Spark using Maven requires Maven 3.8.6 and Java 8. Spark requires...
Read more >
Building Scala 2.12 binaries from source code - Stack Overflow
What is the complete sbt command to build scala 2.12.16 distributable binary for *Nix system (macOS & Linux)?. Scala 2.12.16 source zip :...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found