How did you install your environment on which you ran "pio train"? Did
you build PredictionIO to support Spark 2.4.0?
https://predictionio.apache.org/install/install-sourcecode/

On Wed, Mar 13, 2019 at 7:28 PM shoaib hussain <shoaib...@gmail.com> wrote:
>
> I downloaded the PIO 0.14 jar, isn't it build with Spark 2.4?
>
> On Wed, Mar 13, 2019 at 2:59 PM takako shimamoto <chiboch...@gmail.com> wrote:
>>
>> 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 <shoaib...@gmail.com> 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