Closed JuMan0603 closed 6 years ago
The JPMML-Evaluator-Spark library currently exists in two configurations:
1.0-SNAPSHOT
development branch (and 1.0.0
version) - for Spark 1.5.X and 1.6.X. The argument type is DataFrame
.1.1-SNAPSHOT
development branch - for Spark 2.0 and newer. The argument type is Dataset
.Clearly, you are trying to use the 1.1-SNAPSHOT
development branch on Spark 1.5.X or 1.6.X. Please switch to the 1.0-SNAPSHOT
development branch.
A
java.lang.AbstractMethodError
error occurred when I was testing the jpmml-evaluator-spark locally, and this error occurred when I calledpmmlTransformer.transform
. Here is the code:The full stack trace is:
TestPMML.scala:154 refers to the “val predictResultDF = pmmlTransformer.transform(predictDF)” line, and I don't know why this error occurred.