Re: How to release Python SDK to PyPI

2017-09-12 Thread Shinsuke Sugaya
Thank you for adding me :)
I'll prepare a new version release.

Thanks,
 shinsuke

2017-09-13 11:46 GMT+09:00 Donald Szeto :
> Hey Shinsuke,
>
> Since you are also PMC, I have added you as an owner role so that you can
> administer the PyPI publishing.
>
> I also agree on voting and releasing a new version of the Python SDK.
>
> Thanks!
>
> Regards,
> Donald
>
> On Sun, Sep 10, 2017 at 6:12 AM, Shinsuke Sugaya 
> wrote:
>
>> Hi,
>>
>> PredictionIO has PyPI package:
>>
>> https://pypi.python.org/pypi/PredictionIO
>>
>> I'd like to release predictionio-sdk-python to PyPI
>> after merging some PR. Is it possible to add me
>> as Maintainer role to do that?
>> (my username is shinsuke)
>>
>> If yes, I'll fix PRs, start a release vote and then
>> release it to PyPI.
>>
>> Thanks,
>>  shinsuke
>>


[GitHub] incubator-predictionio issue #434: Update install-sourcecode.html.md.erb

2017-09-12 Thread dszeto
Github user dszeto commented on the issue:

https://github.com/apache/incubator-predictionio/pull/434
  
Thanks for catching!


---


[GitHub] incubator-predictionio pull request #434: Update install-sourcecode.html.md....

2017-09-12 Thread asfgit
Github user asfgit closed the pull request at:

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


---


[GitHub] incubator-predictionio pull request #431: Update templates.yaml - user name ...

2017-09-12 Thread asfgit
Github user asfgit closed the pull request at:

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


---


[GitHub] incubator-predictionio pull request #433: Update webhooks.html.md.erb

2017-09-12 Thread asfgit
Github user asfgit closed the pull request at:

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


---


[GitHub] incubator-predictionio issue #433: Update webhooks.html.md.erb

2017-09-12 Thread dszeto
Github user dszeto commented on the issue:

https://github.com/apache/incubator-predictionio/pull/433
  
Merging. Thanks @aayush142128 !


---


[GitHub] incubator-predictionio issue #431: Update templates.yaml - user name change

2017-09-12 Thread dszeto
Github user dszeto commented on the issue:

https://github.com/apache/incubator-predictionio/pull/431
  
Verified that GitHub is forwarding repos from the previous user to the new 
user. Merging. Thanks @thomasste !


---


[GitHub] incubator-predictionio pull request #367: [PIO-59] Use /dev/urandom to creat...

2017-09-12 Thread asfgit
Github user asfgit closed the pull request at:

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


---


[jira] [Commented] (PIO-59) "pio app new" sometimes takes long time

2017-09-12 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on PIO-59:
---

Github user asfgit closed the pull request at:

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


> "pio app new" sometimes takes long time
> ---
>
> Key: PIO-59
> URL: https://issues.apache.org/jira/browse/PIO-59
> Project: PredictionIO
>  Issue Type: Improvement
>  Components: Core
>Affects Versions: 0.11.0-incubating
>Reporter: Shinsuke Sugaya
>Priority: Minor
> Fix For: 0.12.0-incubating
>
>
> Some users reported this problem in user ML, and I also encountered it.
> Checking stack traces, I think the cause is an entropy shortage for 
> /dev/random.
> {code}
> "main" #1 prio=5 os_prio=0 tid=0x7fc94803f800 nid=0x49a9 runnable 
> [0x7fc94fa1b000]
>java.lang.Thread.State: RUNNABLE
> at java.io.FileInputStream.readBytes(Native Method)
> at java.io.FileInputStream.read(FileInputStream.java:255)
> at 
> sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424)
> at 
> sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:525)
> at 
> sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:544)
> - locked <0x0003d34e8a48> (a java.lang.Object)
> at 
> sun.security.provider.NativePRNG$RandomIO.access$400(NativePRNG.java:331)
> at 
> sun.security.provider.NativePRNG$Blocking.engineNextBytes(NativePRNG.java:268)
> at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
> at 
> org.apache.predictionio.data.storage.AccessKeys$class.generateKey(AccessKeys.scala:71)
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESAccessKeys.generateKey(ESAccessKeys.scala:40)
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESAccessKeys.insert(ESAccessKeys.scala:60)
> at 
> org.apache.predictionio.tools.commands.App$$anonfun$create$4$$anonfun$apply$5.apply(App.scala:71)
> at 
> org.apache.predictionio.tools.commands.App$$anonfun$create$4$$anonfun$apply$5.apply(App.scala:62)
> at scala.Option.map(Option.scala:145)
> at 
> org.apache.predictionio.tools.commands.App$$anonfun$create$4.apply(App.scala:62)
> at 
> org.apache.predictionio.tools.commands.App$$anonfun$create$4.apply(App.scala:55)
> at scala.Option.getOrElse(Option.scala:120)
> at org.apache.predictionio.tools.commands.App$.create(App.scala:55)
> at 
> org.apache.predictionio.tools.console.Pio$App$.create(Pio.scala:172)
> at 
> org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:683)
> at 
> org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:626)
> at scala.Option.map(Option.scala:145)
> at 
> org.apache.predictionio.tools.console.Console$.main(Console.scala:626)
> at org.apache.predictionio.tools.console.Console.main(Console.scala)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (PIO-121) Authentication for Engine's HTTP API

2017-09-12 Thread Mars Hall (JIRA)
Mars Hall created PIO-121:
-

 Summary: Authentication for Engine's HTTP API
 Key: PIO-121
 URL: https://issues.apache.org/jira/browse/PIO-121
 Project: PredictionIO
  Issue Type: Improvement
  Components: Core
Affects Versions: 0.12.0-incubating
Reporter: Mars Hall


PredictionIO already supports key-based authentication for accessing the 
{{/events.json}} API, but is missing any type of auth for the {{/queries.json}} 
API and {{/}} status page.

Comprehensive authentication would simplify deployment to cloud platforms by 
eliminating the current requirement to deploy on a private network in order to 
prevent public access.

As a first step, adding key-based auth to the Engine APIs that matches the 
Eventserver API {{accessKey}} behavior would be a huge step forward.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (PIO-118) ClassCastException from NullWritable to Text in ESEventsUtil

2017-09-12 Thread Chan (JIRA)

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

Chan resolved PIO-118.
--
Resolution: Fixed

> ClassCastException from NullWritable to Text in ESEventsUtil
> 
>
> Key: PIO-118
> URL: https://issues.apache.org/jira/browse/PIO-118
> Project: PredictionIO
>  Issue Type: Bug
>  Components: Core
>Reporter: Shinsuke Sugaya
>Assignee: Shinsuke Sugaya
>
> {noformat}
> Caused by: java.lang.ClassCastException: org.apache.hadoop.io.NullWritable 
> cannot be cast to org.apache.hadoop.io.Text
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESEventsUtil$.getOptStringCol$1(ESEventsUtil.scala:58)
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESEventsUtil$.resultToEvent(ESEventsUtil.scala:68)
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESPEvents$$anonfun$5.apply(ESPEvents.scala:89)
> at 
> org.apache.predictionio.data.storage.elasticsearch.ESPEvents$$anonfun$5.apply(ESPEvents.scala:87)
> at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
> at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
> at scala.collection.Iterator$$anon$11.next(Iterator.scala:409)
> at 
> org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown
>  Source)
> at 
> org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
> at 
> org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
> at 
> org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:231)
> at 
> org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:225)
> at 
> org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
> at 
> org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
> at 
> org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
> at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
> at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
> at org.apache.spark.scheduler.Task.run(Task.scala:99)
> at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:322)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ... 1 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)