Sparkling Water-Deep Learning Energy Forecasting template

2017-06-06 Thread SUDHANSHU KAUSHIK
Hi,

I am using Sparkling Water-Deep Learning Energy Forecasting template of
predictionio. I am able to build, train and deploy the engine. But when I
query the engine, I am getting following error :
Cannot call methods on a stopped SparkContext

Stack Trace: java.lang.IllegalStateException: Cannot call methods on a
stopped SparkContext atorg.apache.spark.SparkContext.org
$apache$spark$SparkContext$$
assertNotStopped(SparkContext.scala:104) at org.apache.spark.SparkContext.
defaultParallelism(SparkContext.scala:2061) at
org.apache.spark.SparkContext.parallelize$default$2(SparkContext.scala:723)
at Algorithm.predict(Algorithm.scala:56) at
Algorithm.predict(Algorithm.scala:9)
at io.prediction.controller.P2LAlgorithm.predictBase(P2LAlgorithm.scala:70)
at 
io.prediction.workflow.ServerActor$$anonfun$24$$anonfun$25.apply(CreateServer.scala:536)
at 
io.prediction.workflow.ServerActor$$anonfun$24$$anonfun$25.apply(CreateServer.scala:535)
at 
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at 
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318) at
scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at
scala.collection.AbstractTraversable.map(Traversable.scala:105) at
io.prediction.workflow.ServerActor$$anonfun$24.apply(CreateServer.scala:535)
at io.prediction.workflow.ServerActor$$anonfun$24.apply(CreateServer.scala:513)
at spray.routing.ApplyConverterInstances$$anon$22$$anonfun$
apply$1.apply(ApplyConverterInstances.scala:25) at
spray.routing.ApplyConverterInstances$$anon$22$$anonfun$
apply$1.apply(ApplyConverterInstances.scala:24) at
spray.routing.ConjunctionMagnet$$anon$1$$anon$2$$anonfun$
happly$1$$anonfun$apply$1.apply(Directive.scala:38) at
spray.routing.ConjunctionMagnet$$anon$1$$anon$2$$anonfun$
happly$1$$anonfun$apply$1.apply(Directive.scala:37) at
spray.routing.directives.BasicDirectives$$anon$1.happly(BasicDirectives.scala:26)
at spray.routing.ConjunctionMagnet$$anon$1$$anon$2$$anonfun$
happly$1.apply(Directive.scala:37) at spray.routing.ConjunctionMagne
t$$anon$1$$anon$2$$anonfun$happly$1.apply(Directive.scala:36) at
spray.routing.directives.BasicDirectives$$anon$2.happly(BasicDirectives.scala:79)
at spray.routing.Directive$$anon$7$$anonfun$happly$4.apply(Directive.scala:86)
at spray.routing.Directive$$anon$7$$anonfun$happly$4.apply(Directive.scala:86)
at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$
happly$1.apply(BasicDirectives.scala:92) at spray.routing.directives.Basic
Directives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92) at
spray.routing.directives.ExecutionDirectives$$anonfun$detach
$1$$anonfun$apply$7$$anonfun$apply$3.apply$mcV$sp(ExecutionDirectives.scala:89)
at spray.routing.directives.ExecutionDirectives$$anonfun$detach
$1$$anonfun$apply$7$$anonfun$apply$3.apply(ExecutionDirectives.scala:89) at
spray.routing.directives.ExecutionDirectives$$anonfun$detach
$1$$anonfun$apply$7$$anonfun$apply$3.apply(ExecutionDirectives.scala:89) at
scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at scala.concurrent.impl.ExecutionContextImpl$$anon$3.exec(
ExecutionContextImpl.scala:107) at scala.concurrent.forkjoin.Fork
JoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.Fork
JoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinW
orkerThread.java:107)

So, please help me to resolve this bug.

Thanks and Regards,
Sudhanshu kaushik


[jira] [Resolved] (PIO-64) JDBCPEvents unit tests fail intermittently

2017-06-06 Thread Sara Asher (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIO-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sara Asher resolved PIO-64.
---
   Resolution: Fixed
Fix Version/s: 0.12.0-incubating

> JDBCPEvents unit tests fail intermittently
> --
>
> Key: PIO-64
> URL: https://issues.apache.org/jira/browse/PIO-64
> Project: PredictionIO
>  Issue Type: Bug
>Affects Versions: 0.11.0-incubating
> Environment: Travis CI
>Reporter: Donald Szeto
>Assignee: Takako Shimamoto
>  Labels: newbie
> Fix For: 0.12.0-incubating
>
>
> The creation timestamp of a test event mismatch the expectation by 1 
> millisecond and sometimes causes annoyance with PR's tests not passing even 
> though the error is irrelevant.
> Example test failure: 
> https://travis-ci.org/apache/incubator-predictionio/jobs/228316305
> Excerpt of output above:
> {code}
> [info] PEventsSpec
> [info] 
> [info]   PredictionIO Storage PEvents Specification
> [info] 
> [info] PEvents can be implemented by:
> [info] - JDBCPEvents 
> [info] 
> [info] JDBCPEvents should
> [info] - behave like any PEvents implementation 
> [info] 
> [info] + - (init test)
> [info] + - (insert test events)
> [info] + find in default
> [info] + find in channel
> [info] + aggregate user properties in default
> [info] + aggregate user properties in channel
> [info] + write to default
> [info] x write to channel
> [error]  
> List(Event(id=None,event=$set,eType=user,eId=u3,tType=None,tId=None,p=DataMap(Map(a
>  -> JInt(22), b -> JString(value13), d -> JArray(List(JInt(5), JInt(6), 
> JInt(1),t=1970-01-01T01:49:03.410Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.170Z),
>  
> Event(id=None,event=$unset,eType=user,eId=u3,tType=None,tId=None,p=DataMap(Map(a
>  -> 
> JNull)),t=1970-01-02T01:49:03.410Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.170Z),
>  
> Event(id=None,event=$set,eType=user,eId=u3,tType=None,tId=None,p=DataMap(Map(b
>  -> JString(value10), f -> JString(new12), d -> JArray(List(JInt(1), JInt(3), 
> JInt(2),t=1970-01-03T01:49:03.410Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.170Z),
>  
> Event(id=None,event=my_event3,eType=my_entity_type,eId=my_entity_id,tType=Some(my_target_entity_type),tId=Some(my_target_entity_id),p=DataMap(Map(propA
>  -> JDouble(1.2345), propB -> 
> JString(valueB))),t=2017-05-03T12:43:42.172Z,tags=List(),pKey=Some(my_prid),ct=2017-05-03T12:43:42.172Z),
>  
> Event(id=None,event=my_event4,eType=my_entity_type4,eId=my_entity_id4,tType=Some(my_target_entity_type4),tId=Some(my_target_entity_id4),p=DataMap(Map(prop6
>  -> JDouble(4.56), prop1 -> JInt(1), prop5 -> JArray(List(JString(a), 
> JString(b), JString(c))), prop2 -> JString(value2), prop4 -> JBool(true), 
> prop3 -> JArray(List(JInt(1), JInt(2), 
> JInt(3),t=2017-05-03T12:43:42.172Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.172Z),
>  
> Event(id=None,event=my_event6,eType=my_entity_type6,eId=my_entity_id6,tType=Some(my_target_entity_type6),tId=Some(my_target_entity_id6),p=DataMap(Map(prop6
>  -> JDouble(4.56), prop1 -> JInt(6), prop5 -> JArray(List(JString(a), 
> JString(b), JString(c))), prop2 -> JString(value2), prop4 -> JBool(true), 
> prop3 -> JArray(List(JInt(6), JInt(7), 
> JInt(8),t=2017-05-03T12:43:42.172Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.172Z),
>  
> Event(id=None,event=my_event,eType=my_entity_type,eId=my_entity_id,tType=Some(my_target_entity_type),tId=Some(my_target_entity_id),p=DataMap(Map(prop6
>  -> JDouble(4.56), prop1 -> JInt(1), prop5 -> JArray(List(JString(a), 
> JString(b), JString(c))), prop2 -> JString(value2), prop4 -> JBool(true), 
> prop3 -> JArray(List(JInt(1), JInt(2), 
> JInt(3),t=2017-05-03T12:43:42.171Z,tags=List(),pKey=Some(my_prid),ct=2017-05-03T12:43:42.171Z),
>  
> Event(id=None,event=my_event5,eType=my_entity_type5,eId=my_entity_id5,tType=Some(my_target_entity_type5),tId=Some(my_target_entity_id5),p=DataMap(Map(prop6
>  -> JDouble(4.56), prop1 -> JInt(1), prop5 -> JArray(List(JString(a), 
> JString(b), JString(c))), prop2 -> JString(value2), prop4 -> JBool(true), 
> prop3 -> JArray(List(JInt(1), JInt(2), 
> JInt(3),t=2017-05-03T12:43:42.172Z,tags=List(),pKey=None,ct=2017-05-03T12:43:42.172Z))
> [error]is missing: 
> Event(id=None,event=my_event,eType=my_entity_type,eId=my_entity_id,tType=Some(my_target_entity_type),tId=Some(my_target_entity_id),p=DataMap(Map(prop6
>  -> JDouble(4.56), prop1 -> JInt(1), prop5 -> JArray(List(JString(a), 
> JString(b), JString(c))), prop2 -> JString(value2), prop4 -> JBool(true), 
> prop3 -> JArray(List(JInt(1), JInt(2), 
> JInt(3),t=2017-05-03T12:43:42.171Z,tags=List(),pKey=Some(my_prid),ct=2017-05-03T12:43:42.172Z)
> [error]must not contain: 
> Event(id=None,event=my_event,eType=my_entity_type,eId=my_entity_id,tType=Some(my_target

[jira] [Assigned] (PIO-60) Fix minor issues with author information

2017-06-06 Thread Sara Asher (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIO-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sara Asher reassigned PIO-60:
-

Assignee: Chan

> Fix minor issues with author information
> 
>
> Key: PIO-60
> URL: https://issues.apache.org/jira/browse/PIO-60
> Project: PredictionIO
>  Issue Type: Improvement
>Reporter: Donald Szeto
>Assignee: Chan
>Priority: Minor
>
> Justin Mclean has pointed out a couple minor issues regarding source files in 
> the release: 
> https://lists.apache.org/thread.html/198e33ae11343da7f29257293e90ace6cae07766045240d2981efb49@%3Cgeneral.incubator.apache.org%3E
> This should be fixed in the next patch release.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (PIO-63) Fix incubator branding issues

2017-06-06 Thread Sara Asher (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIO-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sara Asher reassigned PIO-63:
-

Assignee: Donald Szeto

> Fix incubator branding issues
> -
>
> Key: PIO-63
> URL: https://issues.apache.org/jira/browse/PIO-63
> Project: PredictionIO
>  Issue Type: Bug
>Affects Versions: 0.11.0-incubating
>Reporter: Donald Szeto
>Assignee: Donald Szeto
>
> {quote}
> John D. Ament 
> Please review the branding guide here: 
> http://incubator.apache.org/guides/branding.html
> Specifically, we expect all podlings to show a logo (the actual logo has 
> changed) for the Incubator, and include a disclaimer (the same release 
> disclaimer) on the website.  I can find neither on your website.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Assigned] (PIO-62) Investigate RAT issues and other authorship information

2017-06-06 Thread Sara Asher (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIO-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sara Asher reassigned PIO-62:
-

Assignee: Chan

> Investigate RAT issues and other authorship information
> ---
>
> Key: PIO-62
> URL: https://issues.apache.org/jira/browse/PIO-62
> Project: PredictionIO
>  Issue Type: Bug
>Affects Versions: 0.11.0-incubating
>Reporter: Donald Szeto
>Assignee: Chan
>  Labels: newbie
>
> {quote}
> From: Luciano Resende 
> Subject: Re: [VOTE] Release Apache PredictionIO 0.11.0 (incubating) RC2
> Date: 2017-04-17 13:29 (-0700)
> List: gene...@incubator.apache.org
> show/hide original text
> I was running RAT on the source distribution and there are a lot of unknown
> licenses, some might be ok, but many are not, such as:
> *.sbt in projects and sub-projects
> *.css in docs
> Other things like signatures, etc seems ok
> -- 
> Luciano Resende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
> {quote}
> Also take a look at
> # docs/manual/source/humans.txt
> # 
> examples/scala-parallel-recommendation/custom-query/data/src/main/scala/org/template/recommendation/ImportDataScript.scala



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (PIO-87) Fix doc licensing issues

2017-06-06 Thread Sara Asher (JIRA)

[ 
https://issues.apache.org/jira/browse/PIO-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039683#comment-16039683
 ] 

Sara Asher commented on PIO-87:
---

Hi [~pferrel].  Is this just PIO-60, PIO-62 and PIO-63?

If so, I'll close this story out as a duplicate.

> Fix doc licensing issues
> 
>
> Key: PIO-87
> URL: https://issues.apache.org/jira/browse/PIO-87
> Project: PredictionIO
>  Issue Type: Bug
>Reporter: Sara Asher
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)