Missing maven dependencies when using --packages and ClassNotFound when using --jars
See original GitHub issueHi,
I want to play a little bit with the BigQuery connector (on AWS EMR version 5.24.1 with Spark 2.4.2) and run this command: pyspark --packages com.google.cloud.spark:spark-bigquery_2.11:0.9.1-beta
. But the following three dependencies seem to be missing in maven central:
- javax.jms#jms;1.1!jms.jar
- com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
- com.sun.jmx#jmxri;1.2.1!jmxri.jar
As a workaround, I tried to download the JAR from here: https://console.cloud.google.com/storage/browser/spark-lib/bigquery and add it to the classpath with this command: pyspark --jars spark-bigquery-latest.jar
. But when I tried to read a table from BigQuery, I get this error: ClassNotFoundException: Failed to find data source: com.google.cloud.spark.bigquery
.
I also tried to use com.google.cloud.spark.bigquery instead of just “bigquery” in format(), without success.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
NoClassDefFoundError on Maven dependency - Stack Overflow
I created a Maven project with Eclipse and added dependencies, and it was working without problems. But when I try to run it...
Read more >3 ways to solve java.lang.NoClassDefFoundError in Java J2EE
A simple example of NoClassDefFoundError is class belongs to a missing JAR file or JAR was not added into classpath or sometimes jar's...
Read more >How to fix Maven build issue in Eclipse? Perform ... - Crunchify
Use “maven-shade-plugin” to Create just 1 Executable jar with all required Dependencies in it for your Java or Spring Project? Eclipse IDE ...
Read more >Geotools with maven: java.lang.noclassdeffounderror while ...
geotools:gt-shapefile:jar:sources:19-20180108.192838-162 is missing, no dependency information available [WARNING] Could not get sources for org ...
Read more >SonarQube 6.2 / sonar-packaging-maven-plugin
SonarQube 6.2 / sonar-packaging-maven-plugin : Missing Guava dependency ... run the analysis using this plugin, I got the below ClassNotFoundException error ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, now it works with:
And in the code just:
Thanks a lot for your support!
Created #72 to handle the --packages issue