Github user shimamoto commented on the issue:

    https://github.com/apache/incubator-predictionio/pull/441
  
    > yes, it requires two SparkContexts because PredictionIO implicitly stops 
the first one after preparing deploy, so it cannot be reused for the second 
instance to run queries.
    
    @mars Oh, I see. But when using a persisted model, PredictionIO don't stop 
the first SparkContext.
    
https://github.com/apache/incubator-predictionio/blob/v0.12.0-incubating/core/src/main/scala/org/apache/predictionio/controller/Engine.scala#L241-L250
    
    I guess this causes, for example, if we use the Recommendation Engine 
Template, which supports loading a persisted model 
([see](https://github.com/apache/incubator-predictionio-template-recommender/blob/develop/src/main/scala/ALSModel.scala)).


---

Reply via email to