Closed Mantj closed 4 years ago
What is the functional difference between your spark-local and spark-yarn environments? The JPMML-SparkML library does not care about its environment. Therefore, the error is totally caused by your Spark application.
The resolution is exactly the same as for #45 - fix your build. Specifically, carefully review your shading configuration, and make sure that the META-INF/sparkml2pmml.properties
configuration files is correctly included.
just like #45 , I ran programs in spark-local sucessfully. But when I ran codes in spark-yarn online, the following error message occurred:
The error occurred at this line:
val pmml = new PMMLBuilder(dataTrain.data.schema, pipelineModel).build()
The pipelineModel has VectorAssembler and GBTBut unlike #45 ,I used spark 2.3.4 and scala 2.11.12, and the dependency I had is:
Please help~~~