If you want to use Spark 2.4, you need to build PredictionIO against
Spark 2.4 (json4s 3.5.3).

On Wed, Mar 13, 2019 at 6:23 PM shoaib hussain <[email protected]> wrote:
>
> Following is my build.sbt
>
> scalaVersion := "2.11.12"
> libraryDependencies ++= Seq(
>    "org.apache.predictionio" %% "apache-predictionio-core" % "0.14.0" % 
> "provided",
>    "org.apache.spark"        %% "spark-core"               % "2.4.0" % 
> "provided",
>    "org.apache.spark"        %% "spark-mllib"              % "2.4.0" % 
> "provided",
>    "org.apache.lucene"        % "lucene-core"              % "6.5.1",
>    "org.apache.lucene"        % "lucene-analyzers-common"  % "6.5.1",
>    "org.xerial.snappy"        % "snappy-java"              % "1.1.1.7",
>    "com.esotericsoftware"     % "kryo"                     % "4.0.1",
>    "org.json4s"               % "json4s-core_2.11"         % "3.6.5",
>    "org.json4s"               % "json4s-native_2.11"       % "3.6.5",
>    "org.json4s"               % "json4s-jackson_2.11"      % "3.6.5"
> )
>
> and I'm getting this error when I run "pio train".
>
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.json4s.ParserUtil$.quote(Ljava/lang/String;)Ljava/lang/String;
>
> I tried with different versions of json4s, but no luck. getting same error 
> all the time.
>
>
>
> --
> Thank you.
>
> Regards,
>
> Shoaib Hussain

Reply via email to