You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/07/25 21:34:35 UTC

[01/10] incubator-predictionio git commit: Relax Ruby version restriction

Repository: incubator-predictionio
Updated Branches:
  refs/heads/livedoc 0cebfb7b6 -> 8fc24eb0c


Relax Ruby version restriction


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/3919d256
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/3919d256
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/3919d256

Branch: refs/heads/livedoc
Commit: 3919d2566d80510044704b2c7836465783f13565
Parents: da837da
Author: Donald Szeto <do...@prediction.io>
Authored: Fri Apr 8 14:42:14 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Fri Apr 8 14:42:14 2016 -0700

----------------------------------------------------------------------
 docs/manual/Gemfile | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/3919d256/docs/manual/Gemfile
----------------------------------------------------------------------
diff --git a/docs/manual/Gemfile b/docs/manual/Gemfile
index 2a20508..f4df6bc 100644
--- a/docs/manual/Gemfile
+++ b/docs/manual/Gemfile
@@ -1,5 +1,4 @@
 source 'https://rubygems.org'
-ruby '2.2.1'
 
 gem 'middleman', '~> 3.3.10'
 gem 'middleman-livereload', '~> 3.4.2'


[03/10] incubator-predictionio git commit: Add back JavaScript runtime

Posted by do...@apache.org.
Add back JavaScript runtime


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/28000835
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/28000835
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/28000835

Branch: refs/heads/livedoc
Commit: 2800083577e12de254bd7968f06119b0c15a34d8
Parents: acd0e2f
Author: Donald Szeto <do...@prediction.io>
Authored: Mon Apr 11 10:33:35 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Mon Apr 11 10:33:35 2016 -0700

----------------------------------------------------------------------
 docs/manual/Gemfile | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/28000835/docs/manual/Gemfile
----------------------------------------------------------------------
diff --git a/docs/manual/Gemfile b/docs/manual/Gemfile
index a0c588c..f4df6bc 100644
--- a/docs/manual/Gemfile
+++ b/docs/manual/Gemfile
@@ -9,6 +9,7 @@ gem 'middleman-s3_sync'
 gem 'middleman-search_engine_sitemap'
 
 gem 'slim'
+gem 'therubyracer'
 gem 'oj'
 gem 'redcarpet', '>= 3.2.3'
 gem 'travis'


[06/10] incubator-predictionio git commit: Use GitHub for binaries

Posted by do...@apache.org.
Use GitHub for binaries


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/4f39d72c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/4f39d72c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/4f39d72c

Branch: refs/heads/livedoc
Commit: 4f39d72cbeb443578d5dfefb97b6d2d76223afbc
Parents: 2376545
Author: Donald Szeto <do...@prediction.io>
Authored: Mon Apr 11 16:06:54 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Mon Apr 11 16:06:54 2016 -0700

----------------------------------------------------------------------
 docs/manual/source/install/install-linux.html.md.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/4f39d72c/docs/manual/source/install/install-linux.html.md.erb
----------------------------------------------------------------------
diff --git a/docs/manual/source/install/install-linux.html.md.erb b/docs/manual/source/install/install-linux.html.md.erb
index 8c69e19..527ce43 100644
--- a/docs/manual/source/install/install-linux.html.md.erb
+++ b/docs/manual/source/install/install-linux.html.md.erb
@@ -40,7 +40,7 @@ Download PredictionIO and extract it.
 $ cd
 $ pwd
 /home/abc
-$ wget https://d8k1yxp8elc6b.cloudfront.net/PredictionIO-<%= data.versions.pio %>.tar.gz
+$ wget https://github.com/PredictionIO/PredictionIO/releases/download/v0.9.6/PredictionIO-<%= data.versions.pio %>.tar.gz
 $ tar zxvf PredictionIO-<%= data.versions.pio %>.tar.gz
 ```
 


[05/10] incubator-predictionio git commit: Merge branch 'master' into livedoc

Posted by do...@apache.org.
Merge branch 'master' into livedoc


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/23765454
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/23765454
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/23765454

Branch: refs/heads/livedoc
Commit: 23765454f9f4e9c9e8540f94939882a16f145b1d
Parents: 9d49754 7cad71e
Author: Donald Szeto <do...@prediction.io>
Authored: Mon Apr 11 16:00:47 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Mon Apr 11 16:00:47 2016 -0700

----------------------------------------------------------------------
 .travis.yml                                     |  83 +++++----
 RELEASE.md                                      |  10 +-
 bin/compute-classpath.sh                        |   7 +
 bin/install.sh                                  |  49 ++----
 build.sbt                                       |  22 +--
 common/build.sbt                                |   5 +
 common/src/main/resources/application.conf      |  11 ++
 .../authentication/KeyAuthentication.scala      |  55 ++++++
 .../configuration/SSLConfiguration.scala        |  71 ++++++++
 conf/keystore.jks                               | Bin 0 -> 2238 bytes
 conf/pio-env.sh.template                        |   3 +
 conf/server.conf                                |  13 ++
 core/build.sbt                                  |  16 +-
 core/src/main/resources/application.conf        |   4 -
 .../io/prediction/controller/Deployment.scala   |   2 +-
 .../scala/io/prediction/controller/Engine.scala |   5 +-
 .../io/prediction/controller/Evaluation.scala   |  10 +-
 .../prediction/controller/FastEvalEngine.scala  |  38 ++--
 .../io/prediction/controller/LServing.scala     |   2 +-
 .../scala/io/prediction/controller/Metric.scala |  14 +-
 .../prediction/controller/MetricEvaluator.scala |  14 +-
 .../io/prediction/controller/package.scala      |   2 +-
 .../io/prediction/core/BaseAlgorithm.scala      |   2 +-
 .../scala/io/prediction/core/BaseEngine.scala   |   8 +-
 .../io/prediction/core/BaseEvaluator.scala      |   6 +-
 .../io/prediction/workflow/CoreWorkflow.scala   |   4 +-
 .../io/prediction/workflow/CreateServer.scala   |  58 ++++--
 .../io/prediction/workflow/FakeWorkflow.scala   |  26 +--
 .../io/prediction/workflow/WorkflowUtils.scala  |   6 +-
 .../io/prediction/controller/EngineTest.scala   | 106 +++++------
 data/build.sbt                                  |  20 +--
 .../io/prediction/data/api/EventServer.scala    |  95 ++++++----
 .../scala/io/prediction/data/api/Webhooks.scala |   2 +-
 .../io/prediction/data/storage/AccessKeys.scala |  12 +-
 .../io/prediction/data/storage/BiMap.scala      |   2 +-
 .../data/storage/elasticsearch/ESChannels.scala |   2 +-
 .../data/storage/hbase/PIOHBaseUtil.scala       |   2 +-
 .../data/storage/jdbc/JDBCEngineInstances.scala |   4 +-
 .../storage/jdbc/JDBCEvaluationInstances.scala  |   4 +-
 .../data/storage/jdbc/JDBCLEvents.scala         |  42 ++++-
 .../data/storage/jdbc/JDBCPEvents.scala         |  82 +++++----
 .../data/storage/jdbc/StorageClient.scala       |   7 +-
 .../io/prediction/data/store/LEventStore.scala  |   2 +-
 .../webhooks/mailchimp/MailChimpConnector.scala |  22 +--
 .../webhooks/segmentio/SegmentIOConnector.scala |  71 +++++---
 .../prediction/data/api/EventServiceSpec.scala  |  16 +-
 .../prediction/data/api/SegmentIOAuthSpec.scala | 175 +++++++++++++++++++
 .../segmentio/SegmentIOConnectorSpec.scala      |  42 ++---
 data/test-segmentio.sh                          |  91 ++++++++--
 docs/manual/data/versions.yml                   |   4 +-
 docs/manual/source/deploy/index.html.md         |   2 +
 .../evaluation/evaluationdashboard.html.md      |   4 +
 .../source/system/anotherdatastore.html.md      |  12 ++
 e2/build.sbt                                    |   2 +-
 .../prediction/e2/engine/BinaryVectorizer.scala |   3 +-
 .../scala-local-regression/Run.scala            |   3 +-
 .../src/main/scala/DataSource.scala             |   2 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../src/main/scala/BackTestingMetrics.scala     |  28 +--
 .../scala-stock/src/main/scala/Data.scala       |  13 +-
 .../src/main/scala/YahooDataSource.scala        |  42 ++---
 .../src/main/scala/Engine.scala                 |   6 +-
 .../weighted-items/src/main/scala/Engine.scala  |   6 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/Serving.scala                |   3 +-
 .../custom-query/src/main/scala/Engine.scala    |   4 +-
 .../custom-serving/src/main/scala/Engine.scala  |   6 +-
 .../src/main/scala/Preparator.scala             |   6 +-
 .../src/main/scala/DataSource.scala             |   8 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/DataSource.scala             |   2 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 .../src/main/scala/DataSource.scala             |  10 +-
 .../add-rateevent/src/main/scala/Engine.scala   |   6 +-
 .../filterbyyear/src/main/scala/Engine.scala    |   6 +-
 .../filterbyyear/src/main/scala/Serving.scala   |   3 +-
 .../multi/src/main/scala/Engine.scala           |   6 +-
 .../multi/src/main/scala/Serving.scala          |   3 +-
 .../no-set-user/src/main/scala/Engine.scala     |   6 +-
 .../no-set-user/src/main/scala/Serving.scala    |   3 +-
 .../src/main/scala/Engine.scala                 |   6 +-
 project/assembly.sbt                            |   2 +-
 project/plugins.sbt                             |   4 +-
 scalastyle-config.xml                           |   3 +
 tools/build.sbt                                 |  22 ++-
 .../scala/io/prediction/tools/RunWorkflow.scala |   2 +-
 .../prediction/tools/admin/CommandClient.scala  |   2 +-
 .../scala/io/prediction/tools/console/App.scala |   9 +-
 .../io/prediction/tools/console/Console.scala   |  19 +-
 .../io/prediction/tools/console/Template.scala  |   6 +-
 .../tools/dashboard/CorsSupport.scala           |  16 +-
 .../prediction/tools/dashboard/Dashboard.scala  |  41 +++--
 .../prediction/tools/imprt/FileToEvents.scala   |  12 +-
 .../io/prediction/tools/console/app.scala.txt   |  12 +-
 107 files changed, 1182 insertions(+), 602 deletions(-)
----------------------------------------------------------------------



[09/10] incubator-predictionio git commit: Fix fonts

Posted by do...@apache.org.
Fix fonts


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/1ed9b156
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/1ed9b156
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/1ed9b156

Branch: refs/heads/livedoc
Commit: 1ed9b1564b0353fde9b4e5fadc94578e8a596419
Parents: 6cab260
Author: Donald Szeto <do...@apache.org>
Authored: Mon Jul 25 14:25:36 2016 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Mon Jul 25 14:25:36 2016 -0700

----------------------------------------------------------------------
 docs/manual/source/stylesheets/variables/_fonts.css.scss | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/1ed9b156/docs/manual/source/stylesheets/variables/_fonts.css.scss
----------------------------------------------------------------------
diff --git a/docs/manual/source/stylesheets/variables/_fonts.css.scss b/docs/manual/source/stylesheets/variables/_fonts.css.scss
index 8ef537e..6e6c886 100644
--- a/docs/manual/source/stylesheets/variables/_fonts.css.scss
+++ b/docs/manual/source/stylesheets/variables/_fonts.css.scss
@@ -1,3 +1,3 @@
-$standard-font-family: "azo-sans-web", 'Helvetica Neue', Helvetica, Arial, sans-serif;
-$body-font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+$standard-font-family: "pt-sans", 'Helvetica Neue', Helvetica, Arial, sans-serif;
+$body-font-family: "pt-sans", 'Helvetica Neue', Helvetica, Arial, sans-serif;
 $code-font-family: Menlo, Monaco, Consolas, monospace;


[02/10] incubator-predictionio git commit: Update bug tracker link

Posted by do...@apache.org.
Update bug tracker link


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/acd0e2f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/acd0e2f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/acd0e2f0

Branch: refs/heads/livedoc
Commit: acd0e2f0234a8d082c341f00d9b1b8dba459c76c
Parents: 3919d25
Author: Donald Szeto <do...@prediction.io>
Authored: Mon Apr 11 10:27:51 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Mon Apr 11 10:27:51 2016 -0700

----------------------------------------------------------------------
 docs/manual/Gemfile                                  |  1 -
 docs/manual/Gemfile.lock                             |  6 ------
 docs/manual/source/community/contribute-code.html.md | 11 +++++------
 docs/manual/source/partials/_action_call.html.slim   |  2 +-
 docs/manual/source/partials/_footer.html.slim        |  2 +-
 5 files changed, 7 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/acd0e2f0/docs/manual/Gemfile
----------------------------------------------------------------------
diff --git a/docs/manual/Gemfile b/docs/manual/Gemfile
index f4df6bc..a0c588c 100644
--- a/docs/manual/Gemfile
+++ b/docs/manual/Gemfile
@@ -9,7 +9,6 @@ gem 'middleman-s3_sync'
 gem 'middleman-search_engine_sitemap'
 
 gem 'slim'
-gem 'therubyracer'
 gem 'oj'
 gem 'redcarpet', '>= 3.2.3'
 gem 'travis'

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/acd0e2f0/docs/manual/Gemfile.lock
----------------------------------------------------------------------
diff --git a/docs/manual/Gemfile.lock b/docs/manual/Gemfile.lock
index 5cfff32..495ec1c 100644
--- a/docs/manual/Gemfile.lock
+++ b/docs/manual/Gemfile.lock
@@ -91,7 +91,6 @@ GEM
     kramdown (1.6.0)
     launchy (2.4.3)
       addressable (~> 2.3)
-    libv8 (3.16.14.7)
     listen (2.10.0)
       celluloid (~> 0.16.0)
       rb-fsevent (>= 0.9.3)
@@ -182,7 +181,6 @@ GEM
     rb-inotify (0.9.5)
       ffi (>= 0.5.0)
     redcarpet (3.3.4)
-    ref (1.0.5)
     rouge (1.8.0)
     ruby-progressbar (1.7.5)
     sass (3.4.22)
@@ -200,9 +198,6 @@ GEM
       sprockets (~> 2.0)
       tilt (~> 1.1)
     temple (0.7.6)
-    therubyracer (0.12.2)
-      libv8 (~> 3.16.14.0)
-      ref
     thor (0.19.1)
     thread_safe (0.3.5)
     tilt (1.4.1)
@@ -247,7 +242,6 @@ DEPENDENCIES
   rainbow
   redcarpet (>= 3.2.3)
   slim
-  therubyracer
   travis
   tzinfo-data
   wdm (~> 0.1.0)

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/acd0e2f0/docs/manual/source/community/contribute-code.html.md
----------------------------------------------------------------------
diff --git a/docs/manual/source/community/contribute-code.html.md b/docs/manual/source/community/contribute-code.html.md
index a9e8767..b424646 100644
--- a/docs/manual/source/community/contribute-code.html.md
+++ b/docs/manual/source/community/contribute-code.html.md
@@ -20,8 +20,7 @@ show features that are highly sought after by the community.
 
 ## How to Report an Issue
 
-If you wish to report an issue you found,  you can do so on [GitHub Issues](https://github.com/PredictionIO/PredictionIO/issues)
-or [PredictionIO JIRA](https://predictionio.atlassian.net).
+If you wish to report an issue you found,  you can do so on [GitHub Issues](https://github.com/PredictionIO/PredictionIO/issues).
 
 ## How to Help Resolve Existing Issues
 
@@ -36,7 +35,7 @@ bug fixes will follow a different path.
 3. Verify the patch and issue a pull request to the main repository.
 4. Once merged to the main repository, critical bug fixes will be merged to the
    "master" branch and new binary will be built and distributed.
-   
+
 
 ## How to Add / Propose a New Feature
 
@@ -45,12 +44,12 @@ bug fixes will follow a different path.
    (https://groups.google.com/forum/#!forum/predictionio-dev) or email us directly at support@prediction.io.
 2. Discuss with the community and the core development team on what needs to be
    done, and lay down concrete plans on deliverables.
-3. Once solid plans are made, start creating tickets in the [issue tracker]
-   (https://predictionio.atlassian.net/secure/RapidBoard.jspa?rapidView=1).
+3. Once solid plans are made, start creating tickets on [GitHub
+   Issues](https://github.com/PredictionIO/PredictionIO/issues).
 4. Work side by side with other developers using PredictionIO Development Google
    Group as primary mode of communication. You never know if someone else has a
    better idea. ;)
-  
+
 
 ## How to Issue a Pull Request
 

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/acd0e2f0/docs/manual/source/partials/_action_call.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_action_call.html.slim b/docs/manual/source/partials/_action_call.html.slim
index 72ea27b..7554540 100644
--- a/docs/manual/source/partials/_action_call.html.slim
+++ b/docs/manual/source/partials/_action_call.html.slim
@@ -24,4 +24,4 @@
             a> href="//github.com/PredictionIO/PredictionIO" target="blank"  GitHub
             | and report issues on the
             = succeed "." do
-              a href="//predictionio.atlassian.net/secure/Dashboard.jspa" target="blank"  Bug Tracker
\ No newline at end of file
+              a href="//github.com/PredictionIO/PredictionIO/issues" target="blank"  Bug Tracker

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/acd0e2f0/docs/manual/source/partials/_footer.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_footer.html.slim b/docs/manual/source/partials/_footer.html.slim
index 3d9a528..e40f2f4 100644
--- a/docs/manual/source/partials/_footer.html.slim
+++ b/docs/manual/source/partials/_footer.html.slim
@@ -23,7 +23,7 @@ footer
           ul
             li: a href="//docs.prediction.io/community/contribute-code/" target="blank" Contribute
             li: a href="//github.com/PredictionIO/PredictionIO" target="blank" Source Code
-            li: a href="//predictionio.atlassian.net/secure/Dashboard.jspa" target="blank" Bug Tracker
+            li: a href="//github.com/PredictionIO/PredictionIO/issues" target="blank" Bug Tracker
             li: a href="//groups.google.com/forum/#!forum/predictionio-dev" target="blank" Contributors&#146; Forum
             li: a href="//prediction.io/cla" Contributor Agreement
             li: a href="//predictionio.uservoice.com/forums/219398-general/filters/top" Request Features


[08/10] incubator-predictionio git commit: Merge remote-tracking branch 'alex9311/docs-monit' into livedoc

Posted by do...@apache.org.
Merge remote-tracking branch 'alex9311/docs-monit' into livedoc


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/6cab260e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/6cab260e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/6cab260e

Branch: refs/heads/livedoc
Commit: 6cab260e1d368313056129178dca15d6eb3209a8
Parents: 0cebfb7b 28ca061
Author: Donald Szeto <do...@apache.org>
Authored: Mon Jul 25 14:25:14 2016 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Mon Jul 25 14:25:14 2016 -0700

----------------------------------------------------------------------
 docs/manual/Gemfile                             |   1 -
 docs/manual/Gemfile.lock                        |   4 +-
 docs/manual/data/nav/main.yml                   |   3 +
 docs/manual/source/deploy/monitoring.html.md    | 154 +++++++++++++++++++
 docs/manual/source/images/monit.png             | Bin 0 -> 192080 bytes
 .../source/partials/_action_call.html.slim      |   2 +-
 6 files changed, 160 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/6cab260e/docs/manual/data/nav/main.yml
----------------------------------------------------------------------


[04/10] incubator-predictionio git commit: Update footer

Posted by do...@apache.org.
Update footer


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/9d497546
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/9d497546
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/9d497546

Branch: refs/heads/livedoc
Commit: 9d497546914e5256bfaef386970f0de9ab9eb421
Parents: 2800083
Author: Donald Szeto <do...@prediction.io>
Authored: Mon Apr 11 10:47:48 2016 -0700
Committer: Donald Szeto <do...@prediction.io>
Committed: Mon Apr 11 10:47:48 2016 -0700

----------------------------------------------------------------------
 docs/manual/Gemfile.lock                      |  6 +++
 docs/manual/source/partials/_footer.html.slim | 43 ++++++++--------------
 2 files changed, 22 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/9d497546/docs/manual/Gemfile.lock
----------------------------------------------------------------------
diff --git a/docs/manual/Gemfile.lock b/docs/manual/Gemfile.lock
index 495ec1c..947840f 100644
--- a/docs/manual/Gemfile.lock
+++ b/docs/manual/Gemfile.lock
@@ -91,6 +91,7 @@ GEM
     kramdown (1.6.0)
     launchy (2.4.3)
       addressable (~> 2.3)
+    libv8 (3.16.14.13)
     listen (2.10.0)
       celluloid (~> 0.16.0)
       rb-fsevent (>= 0.9.3)
@@ -181,6 +182,7 @@ GEM
     rb-inotify (0.9.5)
       ffi (>= 0.5.0)
     redcarpet (3.3.4)
+    ref (2.0.0)
     rouge (1.8.0)
     ruby-progressbar (1.7.5)
     sass (3.4.22)
@@ -198,6 +200,9 @@ GEM
       sprockets (~> 2.0)
       tilt (~> 1.1)
     temple (0.7.6)
+    therubyracer (0.12.2)
+      libv8 (~> 3.16.14.0)
+      ref
     thor (0.19.1)
     thread_safe (0.3.5)
     tilt (1.4.1)
@@ -242,6 +247,7 @@ DEPENDENCIES
   rainbow
   redcarpet (>= 3.2.3)
   slim
+  therubyracer
   travis
   tzinfo-data
   wdm (~> 0.1.0)

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/9d497546/docs/manual/source/partials/_footer.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_footer.html.slim b/docs/manual/source/partials/_footer.html.slim
index e40f2f4..7d6f7f2 100644
--- a/docs/manual/source/partials/_footer.html.slim
+++ b/docs/manual/source/partials/_footer.html.slim
@@ -4,46 +4,35 @@ footer
   .container
     .seperator
     .row
-      .col-md-4.col-md-push-8.col-xs-12
-        = partial 'subscribe_form'
-
-      .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
+      .col-md-4.col-xs-6.footer-link-column
         .footer-link-column-row
           h4 Community
           ul
-            li: a href="//docs.prediction.io/install/" target="blank" Download
-            li: a href="//docs.prediction.io/" target="blank" Docs
-            li: a href="//github.com/PredictionIO/PredictionIO" target="blank" GitHub
-            li: a href="//groups.google.com/forum/#!forum/predictionio-user" target="blank" Support Forum
-            li: a href="//stackoverflow.com/questions/tagged/predictionio" target="blank" Stackoverflow
+            li: a href="//docs.prediction.io/install/" target="_blank" Download
+            li: a href="//docs.prediction.io/" target="_blank" Docs
+            li: a href="//github.com/PredictionIO/PredictionIO" target="_blank" GitHub
+            li: a href="//groups.google.com/forum/#!forum/predictionio-user" target="_blank" Support Forum
+            li: a href="//stackoverflow.com/questions/tagged/predictionio" target="_blank" Stackoverflow
             li: a href="mailto:&#x73;&#x75;&#x70;&#x70;&#x6F;&#x72;&#x74;&#x40;&#x70;&#x72;&#x65;&#x64;&#x69;&#x63;&#x74;&#x69;&#x6F;&#x6E;&#x2E;&#x69;&#x6F;" target="blank" Contact Us
-      .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
+      .col-md-4.col-xs-6.footer-link-column
         .footer-link-column-row
           h4 Contribute
           ul
-            li: a href="//docs.prediction.io/community/contribute-code/" target="blank" Contribute
-            li: a href="//github.com/PredictionIO/PredictionIO" target="blank" Source Code
-            li: a href="//github.com/PredictionIO/PredictionIO/issues" target="blank" Bug Tracker
-            li: a href="//groups.google.com/forum/#!forum/predictionio-dev" target="blank" Contributors&#146; Forum
-            li: a href="//prediction.io/cla" Contributor Agreement
-            li: a href="//predictionio.uservoice.com/forums/219398-general/filters/top" Request Features
-      .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
+            li: a href="//docs.prediction.io/community/contribute-code/" target="_blank" Contribute
+            li: a href="//github.com/PredictionIO/PredictionIO" target="_blank" Source Code
+            li: a href="//github.com/PredictionIO/PredictionIO/issues" target="_blank" Bug Tracker
+            li: a href="//groups.google.com/forum/#!forum/predictionio-dev" target="_blank" Contributors&#146; Forum
+            li: a href="//prediction.io/cla" target="_blank" Contributor Agreement
+            li: a href="//predictionio.uservoice.com/forums/219398-general/filters/top" target="_blank" Request Features
+      .col-md-4.col-xs-6.footer-link-column
         .footer-link-column-row
           h4 Enterprise
           ul
-            li: a href="//docs.prediction.io/support/" target="blank" Support
-            li: a href="//prediction.io/enterprise" Enterprise
-            li: a href="//prediction.io/products/predictionio-enterprise" Services
+            li: a href="//docs.prediction.io/support/" target="_blank" Support
         .footer-link-column-row
           h4 Connect
           ul
-            li: a href="//blog.prediction.io/" target="blank" Blog
-            li: a href="//predictionio.theresumator.com/" target="blank" Careers
-      .col-md-2.col-md-pull-4.col-xs-6.footer-link-column
-        .footer-link-column-row
-          h4 Partnership
-          ul
-            li: a href="//prediction.io/partners/program" Partner Program
+            li: a href="//blog.prediction.io/" target="_blank" Blog
 
   #footer-bottom
     .container


[10/10] incubator-predictionio git commit: Replace reference to Google Groups with Apache mailing lists

Posted by do...@apache.org.
Replace reference to Google Groups with Apache mailing lists


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/8fc24eb0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/8fc24eb0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/8fc24eb0

Branch: refs/heads/livedoc
Commit: 8fc24eb0cab34b6a67a837610b2a0c171ec0252a
Parents: 1ed9b15
Author: Donald Szeto <do...@apache.org>
Authored: Mon Jul 25 14:34:13 2016 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Mon Jul 25 14:34:13 2016 -0700

----------------------------------------------------------------------
 docs/manual/data/nav/main.yml                 |  5 +----
 docs/manual/source/partials/_header.html.slim |  4 ----
 docs/manual/source/support/index.html.md.erb  | 19 +++++++++++--------
 3 files changed, 12 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/8fc24eb0/docs/manual/data/nav/main.yml
----------------------------------------------------------------------
diff --git a/docs/manual/data/nav/main.yml b/docs/manual/data/nav/main.yml
index 65b3445..200bbe8 100644
--- a/docs/manual/data/nav/main.yml
+++ b/docs/manual/data/nav/main.yml
@@ -209,11 +209,8 @@ root:
         body: 'FAQs'
         url: '/resources/faq/'
       -
-        body: 'Community Support'
+        body: 'Support'
         url: '/support/'
-      -
-        body: 'Enterprise Support'
-        url: '/support/#enterprise-support'
   -
     body: 'Resources'
     url: '#'

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/8fc24eb0/docs/manual/source/partials/_header.html.slim
----------------------------------------------------------------------
diff --git a/docs/manual/source/partials/_header.html.slim b/docs/manual/source/partials/_header.html.slim
index ed78bed..b43269e 100644
--- a/docs/manual/source/partials/_header.html.slim
+++ b/docs/manual/source/partials/_header.html.slim
@@ -8,10 +8,6 @@ header
           = link_to 'http://predictionio.incubator.apache.org/' do
             = image_tag 'logos/logo.png', alt: 'PredictionIO', id: 'logo'
         #menu-wrapper
-          #header-nav-options-wrapper
-            ul
-              li>: a href="/" Install & Doc
-              li>: a href="/support" Support
           #pill-wrapper
             a.pill.left> href="//templates.prediction.io/" TEMPLATES
             a.pill.right href="//github.com/apache/incubator-predictionio/" OPEN SOURCE

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/8fc24eb0/docs/manual/source/support/index.html.md.erb
----------------------------------------------------------------------
diff --git a/docs/manual/source/support/index.html.md.erb b/docs/manual/source/support/index.html.md.erb
index 6ef45a8..5507bd4 100644
--- a/docs/manual/source/support/index.html.md.erb
+++ b/docs/manual/source/support/index.html.md.erb
@@ -4,18 +4,21 @@ title: Getting Help
 
 ## Community Support
 
-PredictionIO has a welcoming and active community.
-We are here to support you and make sure that you can use PredictionIO successfully.
+Apahce PredictionIO (incubating) has a welcoming and active community. We are
+here to support you and make sure that you can use Apahce PredictionIO
+(incubating) successfully.
 
-Here are some resources you can use:
+If you are a user, please subscribe to our user mailing list.
 
-* [User Support Forum](https://groups.google.com/forum/#!forum/predictionio-user)
-* [Product Feature Request](https://predictionio.uservoice.com/forums/219398-general/filters/top)
+* [Subscribe](mailto:user-subscribe@predictionio.incubator.apache.org)
+* [Unsubscribe](mailto:user-unsubscribe@predictionio.incubator.apache.org)
 
-If you are a contributor, we have a dedicated forum for you:
+If you are a contributor, please subscribe to our development mailing list.
 
-* [Contributor Support Forum](https://groups.google.com/forum/#!forum/predictionio-dev)
+* [Subscribe](mailto:dev-subscribe@predictionio.incubator.apache.org)
+* [Unsubscribe](mailto:dev-unsubscribe@predictionio.incubator.apache.org)
 
 ## Enterprise Support
 
-For enterprise users who require professional support, you may contact <a href="mailto:&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x63;&#x74;&#x40;&#x61;&#x63;&#x74;&#x69;&#x6F;&#x6E;&#x6D;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;">&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x63;&#x74;&#x40;&#x61;&#x63;&#x74;&#x69;&#x6F;&#x6E;&#x6D;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;</a>
+For enterprise users who require professional support, you may contact <a
+href="mailto:&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x63;&#x74;&#x40;&#x61;&#x63;&#x74;&#x69;&#x6F;&#x6E;&#x6D;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;">&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x63;&#x74;&#x40;&#x61;&#x63;&#x74;&#x69;&#x6F;&#x6E;&#x6D;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;</a>


[07/10] incubator-predictionio git commit: monit documentation

Posted by do...@apache.org.
monit documentation


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/28ca0618
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/28ca0618
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/28ca0618

Branch: refs/heads/livedoc
Commit: 28ca0618d8a6ba94ca4d5b2b5227bb7c0735a27c
Parents: 4f39d72
Author: alex9311 <al...@gmail.com>
Authored: Fri Apr 22 10:48:42 2016 +0200
Committer: alex9311 <al...@gmail.com>
Committed: Fri Apr 22 10:48:42 2016 +0200

----------------------------------------------------------------------
 docs/manual/data/nav/main.yml                |   3 +
 docs/manual/source/deploy/monitoring.html.md | 154 ++++++++++++++++++++++
 docs/manual/source/images/monit.png          | Bin 0 -> 192080 bytes
 3 files changed, 157 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/28ca0618/docs/manual/data/nav/main.yml
----------------------------------------------------------------------
diff --git a/docs/manual/data/nav/main.yml b/docs/manual/data/nav/main.yml
index c9f4485..66fa14e 100644
--- a/docs/manual/data/nav/main.yml
+++ b/docs/manual/data/nav/main.yml
@@ -62,6 +62,9 @@ root:
         body: 'Engine Command-line Interface'
         url: '/cli/#engine-commands'
       -
+        body: 'Monitoring Engine'
+        url: '/deploy/monitoring/'
+      -
         body: 'Setting Engine Parameters'
         url: '/deploy/engineparams/'
       -

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/28ca0618/docs/manual/source/deploy/monitoring.html.md
----------------------------------------------------------------------
diff --git a/docs/manual/source/deploy/monitoring.html.md b/docs/manual/source/deploy/monitoring.html.md
new file mode 100644
index 0000000..c566bce
--- /dev/null
+++ b/docs/manual/source/deploy/monitoring.html.md
@@ -0,0 +1,154 @@
+---
+title: Monitoring an Engine
+---
+
+If you're using PredictionIO in a production setting, you'll want some way to make sure it is always up. [Monit](https://mmonit.com/monit/) is a tool which will monitor important processes and programs. This guide will show how to set up monit on your PredictionIO server to keep an engine always up and running.
+
+You can install monit on ubuntu with
+
+```bash
+sudo apt-get install monit
+```
+
+##Configure Basics
+Now we can configure monit by the configuration file  `/etc/monit/monitrc` with your favorite editor. You will notice that this file contains quite a bit already, most of which is commented intructions/examples.
+
+First, choose the interval on which you want monit to check the status of your system. Use the `set daemon` command for this, it should already exist in the configuration file.
+
+```
+set daemon 60 #checks at 1-minute intervals
+```
+
+The `check system` block should also already be present, under the services block. 
+
+```
+  check system 127.0.0.1 
+    if memory usage > 75% then alert
+    if swap usage > 25% then alert
+    if loadavg (1min) > 4 then alert
+    if loadavg (5min) > 2 then alert
+    if cpu usage (user) > 70% then alert
+    if cpu usage (system) > 30% then alert
+    if cpu usage (wait) > 20% then alert
+```
+
+You might also want to configure the built in web server.
+
+```
+set httpd port 2812
+     allow admin:yourpassword      # require user 'admin' with password 'yourpassword'
+```
+More examples on configuring the web server are included in the default config file.
+
+Configuration blocks for common services like apache, nginx, or PostgreSQL can be found [here](http://www.stuartellis.eu/articles/monit/) 
+
+##Configure for PredictionIO
+###Event Server 
+Now the interesting stuff, lets add monitoring for the event server.
+
+```     
+check process eventserver
+	matching "Console eventserver"
+        start program = "/etc/monit/modebug /home/ubuntu/event_scripts.sh start"
+        stop program = "/etc/monit/modebug /home/ubuntu/event_scripts.sh stop"
+        if cpu usage > 95% for 10 cycles then restart
+```
+This block references a script, event_scripts.sh. This script tell monit how to restart the engine and event server if they go down. 
+
+The script might differ slightly depending on your environment but it should look something like what is shown below. Assume SimilarProduct is the your pio app directory.
+
+```bash
+#!/bin/bash
+ case $1 in
+    start)
+       cd /home/ubuntu/SimilarProduct/
+       nohup /opt/PredictionIO/bin/pio eventserver > /home/ubuntu/events.log &
+       ;;
+     stop) 
+       event_pid=`pgrep -f "Console eventserver"`
+       kill "$event_pid"
+       ;;
+     *) 
+ esac
+ exit 0
+``` 
+Note that this is dumping output to an events log at `/home/ubuntu/events.log`. Also, be sure that this file is executable with `sudo chmod +x event_scripts.sh`
+
+###Engine
+The first step here is similar to checking the engine process. 
+
+```
+check process pioengine
+        matching "Console deploy"
+        start program = "/etc/monit/modebug /home/ubuntu/engine_scripts.sh start"
+        stop program = "/etc/monit/modebug /home/ubuntu/engine_scripts.sh stop"
+        if cpu usage > 95% for 10 cycles then restart
+```
+Be sure to adjust your deploy command to your environment (driver-memry, postgres jar path)
+
+```bash
+#!/bin/bash
+ case $1 in
+    start)
+       cd /home/ubuntu/SimilarProduct/
+       nohup /opt/PredictionIO/bin/pio deploy -- --driver-class-path /home/ubuntu/postgresql-9.4.1208.jre6.jar --driver-memory 16G > /home/ubuntu/deploy.log &
+       ;;
+     stop) 
+       deploy_pid=`pgrep -f "Console deploy"`
+       kill "$deploy_pid"
+       ;;
+     *) 
+ esac
+ exit 0
+```
+
+There can be  cases when the process is running but the engine is down however. If the spray REST API used by PredictionIO crashes, the engine process continues but the engine to fail when queried. 
+
+This sort of crash can be taken care of by using monits `check program` capability. 
+
+```
+check program pioengine-http with path "/etc/monit/bin/check_engine.sh"
+        start program = "/etc/monit/modebug /home/ubuntu/engine_scripts.sh start"
+        stop program = "/etc/monit/modebug /home/ubuntu/engine_scripts.sh stop"
+	if status != 1
+	then restart
+```
+This block executes the script at /etc/monit/bin/check_engine.sh and reads the exit status. Depending on the exit status, the block can run a restart script. The restart script can be the same as what is used in the process monitor, but we need a check_engine script. 
+
+```bash
+#!/bin/bash
+# source: /etc/monit/bin/check_engine.sh
+url="http://127.0.0.1:8000/queries.json"
+check_string="itemScores"
+response=$(curl -H "Content-Type: application/json" -d '{ "user": "1", "num": 0}' $url)
+
+if [[ "$response" =~ "$check_string" ]]
+then
+  exit 1
+else
+  exit 0
+fi
+```
+This script does a curl request and checks the response. In this example, a user known to  exist is used and then check  make sure the json returned has "itemScores". This can vary between use cases but the idea should be similar. 
+
+Again, make sure this file is executable.
+
+##Start it All Up
+Now we can get monit running with
+
+```bash
+sudo service monit restart
+```
+
+Navigate to http://\<your ip\>:2812/ to check out your status page
+
+![monit screen](/images/monit.png)
+
+##Testing
+To test, try killing your deployed engine or event server and see if monit brings it back up. You can even use the scripts we described above to do this
+
+```
+sudo ./engine_scripts.sh stop
+```
+
+Remember that monit checks only as often as you tell it to, so it may need a few minutes.

http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/28ca0618/docs/manual/source/images/monit.png
----------------------------------------------------------------------
diff --git a/docs/manual/source/images/monit.png b/docs/manual/source/images/monit.png
new file mode 100644
index 0000000..f8b35ac
Binary files /dev/null and b/docs/manual/source/images/monit.png differ