You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/09/23 12:12:09 UTC
[GitHub] [hudi] parisni opened a new issue, #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
parisni opened a new issue, #6767:
URL: https://github.com/apache/hudi/issues/6767
The released spark artifacts on maven (eg group: "org.apache.hudi", name: "hudi-spark3.2.x_2.12", version: "0.12.0") have an bad dependency on scala 2.11.
```
<artifactId>hudi-spark-common_${scala.binary.version}</artifactId>
```
but scala.binary.version is fixed to 2.11
https://github.com/apache/hudi/blob/master/pom.xml#L163
https://github.com/apache/hudi/blob/master/hudi-spark-datasource/hudi-spark3.2.x/pom.xml#L236
this leads to this error
```
org.apache.spark.sql.sources.DataSourceRegister: Provider org.apache.hudi.Spark3DefaultSource could not be instantiated
java.util.ServiceConfigurationError: org.apache.spark.sql.sources.DataSourceRegister: Provider org.apache.hudi.Spark3DefaultSource could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at scala.collection.convert.Wrappers$JIteratorWrapper.next(Wrappers.scala:46)
at scala.collection.Iterator.foreach(Iterator.scala:943)
at scala.collection.Iterator.foreach$(Iterator.scala:943)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
at scala.collection.IterableLike.foreach(IterableLike.scala:74)
at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
Caused by: java.lang.ClassNotFoundException: org.apache.hudi.SparkAdapterSupport$class
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 114 more
```
unless you exclude the depency when importing :+1:
```
exclude group: 'org.apache.hudi', module: 'hudi-spark-common_2.11'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hangc0276 commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by GitBox <gi...@apache.org>.
hangc0276 commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1302255640
I also meet the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] monkeyboy123 commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by "monkeyboy123 (via GitHub)" <gi...@apache.org>.
monkeyboy123 commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1413630328
I also meet the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1287907371
@xushiyan : can you take this up this week.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] parisni commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by GitBox <gi...@apache.org>.
parisni commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1258146920
Yeah the bundle has deps which breaks my project. I cannot use it
On September 26, 2022 2:28:03 PM UTC, Y Ethan Guo ***@***.***> wrote:
***@***.*** have you tried to use the spark 3.2 bundle as the dependency, `org.apache.hudi:hudi-spark3.2-bundle_2.12:0.12.0`? That one is well maintained as a dependency for other projects and should be clean.
>
>--
>Reply to this email directly or view it on GitHub:
>https://github.com/apache/hudi/issues/6767#issuecomment-1258125565
>You are receiving this because you were mentioned.
>
>Message ID: ***@***.***>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] yihua commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by GitBox <gi...@apache.org>.
yihua commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1258125565
@parisni have you tried to use the spark 3.2 bundle as the dependency, `org.apache.hudi:hudi-spark3.2-bundle_2.12:0.12.0`? That one is well maintained as a dependency for other projects and should be clean.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build [hudi]
Posted by "liiang-huang (via GitHub)" <gi...@apache.org>.
liiang-huang commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1774371473
facing the same issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] Gassa commented on issue #6767: [SUPPORT] Dependency hudi-spark-common_2.11 present in spark3.* 2.12 build
Posted by "Gassa (via GitHub)" <gi...@apache.org>.
Gassa commented on issue #6767:
URL: https://github.com/apache/hudi/issues/6767#issuecomment-1501540197
I am facing the same problem after upgrading the hudi dependency in our project,is there any temporary fix?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org