-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Trivial - P5
-
None
-
Affects Version/s: 3.0.1
-
Component/s: Configuration
-
None
-
Environment:Windows 10
Spark 3.0.1
Scala 2.12.10
Java 1.8.0_281
Good Morning
I am new in this world. I am trying to use the pyspark mongoDb connetions for the first time.
I am receveing am erro when i try to perform the follow intruction
df01 = spark.read.format("com.mongodb.spark.sql.DefaultSource")\
.option("database","db_tweets")\
.option("collection", "back_tweets")\
.load()
The error message starts with
java.lang.NoClassDefFoundError: Could not initialize class com.mongodb.spark.config.ReadConfig$
at com.mongodb.spark.sql.DefaultSource.createRelation(DefaultSource.scala:67)
I've already tried every solution that i've found internet and i don't lnow ho to fix it.
I reaaly apreciate any help
Thanks in advance