Closed gkiril closed 5 years ago
Your Apache Spark application is packaged incorrectly. Specifically, you need to shade all org.dmg.pmml.*
and org.jpmml.model.*
classes.
Again, this is clearly stated in the README file: https://github.com/jpmml/jpmml-sparkml#library
All this "conflict resolution" documentation is there for a reason.
Ah, OK, I didn't see the documentation about jpmml-sparkml
(I was looking only in this repo -- jpmml-evaluator-spark
). Could be useful if this information also stands on the jpmml-evaluator-spark
documentation.
Thanks for your answer!
I ran into UnmarshalException with Spark 2.0.1 when I was trying to run the
readPMML
function (had the same issue with 1.6.1, but I upgraded the Spark version)In my
pom
file, I wrote the dependencywhich is also used with the spark dependency:
I know that Spark has different version of PMML which is in conflict with the newer versions. But, isn't this project for solving that issue too? Is this some sort of an issue or maybe I am doing something wrong?