GitHub user 561152 opened a pull request:

    https://github.com/apache/incubator-predictionio/pull/441

     pio batchpredict error

     pio batchpredict --input /tmp/pio/batchpredict-input.json --output 
/tmp/pio/batchpredict-output.json
    
    [WARN] [ALSModel] Product factor is not cached. Prediction could be slow.
    Exception in thread "main" org.apache.spark.SparkException: Only one 
SparkContext may be running in this JVM (see SPARK-2243). To ignore this error, 
set spark.driver.allowMultipleContexts = true. The currently running 
SparkContext was created at:
    org.apache.spark.SparkContext.<init>(SparkContext.scala:76)
    
org.apache.predictionio.workflow.WorkflowContext$.apply(WorkflowContext.scala:45)
    org.apache.predictionio.workflow.BatchPredict$.run(BatchPredict.scala:160)
    
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1$$anonfun$apply$2.apply(BatchPredict.scala:121)
    
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1$$anonfun$apply$2.apply(BatchPredict.scala:117)
    scala.Option.map(Option.scala:146)
    
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1.apply(BatchPredict.scala:117)
    
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1.apply(BatchPredict.scala:115)
    scala.Option.map(Option.scala:146)
    org.apache.predictionio.workflow.BatchPredict$.main(BatchPredict.scala:115)
    org.apache.predictionio.workflow.BatchPredict.main(BatchPredict.scala)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:498)
    
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
    org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
    org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
    org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
    org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
            at 
org.apache.spark.SparkContext$$anonfun$assertNoOtherContextIsRunning$2.apply(SparkContext.scala:2278)
            at 
org.apache.spark.SparkContext$$anonfun$assertNoOtherContextIsRunning$2.apply(SparkContext.scala:2274)
            at scala.Option.foreach(Option.scala:257)
            at 
org.apache.spark.SparkContext$.assertNoOtherContextIsRunning(SparkContext.scala:2274)
            at 
org.apache.spark.SparkContext$.markPartiallyConstructed(SparkContext.scala:2353)
            at org.apache.spark.SparkContext.<init>(SparkContext.scala:85)
            at 
org.apache.predictionio.workflow.WorkflowContext$.apply(WorkflowContext.scala:45)
            at 
org.apache.predictionio.workflow.BatchPredict$.run(BatchPredict.scala:183)
            at 
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1$$anonfun$apply$2.apply(BatchPredict.scala:121)
            at 
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1$$anonfun$apply$2.apply(BatchPredict.scala:117)
            at scala.Option.map(Option.scala:146)
            at 
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1.apply(BatchPredict.scala:117)
            at 
org.apache.predictionio.workflow.BatchPredict$$anonfun$main$1.apply(BatchPredict.scala:115)
            at scala.Option.map(Option.scala:146)
            at 
org.apache.predictionio.workflow.BatchPredict$.main(BatchPredict.scala:115)
            at 
org.apache.predictionio.workflow.BatchPredict.main(BatchPredict.scala)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
            at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
            at 
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
            at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
            at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-predictionio develop

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-predictionio/pull/441.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #441
    
----
commit a87b7a6d90e071f0c92455b1a157681bae8bdf2a
Author: Chan Lee <chanlee...@gmail.com>
Date:   2017-09-28T03:16:57Z

    Bump version to 0.13.0-SNAPSHOT

commit 7339a16fd0fedeb2ab9a9fce79e13a561e5198f9
Author: Shinsuke Sugaya <shins...@apache.org>
Date:   2017-10-06T04:43:03Z

    [PIO-125] Spark 2.2 support
    
    Closes #436

commit 9017d7fae4a77246b63688508c3d56dedad177e0
Author: Donald Szeto <don...@apache.org>
Date:   2017-10-07T06:16:30Z

    [PIO-133] Add DOAP

----


---

Reply via email to