Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

NoClassDefFoundError on Java8 JFunction #102

Open
textboy opened this issue Jul 29, 2021 · 0 comments
Open

NoClassDefFoundError on Java8 JFunction #102

textboy opened this issue Jul 29, 2021 · 0 comments

Comments

@textboy
Copy link

textboy commented Jul 29, 2021

Error: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: scala/runtime/java8/JFunction0$mcI$sp
Runtime: Databricks workspace 5.5 LTS (i.e. Spark 2.4.3 + Scala 2.11)
Code:
import com.audienceproject.spark.dynamodb.implicits._
import org.apache.spark.internal.Logging
import org.apache.spark.sql.SparkSession

object DynamoClient extends Logging {
def test01() = {
val region = "us-west-2"
val tableName = "test_table"
val spark = SparkSession.builder().getOrCreate()
val dynamoDf = spark.read.option("region", region).dynamodb(tableName)
dynamoDf.show(1)
}
}

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

No branches or pull requests

1 participant