Based on apache/incubator-predictionio#2f196dab3d4f603a7f720bb605d9f630599f0b5f
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/commit/f6e7c2b4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/tree/f6e7c2b4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/diff/f6e7c2b4 Branch: refs/heads/asf-site Commit: f6e7c2b480c9cde2164f65e9e90644adf990b937 Parents: c5d5281 Author: Donald Szeto <[email protected]> Authored: Mon Oct 3 17:22:50 2016 +0000 Committer: Donald Szeto <[email protected]> Committed: Mon Oct 3 17:22:50 2016 +0000 ---------------------------------------------------------------------- 404/index.html.gz | Bin 3534 -> 3534 bytes algorithm/custom/index.html.gz | Bin 3477 -> 3477 bytes algorithm/index.html.gz | Bin 3633 -> 3633 bytes algorithm/multiple/index.html.gz | Bin 3620 -> 3620 bytes algorithm/switch/index.html.gz | Bin 3610 -> 3610 bytes appintegration/index.html.gz | Bin 4071 -> 4071 bytes cli/index.html.gz | Bin 4168 -> 4168 bytes community/contribute-code/index.html.gz | Bin 6318 -> 6318 bytes .../contribute-documentation/index.html.gz | Bin 6483 -> 6483 bytes community/contribute-sdk/index.html.gz | Bin 5694 -> 5694 bytes community/contribute-webhook/index.html.gz | Bin 6817 -> 6817 bytes community/index.html.gz | Bin 3920 -> 3920 bytes community/projects/index.html.gz | Bin 4558 -> 4558 bytes community/submit-template/index.html.gz | Bin 4732 -> 4732 bytes customize/dase/index.html.gz | Bin 7514 -> 7514 bytes customize/index.html.gz | Bin 4820 -> 4820 bytes customize/troubleshooting/index.html.gz | Bin 6565 -> 6565 bytes datacollection/analytics-ipynb/index.html.gz | Bin 5698 -> 5698 bytes datacollection/analytics-tableau/index.html.gz | Bin 6248 -> 6248 bytes datacollection/analytics-zeppelin/index.html.gz | Bin 5152 -> 5152 bytes datacollection/analytics/index.html.gz | Bin 3638 -> 3638 bytes datacollection/batchimport/index.html | 4 +- datacollection/batchimport/index.html.gz | Bin 5513 -> 5515 bytes datacollection/channel/index.html | 6 +- datacollection/channel/index.html.gz | Bin 6431 -> 6428 bytes datacollection/eventapi/index.html | 20 +- datacollection/eventapi/index.html.gz | Bin 9469 -> 9468 bytes datacollection/eventmodel/index.html.gz | Bin 8807 -> 8807 bytes datacollection/index.html.gz | Bin 4239 -> 4239 bytes datacollection/webhooks/index.html.gz | Bin 3646 -> 3646 bytes demo/community/index.html.gz | Bin 4153 -> 4153 bytes demo/index.html.gz | Bin 3585 -> 3585 bytes demo/supervisedlearning/index.html.gz | Bin 5809 -> 5809 bytes demo/tapster/index.html.gz | Bin 9889 -> 9889 bytes demo/textclassification/index.html.gz | Bin 18773 -> 18773 bytes deploy/engineparams/index.html.gz | Bin 3471 -> 3471 bytes deploy/enginevariants/index.html.gz | Bin 3475 -> 3475 bytes deploy/index.html.gz | Bin 5435 -> 5435 bytes deploy/monitoring/index.html.gz | Bin 6175 -> 6175 bytes evaluation/evaluationdashboard/index.html.gz | Bin 4092 -> 4092 bytes evaluation/history/index.html.gz | Bin 3397 -> 3397 bytes evaluation/index.html.gz | Bin 4169 -> 4169 bytes evaluation/metricbuild/index.html.gz | Bin 6165 -> 6165 bytes evaluation/metricchoose/index.html.gz | Bin 5014 -> 5014 bytes evaluation/paramtuning/index.html.gz | Bin 9566 -> 9566 bytes gallery/template-gallery/index.html.gz | Bin 9286 -> 9286 bytes github/index.html.gz | Bin 3107 -> 3107 bytes index.html.gz | Bin 4614 -> 4614 bytes install/config-datastore/index.html.gz | Bin 3916 -> 3916 bytes install/index.html.gz | Bin 4598 -> 4598 bytes install/install-linux/index.html | 32 +-- install/install-linux/index.html.gz | Bin 6013 -> 6013 bytes install/install-sourcecode/index.html | 38 +-- install/install-sourcecode/index.html.gz | Bin 6230 -> 6230 bytes install/install-vagrant/index.html | 2 +- install/install-vagrant/index.html.gz | Bin 5452 -> 5452 bytes install/launch-aws/index.html.gz | Bin 4570 -> 4570 bytes install/sdk/index.html.gz | Bin 3391 -> 3391 bytes javascripts/application-5a24945b.js.gz | Bin 36677 -> 36677 bytes javascripts/tryit-b5b64753.js.gz | Bin 274 -> 274 bytes .../dimensionalityreduction/index.html.gz | Bin 16152 -> 16152 bytes machinelearning/modelingworkflow/index.html.gz | Bin 4353 -> 4353 bytes production/deploy-cloudformation/index.html.gz | Bin 3451 -> 3451 bytes resources/faq/index.html.gz | Bin 7938 -> 7938 bytes resources/glossary/index.html.gz | Bin 4176 -> 4176 bytes resources/intellij/index.html | 2 +- resources/intellij/index.html.gz | Bin 7114 -> 7114 bytes resources/upgrade/index.html.gz | Bin 8930 -> 8930 bytes samples/index.html.gz | Bin 4800 -> 4800 bytes samples/languages/index.html.gz | Bin 5132 -> 5132 bytes samples/level-1/index.html.gz | Bin 3460 -> 3460 bytes samples/level-2-1/index.html.gz | Bin 3469 -> 3469 bytes samples/level-2-2/index.html.gz | Bin 3468 -> 3468 bytes samples/level-2/index.html.gz | Bin 3461 -> 3461 bytes samples/level-3-1/index.html.gz | Bin 3469 -> 3469 bytes samples/level-3-2/index.html.gz | Bin 3469 -> 3469 bytes samples/level-3/index.html.gz | Bin 3462 -> 3462 bytes samples/level-4-1/index.html.gz | Bin 3469 -> 3469 bytes samples/level-4-2/index.html.gz | Bin 3468 -> 3468 bytes samples/level-4-3/index.html.gz | Bin 3469 -> 3469 bytes samples/level-4/index.html.gz | Bin 3462 -> 3462 bytes samples/narrow/index.html.gz | Bin 3411 -> 3411 bytes samples/sizing/index.html.gz | Bin 3746 -> 3746 bytes samples/tabs/index.html | 18 +- samples/tabs/index.html.gz | Bin 4630 -> 4638 bytes sdk/community/index.html.gz | Bin 4206 -> 4206 bytes sdk/index.html.gz | Bin 3642 -> 3642 bytes sdk/java/index.html | 2 +- sdk/java/index.html.gz | Bin 3867 -> 3867 bytes sdk/php/index.html | 2 +- sdk/php/index.html.gz | Bin 3845 -> 3845 bytes sdk/python/index.html | 2 +- sdk/python/index.html.gz | Bin 3841 -> 3841 bytes sdk/ruby/index.html | 2 +- sdk/ruby/index.html.gz | Bin 3842 -> 3841 bytes search/index.html.gz | Bin 3407 -> 3407 bytes sitemap.xml | 242 +++++++++---------- start/customize/index.html.gz | Bin 3926 -> 3926 bytes start/deploy/index.html.gz | Bin 3817 -> 3817 bytes start/download/index.html.gz | Bin 3717 -> 3717 bytes start/index.html.gz | Bin 4560 -> 4560 bytes stylesheets/application-a2a2f408.css.gz | Bin 24835 -> 24835 bytes support/index.html.gz | Bin 4039 -> 4039 bytes system/anotherdatastore/index.html.gz | Bin 7255 -> 7255 bytes system/deploy-cloudformation/index.html | 2 +- system/deploy-cloudformation/index.html.gz | Bin 8194 -> 8194 bytes system/index.html.gz | Bin 4119 -> 4119 bytes .../classification/add-algorithm/index.html.gz | Bin 6018 -> 6018 bytes templates/classification/dase/index.html.gz | Bin 7651 -> 7651 bytes templates/classification/how-to/index.html.gz | Bin 3507 -> 3507 bytes templates/classification/quickstart/index.html | 32 +-- .../classification/quickstart/index.html.gz | Bin 12366 -> 12365 bytes .../reading-custom-properties/index.html.gz | Bin 4803 -> 4803 bytes .../classification/transform-data/index.html.gz | Bin 3401 -> 3401 bytes .../complementarypurchase/dase/index.html.gz | Bin 9648 -> 9648 bytes .../complementarypurchase/quickstart/index.html | 22 +- .../quickstart/index.html.gz | Bin 11546 -> 11547 bytes .../ecommercerecommendation/dase/index.html.gz | Bin 13620 -> 13620 bytes .../how-to/index.html.gz | Bin 3501 -> 3501 bytes .../quickstart/index.html | 62 ++--- .../quickstart/index.html.gz | Bin 14738 -> 14739 bytes .../train-with-rate-event/index.html.gz | Bin 6341 -> 6341 bytes .../dase/index.html.gz | Bin 10781 -> 10781 bytes .../quickstart/index.html | 62 ++--- .../quickstart/index.html.gz | Bin 14717 -> 14715 bytes templates/leadscoring/dase/index.html.gz | Bin 10514 -> 10514 bytes templates/leadscoring/quickstart/index.html | 32 +-- templates/leadscoring/quickstart/index.html.gz | Bin 11927 -> 11934 bytes templates/productranking/dase/index.html.gz | Bin 11736 -> 11736 bytes templates/productranking/quickstart/index.html | 42 ++-- .../productranking/quickstart/index.html.gz | Bin 11905 -> 11902 bytes .../batch-evaluator/index.html.gz | Bin 6837 -> 6837 bytes .../blacklist-items/index.html.gz | Bin 6089 -> 6089 bytes .../customize-data-prep/index.html.gz | Bin 6113 -> 6113 bytes .../customize-serving/index.html.gz | Bin 6422 -> 6422 bytes templates/recommendation/dase/index.html.gz | Bin 9756 -> 9756 bytes .../recommendation/evaluation/index.html.gz | Bin 9564 -> 9564 bytes templates/recommendation/how-to/index.html.gz | Bin 3596 -> 3596 bytes templates/recommendation/quickstart/index.html | 32 +-- .../recommendation/quickstart/index.html.gz | Bin 11576 -> 11580 bytes .../reading-custom-events/index.html.gz | Bin 4836 -> 4836 bytes .../index.html.gz | Bin 5630 -> 5630 bytes templates/similarproduct/dase/index.html.gz | Bin 12058 -> 12058 bytes templates/similarproduct/how-to/index.html.gz | Bin 3499 -> 3499 bytes .../multi-events-multi-algos/index.html.gz | Bin 10736 -> 10736 bytes templates/similarproduct/quickstart/index.html | 42 ++-- .../similarproduct/quickstart/index.html.gz | Bin 13243 -> 13240 bytes templates/vanilla/dase/index.html.gz | Bin 5709 -> 5709 bytes templates/vanilla/quickstart/index.html | 12 +- templates/vanilla/quickstart/index.html.gz | Bin 8344 -> 8348 bytes tryit/index.html.gz | Bin 2693 -> 2693 bytes 151 files changed, 356 insertions(+), 356 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/404/index.html.gz ---------------------------------------------------------------------- diff --git a/404/index.html.gz b/404/index.html.gz index 2b768ca..a0122d0 100644 Binary files a/404/index.html.gz and b/404/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/algorithm/custom/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/custom/index.html.gz b/algorithm/custom/index.html.gz index b651bbc..84279a5 100644 Binary files a/algorithm/custom/index.html.gz and b/algorithm/custom/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/algorithm/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/index.html.gz b/algorithm/index.html.gz index dff4f4b..e49ff11 100644 Binary files a/algorithm/index.html.gz and b/algorithm/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/algorithm/multiple/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/multiple/index.html.gz b/algorithm/multiple/index.html.gz index 88b4e81..bf43915 100644 Binary files a/algorithm/multiple/index.html.gz and b/algorithm/multiple/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/algorithm/switch/index.html.gz ---------------------------------------------------------------------- diff --git a/algorithm/switch/index.html.gz b/algorithm/switch/index.html.gz index 31a5775..860eb66 100644 Binary files a/algorithm/switch/index.html.gz and b/algorithm/switch/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/appintegration/index.html.gz ---------------------------------------------------------------------- diff --git a/appintegration/index.html.gz b/appintegration/index.html.gz index 2731958..b26197c 100644 Binary files a/appintegration/index.html.gz and b/appintegration/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/cli/index.html.gz ---------------------------------------------------------------------- diff --git a/cli/index.html.gz b/cli/index.html.gz index da89374..443571c 100644 Binary files a/cli/index.html.gz and b/cli/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/contribute-code/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-code/index.html.gz b/community/contribute-code/index.html.gz index 51e5d84..860d476 100644 Binary files a/community/contribute-code/index.html.gz and b/community/contribute-code/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/contribute-documentation/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-documentation/index.html.gz b/community/contribute-documentation/index.html.gz index da0c864..49afc39 100644 Binary files a/community/contribute-documentation/index.html.gz and b/community/contribute-documentation/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/contribute-sdk/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-sdk/index.html.gz b/community/contribute-sdk/index.html.gz index 3bedaea..a1c7cfc 100644 Binary files a/community/contribute-sdk/index.html.gz and b/community/contribute-sdk/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/contribute-webhook/index.html.gz ---------------------------------------------------------------------- diff --git a/community/contribute-webhook/index.html.gz b/community/contribute-webhook/index.html.gz index d5d8cd0..47f0497 100644 Binary files a/community/contribute-webhook/index.html.gz and b/community/contribute-webhook/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/index.html.gz ---------------------------------------------------------------------- diff --git a/community/index.html.gz b/community/index.html.gz index 7e01aa8..f0956d5 100644 Binary files a/community/index.html.gz and b/community/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/projects/index.html.gz ---------------------------------------------------------------------- diff --git a/community/projects/index.html.gz b/community/projects/index.html.gz index 71c537c..58eeecd 100644 Binary files a/community/projects/index.html.gz and b/community/projects/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/community/submit-template/index.html.gz ---------------------------------------------------------------------- diff --git a/community/submit-template/index.html.gz b/community/submit-template/index.html.gz index 7659c01..89cd484 100644 Binary files a/community/submit-template/index.html.gz and b/community/submit-template/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/customize/dase/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/dase/index.html.gz b/customize/dase/index.html.gz index 635a8c6..b8b335b 100644 Binary files a/customize/dase/index.html.gz and b/customize/dase/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/customize/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/index.html.gz b/customize/index.html.gz index f2717ff..9c2ad7f 100644 Binary files a/customize/index.html.gz and b/customize/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/customize/troubleshooting/index.html.gz ---------------------------------------------------------------------- diff --git a/customize/troubleshooting/index.html.gz b/customize/troubleshooting/index.html.gz index dc7f476..91a5c50 100644 Binary files a/customize/troubleshooting/index.html.gz and b/customize/troubleshooting/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/analytics-ipynb/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-ipynb/index.html.gz b/datacollection/analytics-ipynb/index.html.gz index 712b7d6..76bb13c 100644 Binary files a/datacollection/analytics-ipynb/index.html.gz and b/datacollection/analytics-ipynb/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/analytics-tableau/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-tableau/index.html.gz b/datacollection/analytics-tableau/index.html.gz index 2cc8273..cf87bf5 100644 Binary files a/datacollection/analytics-tableau/index.html.gz and b/datacollection/analytics-tableau/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/analytics-zeppelin/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics-zeppelin/index.html.gz b/datacollection/analytics-zeppelin/index.html.gz index 14c8fdb..9b1eec7 100644 Binary files a/datacollection/analytics-zeppelin/index.html.gz and b/datacollection/analytics-zeppelin/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/analytics/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/analytics/index.html.gz b/datacollection/analytics/index.html.gz index 8581375..1408bfe 100644 Binary files a/datacollection/analytics/index.html.gz and b/datacollection/analytics/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/batchimport/index.html ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html b/datacollection/batchimport/index.html index 0f7a7b0..e8802a1 100644 --- a/datacollection/batchimport/index.html +++ b/datacollection/batchimport/index.html @@ -7,7 +7,7 @@ </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"rate"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"2"</span><span class="p">,</span><span class="s2">"properties"</span><span class="p">:{</span><span class="s2">"rating"</span><span class="p">:</span><span class="mf">1.0</span><span class="p">},</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.729Z"</span><span class="p">}</span><span class="w"> </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"buy"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"7"</span><span class="p">,</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.735Z"</span><span class="p">}</span><span class="w"> </span><span class="p">{</span><span class="s2">"event"</span><span class="p">:</span><span class="s2">"buy"</span><span class="p">,</span><span class="s2">"entityType"</span><span class="p">:</span><span class="s2">"user"</span><span class="p">,</span><span class="s2">"entityId"</span><span class="p">:</span><span class="s2">"3"</span><span class="p">,</span><span class="s2">"targetEntityType"</span><span class="p">:</span><span class="s2">"item"</span><span class="p">,</span><span class="s2">"targetEntityId"</span><span class="p">:</span><span class="s2">"8"</span><span class="p">,</span><span class="s2">"eventTime"</span><span class="p">:</span><span class="s2">"2014-11-21T01:04:14.741Z"</span><span class="p">}</span><span class="w"> -</span></pre></td></tr></tbody></table> </div> <div class="alert-message warning"><p>Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.</p></div><h2 id='use-sdk-to-prepare-batch-input-file' class='header-anchors'>Use SDK to Prepare Batch Input File</h2><p>Some of the Apache PredictionIO (incubating) SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. The FileExporter creates event in the same way as EventClient except that the events are written to a JSON file instead of being sent to EventSever. The written JSON file can then be used by batch import.</p><div class="tabs"> <ul class="control"> <li data-lang="php"><a href="#tab-1b129b7a-1748-4ae8-a03a-e2130526e7b8">PHP SDK</a></li> <li data-lang="python"><a href="#tab-0cd2068e-7c39-45eb-86ac-1793e0551553">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-8aeb7b26-4efc-47ac-a68e-7 75f10d316e5">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-9b5b1096-c2ce-4574-9a17-5762d79b80e4">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-1b129b7a-1748-4ae8-a03a-e2130526e7b8"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-0cd2068e-7c39-45eb-86ac-1793e0551553"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</span></pre></td></tr></tbody></table> </div> <div class="alert-message warning"><p>Please make sure your import file does not contain any empty lines. Empty lines will be treated as a null object and will return an error during import.</p></div><h2 id='use-sdk-to-prepare-batch-input-file' class='header-anchors'>Use SDK to Prepare Batch Input File</h2><p>Some of the Apache PredictionIO (incubating) SDKs also provides FileExporter client. You may use them to prepare the JSON file as described above. The FileExporter creates event in the same way as EventClient except that the events are written to a JSON file instead of being sent to EventSever. The written JSON file can then be used by batch import.</p><div class="tabs"> <ul class="control"> <li data-lang="php"><a href="#tab-3963d700-d7a0-47fb-8eb8-af982c7b2ea6">PHP SDK</a></li> <li data-lang="python"><a href="#tab-9f886eeb-457f-4f39-b6f2-218748b1d8ae">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-1c3043cc-169b-4321-b69e-c d5e6a63f00e">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-cef2285f-e3a4-46ba-89eb-08ef5bdf61f6">Java SDK</a></li> </ul> <div data-tab="PHP SDK" data-lang="php" id="tab-3963d700-d7a0-47fb-8eb8-af982c7b2ea6"> (coming soon) </div> <div data-tab="Python SDK" data-lang="python" id="tab-9f886eeb-457f-4f39-b6f2-218748b1d8ae"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -58,7 +58,7 @@ <span class="c"># close the FileExporter when finish writing all events</span> <span class="n">exporter</span><span class="o">.</span><span class="n">close</span><span class="p">()</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-8aeb7b26-4efc-47ac-a68e-775f10d316e5"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-9b5b1096-c2ce-4574-9a17-5762d79b80e4"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1c3043cc-169b-4321-b69e-cd5e6a63f00e"> (coming soon) </div> <div data-tab="Java SDK" data-lang="java" id="tab-cef2285f-e3a4-46ba-89eb-08ef5bdf61f6"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <h2 id='import-events-from-input-file' class='header-anchors'>Import Events from Input File</h2><p>Importing events from a file can be done easily using the command line interface. Assuming that <code>pio</code> be in your search path, your App ID be <code>123</code>, and the input file <code>my_events.json</code> be in your current working directory:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="gp">$ </span>pio import --appid 123 --input my_events.json </pre></td></tr></tbody></table> </div> <p>After a brief while, the tool should return to the console without any error. Congratulations! You have successfully imported your events.</p></div></div></div></div><footer><div class="container"><div class="seperator"></div><div class="row"><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//docs.prediction.io/install/" target="blank">Download</a></li><li><a href="//docs.prediction.io/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">GitHub</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflow</a></li></ul></div></div><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href="//prediction io.incubator.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">Source Code</a></li><li><a href="//issues.apache.org/jira/browse/PIO" target="blank">Bug Tracker</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to Development Mailing List</a></li></ul></div></div></div></div><div id="footer-bottom"><div class="container"><div class="row"><div class="col-md-12"><div id="footer-logo-wrapper"><img alt="PredictionIO" src="/images/logos/logo-white-d1e9c6e6.png"/></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apache/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub">Star</a> <a class ="github-button" href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="//www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152.png"/></a> <a href="//twitter.com/predictionio" target="blank"><img alt="PredictionIO on Facebook" src="/images/icons/facebook-5c57939c.png"/></a> </div></div></div></div></div></footer></div><script>(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/batchimport/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/batchimport/index.html.gz b/datacollection/batchimport/index.html.gz index 5abe60e..dfe550f 100644 Binary files a/datacollection/batchimport/index.html.gz and b/datacollection/batchimport/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/channel/index.html ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html b/datacollection/channel/index.html index f358ffa..fd6791b 100644 --- a/datacollection/channel/index.html +++ b/datacollection/channel/index.html @@ -12,7 +12,7 @@ [INFO] [App$] Channel Name: myChannel [INFO] [App$] Channel ID: 2 [INFO] [App$] App ID: 5 -</span></pre></td></tr></tbody></table> </div> <p>Now "myChannel" is created and ready for collecting data.</p><h2 id='collect-data-through-channel' class='header-anchors'>Collect data through Channel</h2><p>The Event API support optional <code>channel</code> query parameter. This allows you to import and query events of the specified channel. When the <code>channel</code> parameter is not specified, the data is collected through the default channel.</p><p>URL: <code>http://localhost:7070/events.json?accessKey=yourAccessKeyString&channel=yourChannelName</code></p><p>Query parameters:</p> <table><thead> <tr> <th style="text-align: left">Field</th> <th style="text-align: left">Type</th> <th style="text-align: left">Description</th> </tr> </thead><tbody> <tr> <td style="text-align: left"><code>accessKey</code></td> <td style="text-align: left">String</td> <td style="text-align: left">The Access Key for your App</td> </tr> <tr> <td style="text-align: left"><code>channel</c ode></td> <td style="text-align: left">String</td> <td style="text-align: left">The channel name (optional). Specify this to import data to this channel. <strong>NOTE: supported in PIO version >= 0.9.2</strong> only. Channel must be created first.</td> </tr> </tbody></table> <p>For SDK usage, one EventClient should be responsible for collecting data of one specific channel. The channel name is specified when the EventClient object is instantiated.</p><p>For example, the following code import event to "YOUR_CHANNEL" of the corresponding App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-95e9bddb-b47d-4ac1-889d-38a0dc816cf4">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-1a307e55-3c43-4abd-b48d-ed6e7345a860">PHP SDK</a></li> <li data-lang="python"><a href="#tab-691aa02a-2de0-4149-b67d-f62f498496b2">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-f705d7d8-beb1-489e-af51-e9c10178f5ff">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-bbbba551-46d2-4726-8026-c0865d402827">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-95e9bddb-b47d-4ac1-889d-38a0dc816cf4"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</span></pre></td></tr></tbody></table> </div> <p>Now "myChannel" is created and ready for collecting data.</p><h2 id='collect-data-through-channel' class='header-anchors'>Collect data through Channel</h2><p>The Event API support optional <code>channel</code> query parameter. This allows you to import and query events of the specified channel. When the <code>channel</code> parameter is not specified, the data is collected through the default channel.</p><p>URL: <code>http://localhost:7070/events.json?accessKey=yourAccessKeyString&channel=yourChannelName</code></p><p>Query parameters:</p> <table><thead> <tr> <th style="text-align: left">Field</th> <th style="text-align: left">Type</th> <th style="text-align: left">Description</th> </tr> </thead><tbody> <tr> <td style="text-align: left"><code>accessKey</code></td> <td style="text-align: left">String</td> <td style="text-align: left">The Access Key for your App</td> </tr> <tr> <td style="text-align: left"><code>channel</c ode></td> <td style="text-align: left">String</td> <td style="text-align: left">The channel name (optional). Specify this to import data to this channel. <strong>NOTE: supported in PIO version >= 0.9.2</strong> only. Channel must be created first.</td> </tr> </tbody></table> <p>For SDK usage, one EventClient should be responsible for collecting data of one specific channel. The channel name is specified when the EventClient object is instantiated.</p><p>For example, the following code import event to "YOUR_CHANNEL" of the corresponding App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-aaa97d6f-47ae-4a51-8087-3d58a10a9748">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-8d0e74d1-a960-4e2b-87d5-37212128f9ad">PHP SDK</a></li> <li data-lang="python"><a href="#tab-a84f0e6f-98d1-4167-806d-4170ee135cbf">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-cf01a589-bc94-4b4f-83bd-ef5d4835ecf4">Ruby SDK</a></li> <li data-lang="java"><a href ="#tab-abf1a901-84e9-4979-b0c9-3120a9366d51">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-aaa97d6f-47ae-4a51-8087-3d58a10a9748"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -39,7 +39,7 @@ }, "eventTime" : "2004-12-13T21:39:45.618Z" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-1a307e55-3c43-4abd-b48d-ed6e7345a860"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-691aa02a-2de0-4149-b67d-f62f498496b2"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-8d0e74d1-a960-4e2b-87d5-37212128f9ad"> (TODO: update me) </div> <div data-tab="Python SDK" data-lang="python" id="tab-a84f0e6f-98d1-4167-806d-4170ee135cbf"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -80,7 +80,7 @@ <span class="n">properties</span><span class="o">=</span><span class="n">event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2014</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">38</span><span class="p">,</span> <span class="mi">45</span><span class="p">,</span> <span class="mi">618000</span><span class="p">,</span> <span class="n">pytz</span><span class="o">.</span><span class="n">utc</span><span class="p">))</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-f705d7d8-beb1-489e-af51-e9c10178f5ff"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-bbbba551-46d2-4726-8026-c0865d402827"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-cf01a589-bc94-4b4f-83bd-ef5d4835ecf4"> (TODO: update me) </div> <div data-tab="Java SDK" data-lang="java" id="tab-abf1a901-84e9-4979-b0c9-3120a9366d51"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <p>You can also follow the EventAPI <a href="/datacollection/eventapi/#debugging-recipes">debug receipts</a> to query the events of specific channel by adding the <code>channel</code> query parameter in the URL.</p><h2 id='delete-a-channel-(including-all-imported-data)' class='header-anchors'>Delete a Channel (including all imported data)</h2><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre>pio app channel-delete <app name> <channel name> </pre></td></tr></tbody></table> </div> <h2 id='delete-the-data-only-of-a-channel' class='header-anchors'>Delete the data-only of a Channel</h2><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre>pio app data-delete <app name> --channel <channel name> </pre></td></tr></tbody></table> </div> <h2 id='accessing-channel-data-in-engine' class='header-anchors'>Accessing Channel Data in Engine</h2><p>To acccess channel data, simply specify the channel name when use the PEventStore or LEventStore API. Data is read from from the default channel if channelName is not specified.</p><p>For example, read data from default channel:</p><div class="highlight scala"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/channel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/channel/index.html.gz b/datacollection/channel/index.html.gz index e1686d7..eefb5a4 100644 Binary files a/datacollection/channel/index.html.gz and b/datacollection/channel/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/eventapi/index.html ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html b/datacollection/eventapi/index.html index 652d1ce..fbbacf6 100644 --- a/datacollection/eventapi/index.html +++ b/datacollection/eventapi/index.html @@ -22,7 +22,7 @@ Content-Length: 18 <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Name: MyTestApp <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> ID: 6 <span class="o">[</span>INFO] <span class="o">[</span>App<span class="nv">$]</span> Access Key: WPgcXKd42FPQpZHVbVeMyqF4CQJUnXQmIMTHhX3ZUrSzvy1KXJjdFUrslifa9rnB -</pre></td></tr></tbody></table> </div> <h3 id='creating-your-first-event' class='header-anchors'>Creating Your First Event</h3><p>You may connect to the Event Server with HTTP request or by using one of many <strong>Apache PredictionIO (incubating) SDKs</strong>.</p><p>For example, the following shows how one can create an event involving a single entity. Replace the value of <code>accessKey</code> by the <em>Access Key</em> generated for your App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-89f804fa-de23-480c-9094-aa0fc189da7a">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-2f724dde-eff0-42a5-a4df-cf252abaae5f">PHP SDK</a></li> <li data-lang="python"><a href="#tab-0d93b6f0-4bac-4286-b56f-2123000d5f10">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-f0188da4-7a62-40ca-aa17-a8bd86c3bc31">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-ddd14c0e-955f-46c9-b4de-90700cc7702e">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="b ash" id="tab-89f804fa-de23-480c-9094-aa0fc189da7a"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td></tr></tbody></table> </div> <h3 id='creating-your-first-event' class='header-anchors'>Creating Your First Event</h3><p>You may connect to the Event Server with HTTP request or by using one of many <strong>Apache PredictionIO (incubating) SDKs</strong>.</p><p>For example, the following shows how one can create an event involving a single entity. Replace the value of <code>accessKey</code> by the <em>Access Key</em> generated for your App.</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-dfe419e5-5ac8-4ab4-beff-5a397f9d9f06">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-647699b4-7e5b-4a96-a33f-c9347f33b587">PHP SDK</a></li> <li data-lang="python"><a href="#tab-240c9e1c-7c4c-4a71-9b4a-bc39519a6f4b">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-1cd16b26-d021-424e-8600-ad8235cf15d5">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-b3b84f54-ac00-4cba-8b5a-f15b03b97279">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="b ash" id="tab-dfe419e5-5ac8-4ab4-beff-5a397f9d9f06"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -53,7 +53,7 @@ Content-Length: 18 } "eventTime" : "2004-12-13T21:39:45.618-07:00" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-2f724dde-eff0-42a5-a4df-cf252abaae5f"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-647699b4-7e5b-4a96-a33f-c9347f33b587"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -94,7 +94,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618-07:00'</span> <span class="p">));</span> <span class="cp">?></span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-0d93b6f0-4bac-4286-b56f-2123000d5f10"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-240c9e1c-7c4c-4a71-9b4a-bc39519a6f4b"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -137,7 +137,7 @@ Content-Length: 18 <span class="n">properties</span><span class="o">=</span><span class="n">first_event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">first_event_time</span><span class="p">,</span> <span class="p">)</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-f0188da4-7a62-40ca-aa17-a8bd86c3bc31"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-1cd16b26-d021-424e-8600-ad8235cf15d5"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -158,8 +158,8 @@ Content-Length: 18 <span class="s1">'prop4'</span> <span class="o">=></span> <span class="kp">true</span><span class="p">,</span> <span class="s1">'prop5'</span> <span class="o">=></span> <span class="sx">%w(a b c)</span><span class="p">,</span> <span class="s1">'prop6'</span> <span class="o">=></span> <span class="mi">4</span><span class="o">.</span><span class="mi">56</span> <span class="p">})</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-ddd14c0e-955f-46c9-b4de-90700cc7702e"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> -</pre></td> </tr></tbody></table> </div> </div> </div> <p>For example, the following shows how one can create an event involving two entities (with <code>targetEntity</code>).</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-77e1c355-f90e-4206-95c1-d13049f92cb1">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-07f62995-4656-4f2e-857f-ef8de255ce89">PHP SDK</a></li> <li data-lang="python"><a href="#tab-8c10b8fb-472b-4b1d-a4b1-a0a483f4be2a">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-58ad9ece-7a28-4a59-ab32-b7c51e1be1fa">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-5dd1f27c-50f9-40f2-a8cd-23758fdfa007">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-77e1c355-f90e-4206-95c1-d13049f92cb1"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-b3b84f54-ac00-4cba-8b5a-f15b03b97279"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> </div> <p>For example, the following shows how one can create an event involving two entities (with <code>targetEntity</code>).</p><div class="tabs"> <ul class="control"> <li data-lang="bash"><a href="#tab-9258078a-d56a-4038-8512-a897f7666c7a">Raw HTTP</a></li> <li data-lang="php"><a href="#tab-df4dea78-c494-4f3c-854d-6ca0de9d5951">PHP SDK</a></li> <li data-lang="python"><a href="#tab-360dd93a-ac58-4ca8-beea-001a91ca8ce8">Python SDK</a></li> <li data-lang="ruby"><a href="#tab-8b100b54-9da7-4c36-b5a0-5195be577515">Ruby SDK</a></li> <li data-lang="java"><a href="#tab-8788d759-0d4d-431f-bd3e-5ac9a4819fd5">Java SDK</a></li> </ul> <div data-tab="Raw HTTP" data-lang="bash" id="tab-9258078a-d56a-4038-8512-a897f7666c7a"> <div class="highlight shell"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -186,7 +186,7 @@ Content-Length: 18 }, "eventTime" : "2004-12-13T21:39:45.618Z" }'</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-07f62995-4656-4f2e-857f-ef8de255ce89"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="PHP SDK" data-lang="php" id="tab-df4dea78-c494-4f3c-854d-6ca0de9d5951"> <div class="highlight php"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -221,7 +221,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618Z'</span> <span class="p">));</span> <span class="cp">?></span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-8c10b8fb-472b-4b1d-a4b1-a0a483f4be2a"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Python SDK" data-lang="python" id="tab-360dd93a-ac58-4ca8-beea-001a91ca8ce8"> <div class="highlight python"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -246,7 +246,7 @@ Content-Length: 18 <span class="n">target_entity_id</span><span class="o">=</span><span class="s">"iid"</span><span class="p">,</span> <span class="n">properties</span><span class="o">=</span><span class="n">second_event_properties</span><span class="p">,</span> <span class="n">event_time</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2014</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">38</span><span class="p">,</span> <span class="mi">45</span><span class="p">,</span> <span class="mi">618000</span><span class="p">,</span> <span class="n">pytz</span><span class="o">.</span><span class="n">utc</span><span class="p">))</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-58ad9ece-7a28-4a59-ab32-b7c51e1be1fa"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Ruby SDK" data-lang="ruby" id="tab-8b100b54-9da7-4c36-b5a0-5195be577515"> <div class="highlight ruby"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -263,7 +263,7 @@ Content-Length: 18 <span class="s1">'eventTime'</span> <span class="o">=></span> <span class="s1">'2004-12-13T21:39:45.618Z'</span><span class="p">,</span> <span class="s1">'properties'</span> <span class="o">=></span> <span class="p">{</span> <span class="s1">'someProperty'</span> <span class="o">=></span> <span class="s1">'value1'</span><span class="p">,</span> <span class="s1">'anotherProperty'</span> <span class="o">=></span> <span class="s1">'value2'</span> <span class="p">})</span> -</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-5dd1f27c-50f9-40f2-a8cd-23758fdfa007"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> +</pre></td> </tr></tbody></table> </div> </div> <div data-tab="Java SDK" data-lang="java" id="tab-8788d759-0d4d-431f-bd3e-5ac9a4819fd5"> <div class="highlight java"> <table style="border-spacing: 0"><tbody><tr> <td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td> <td class="code"><pre><span class="o">(</span><span class="n">coming</span> <span class="n">soon</span><span class="o">)</span> </pre></td> </tr></tbody></table> </div> </div> </div> <p>Sample response:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/eventapi/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventapi/index.html.gz b/datacollection/eventapi/index.html.gz index 0860359..471da09 100644 Binary files a/datacollection/eventapi/index.html.gz and b/datacollection/eventapi/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/eventmodel/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/eventmodel/index.html.gz b/datacollection/eventmodel/index.html.gz index d597ee7..38a8ac6 100644 Binary files a/datacollection/eventmodel/index.html.gz and b/datacollection/eventmodel/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/index.html.gz b/datacollection/index.html.gz index fa02262..a78c8df 100644 Binary files a/datacollection/index.html.gz and b/datacollection/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/datacollection/webhooks/index.html.gz ---------------------------------------------------------------------- diff --git a/datacollection/webhooks/index.html.gz b/datacollection/webhooks/index.html.gz index 8d1bfd1..f508255 100644 Binary files a/datacollection/webhooks/index.html.gz and b/datacollection/webhooks/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/demo/community/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/community/index.html.gz b/demo/community/index.html.gz index 137b905..78cda64 100644 Binary files a/demo/community/index.html.gz and b/demo/community/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/demo/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/index.html.gz b/demo/index.html.gz index 1655185..2369fcc 100644 Binary files a/demo/index.html.gz and b/demo/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/demo/supervisedlearning/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/supervisedlearning/index.html.gz b/demo/supervisedlearning/index.html.gz index 3c9eb31..cc70c7b 100644 Binary files a/demo/supervisedlearning/index.html.gz and b/demo/supervisedlearning/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/demo/tapster/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/tapster/index.html.gz b/demo/tapster/index.html.gz index f2412b8..cff9ef2 100644 Binary files a/demo/tapster/index.html.gz and b/demo/tapster/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/demo/textclassification/index.html.gz ---------------------------------------------------------------------- diff --git a/demo/textclassification/index.html.gz b/demo/textclassification/index.html.gz index 2cee5c9..bb80ed7 100644 Binary files a/demo/textclassification/index.html.gz and b/demo/textclassification/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/deploy/engineparams/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/engineparams/index.html.gz b/deploy/engineparams/index.html.gz index f2ed477..57c3ef6 100644 Binary files a/deploy/engineparams/index.html.gz and b/deploy/engineparams/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/deploy/enginevariants/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/enginevariants/index.html.gz b/deploy/enginevariants/index.html.gz index 6316cb5..e21ad05 100644 Binary files a/deploy/enginevariants/index.html.gz and b/deploy/enginevariants/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/deploy/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/index.html.gz b/deploy/index.html.gz index 897ba30..30964a5 100644 Binary files a/deploy/index.html.gz and b/deploy/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/deploy/monitoring/index.html.gz ---------------------------------------------------------------------- diff --git a/deploy/monitoring/index.html.gz b/deploy/monitoring/index.html.gz index e181604..b94d2cc 100644 Binary files a/deploy/monitoring/index.html.gz and b/deploy/monitoring/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/evaluationdashboard/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/evaluationdashboard/index.html.gz b/evaluation/evaluationdashboard/index.html.gz index e448429..d986d19 100644 Binary files a/evaluation/evaluationdashboard/index.html.gz and b/evaluation/evaluationdashboard/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/history/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/history/index.html.gz b/evaluation/history/index.html.gz index cb647c7..1c8e3b4 100644 Binary files a/evaluation/history/index.html.gz and b/evaluation/history/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/index.html.gz b/evaluation/index.html.gz index b719f7f..545aafe 100644 Binary files a/evaluation/index.html.gz and b/evaluation/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/metricbuild/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricbuild/index.html.gz b/evaluation/metricbuild/index.html.gz index 63fddd2..47e34af 100644 Binary files a/evaluation/metricbuild/index.html.gz and b/evaluation/metricbuild/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/metricchoose/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/metricchoose/index.html.gz b/evaluation/metricchoose/index.html.gz index ebdda97..d1471f9 100644 Binary files a/evaluation/metricchoose/index.html.gz and b/evaluation/metricchoose/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/evaluation/paramtuning/index.html.gz ---------------------------------------------------------------------- diff --git a/evaluation/paramtuning/index.html.gz b/evaluation/paramtuning/index.html.gz index 3cc79ce..d912311 100644 Binary files a/evaluation/paramtuning/index.html.gz and b/evaluation/paramtuning/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/gallery/template-gallery/index.html.gz ---------------------------------------------------------------------- diff --git a/gallery/template-gallery/index.html.gz b/gallery/template-gallery/index.html.gz index 590bf73..8f35684 100644 Binary files a/gallery/template-gallery/index.html.gz and b/gallery/template-gallery/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/github/index.html.gz ---------------------------------------------------------------------- diff --git a/github/index.html.gz b/github/index.html.gz index 9d18a35..a8e8627 100644 Binary files a/github/index.html.gz and b/github/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/index.html.gz ---------------------------------------------------------------------- diff --git a/index.html.gz b/index.html.gz index 73ecd15..7296845 100644 Binary files a/index.html.gz and b/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/install/config-datastore/index.html.gz ---------------------------------------------------------------------- diff --git a/install/config-datastore/index.html.gz b/install/config-datastore/index.html.gz index 4f7744f..a83d7af 100644 Binary files a/install/config-datastore/index.html.gz and b/install/config-datastore/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/install/index.html.gz ---------------------------------------------------------------------- diff --git a/install/index.html.gz b/install/index.html.gz index 31d1d61..aadeeef 100644 Binary files a/install/index.html.gz and b/install/index.html.gz differ http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/install/install-linux/index.html ---------------------------------------------------------------------- diff --git a/install/install-linux/index.html b/install/install-linux/index.html index 8a8a70b..6b65295 100644 --- a/install/install-linux/index.html +++ b/install/install-linux/index.html @@ -12,24 +12,24 @@ Java HotSpot<span class="o">(</span>TM<span class="o">)</span> 64-Bit Server VM 5</pre></td><td class="code"><pre><span class="gp">$ </span><span class="nb">cd</span> <span class="gp">$ </span><span class="nb">pwd</span> /home/abc -<span class="gp">$ </span>wget http://download.prediction.io/PredictionIO-0.9.6.tar.gz -<span class="gp">$ </span>tar zxvf PredictionIO-0.9.6.tar.gz -</pre></td></tr></tbody></table> </div> <div class="alert-message note"><p>Download instructions above apply to previous non-Apache releases only. Once we have made an Apache release, new instructions will be provided.</p></div><h3 id='installing-dependencies' class='header-anchors'>Installing Dependencies</h3><p>Let us install dependencies inside a subdirectory of the Apache PredictionIO (incubating) installation. By following this convention, you can use PredictionIO's default configuration as is.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="gp">$ </span>mkdir PredictionIO-0.9.6/vendors +<span class="gp">$ </span>wget http://download.prediction.io/PredictionIO-0.9.5.tar.gz +<span class="gp">$ </span>tar zxvf PredictionIO-0.9.5.tar.gz +</pre></td></tr></tbody></table> </div> <div class="alert-message note"><p>Download instructions above apply to previous non-Apache releases only. Once we have made an Apache release, new instructions will be provided.</p></div><h3 id='installing-dependencies' class='header-anchors'>Installing Dependencies</h3><p>Let us install dependencies inside a subdirectory of the Apache PredictionIO (incubating) installation. By following this convention, you can use PredictionIO's default configuration as is.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="gp">$ </span>mkdir PredictionIO-0.9.5/vendors </pre></td></tr></tbody></table> </div> <h4 id='spark-setup' class='header-anchors'>Spark Setup</h4><p><a href="http://spark.apache.org">Apache Spark</a> is the default processing engine for PredictionIO. Download and extract it.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2</pre></td><td class="code"><pre><span class="gp">$ </span>wget http://d3kbcqa49mib13.cloudfront.net/spark-1.5.1-bin-hadoop2.6.tgz -<span class="gp">$ </span>tar zxvfC spark-1.5.1-bin-hadoop2.6.tgz PredictionIO-0.9.6/vendors -</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install Apache Spark to another location, you must edit <code>PredictionIO-0.9.6/conf/pio-env.sh</code> and change the <code>SPARK_HOME</code> variable to point to your own Apache Spark installation.</p></div><h4 id='elasticsearch-setup' class='header-anchors'>Elasticsearch Setup</h4><div class="alert-message warning"><p>You may skip this section if you are using PostgreSQL or MySQL.</p></div><p><a href="http://www.elasticsearch.org/">Elasticsearch</a> is the default metadata store for PredictionIO. Download and extract it.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 +<span class="gp">$ </span>tar zxvfC spark-1.5.1-bin-hadoop2.6.tgz PredictionIO-0.9.5/vendors +</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install Apache Spark to another location, you must edit <code>PredictionIO-0.9.5/conf/pio-env.sh</code> and change the <code>SPARK_HOME</code> variable to point to your own Apache Spark installation.</p></div><h4 id='elasticsearch-setup' class='header-anchors'>Elasticsearch Setup</h4><div class="alert-message warning"><p>You may skip this section if you are using PostgreSQL or MySQL.</p></div><p><a href="http://www.elasticsearch.org/">Elasticsearch</a> is the default metadata store for PredictionIO. Download and extract it.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2</pre></td><td class="code"><pre><span class="gp">$ </span>wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz -<span class="gp">$ </span>tar zxvfC elasticsearch-1.4.4.tar.gz PredictionIO-0.9.6/vendors -</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install Elasticsearch to another location, you must edit <code>PredictionIO-0.9.6/conf/pio-env.sh</code> and change the <code>PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME</code> variable to point to your own Elasticsearch installation.</p></div><div class="alert-message info"><p>If you are using a shared network, change the <code>network.host</code> line in <code>PredictionIO-0.9.6/vendors/elasticsearch-1.4.4/config/elasticsearch.yml</code> to <code>network.host: 127.0.0.1</code> because by default, Elasticsearch looks for other machines on the network upon setup and you may run into weird errors if there are other machines that is also running Elasticsearch.</p></div><p>If you are not using the default setting at <code>localhost</code>, you may change the following in <code>PredictionIO-0.9.6/conf/pio-env.sh</code> to fit your setup.</p><div class="highlight shell"><table style="border-spacing: 0" ><tbody><tr><td class="gutter gl" style="text-align: right"><pre >class="lineno">1 +<span class="gp">$ </span>tar zxvfC elasticsearch-1.4.4.tar.gz PredictionIO-0.9.5/vendors +</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install Elasticsearch to another location, you must edit <code>PredictionIO-0.9.5/conf/pio-env.sh</code> and change the <code>PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME</code> variable to point to your own Elasticsearch installation.</p></div><div class="alert-message info"><p>If you are using a shared network, change the <code>network.host</code> line in <code>PredictionIO-0.9.5/vendors/elasticsearch-1.4.4/config/elasticsearch.yml</code> to <code>network.host: 127.0.0.1</code> because by default, Elasticsearch looks for other machines on the network upon setup and you may run into weird errors if there are other machines that is also running Elasticsearch.</p></div><p>If you are not using the default setting at <code>localhost</code>, you may change the following in <code>PredictionIO-0.9.5/conf/pio-env.sh</code> to fit your setup.</p><div class="highlight shell"><table style="border-spacing: 0" ><tbody><tr><td class="gutter gl" style="text-align: right"><pre >class="lineno">1 2 3</pre></td><td class="code"><pre><span class="nv">PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE</span><span class="o">=</span>elasticsearch <span class="nv">PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS</span><span class="o">=</span>localhost <span class="nv">PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS</span><span class="o">=</span>9300 </pre></td></tr></tbody></table> </div> <h4 id='hbase-setup<a-class="anchor"-name="hbase"> </a>' class='header-anchors' >HBase Setup<a class="anchor" name="hbase"> </a></h4><div class="alert-message warning"><p>You may skip this section if you are using PostgreSQL or MySQL.</p></div><p><a href="http://hbase.apache.org">HBase</a> is the default event data store for PredictionIO. Download and extract it.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2</pre></td><td class="code"><pre><span class="gp">$ </span>wget http://archive.apache.org/dist/hbase/hbase-1.0.0/hbase-1.0.0-bin.tar.gz -<span class="gp">$ </span>tar zxvfC hbase-1.0.0-bin.tar.gz PredictionIO-0.9.6/vendors -</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install HBase to another location, you must edit <code>PredictionIO-0.9.6/conf/pio-env.sh</code> and change the <code>PIO_STORAGE_SOURCES_HBASE_HOME</code> variable to point to your own HBase installation.</p></div><p>You will need to at least add a minimal configuration to HBase to start it in standalone mode. Details can be found <a href="http://hbase.apache.org/book/quickstart.html">here</a>. Here, we are showing a sample minimal configuration.</p><div class="alert-message info"><p>For production deployment, run a fully distributed HBase configuration.</p></div><p>Edit <code>PredictionIO-0.9.6/vendors/hbase-1.0.0/conf/hbase-site.xml</code>.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 +<span class="gp">$ </span>tar zxvfC hbase-1.0.0-bin.tar.gz PredictionIO-0.9.5/vendors +</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>If you decide to install HBase to another location, you must edit <code>PredictionIO-0.9.5/conf/pio-env.sh</code> and change the <code>PIO_STORAGE_SOURCES_HBASE_HOME</code> variable to point to your own HBase installation.</p></div><p>You will need to at least add a minimal configuration to HBase to start it in standalone mode. Details can be found <a href="http://hbase.apache.org/book/quickstart.html">here</a>. Here, we are showing a sample minimal configuration.</p><div class="alert-message info"><p>For production deployment, run a fully distributed HBase configuration.</p></div><p>Edit <code>PredictionIO-0.9.5/vendors/hbase-1.0.0/conf/hbase-site.xml</code>.</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 @@ -41,26 +41,26 @@ Java HotSpot<span class="o">(</span>TM<span class="o">)</span> 64-Bit Server VM 10</pre></td><td class="code"><pre><configuration> <property> <name>hbase.rootdir</name> - <value>file:///home/abc/PredictionIO-0.9.6/vendors/hbase-1.0.0/data</value> + <value>file:///home/abc/PredictionIO-0.9.5/vendors/hbase-1.0.0/data</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> - <value>/home/abc/PredictionIO-0.9.6/vendors/hbase-1.0.0/zookeeper</value> + <value>/home/abc/PredictionIO-0.9.5/vendors/hbase-1.0.0/zookeeper</value> </property> </configuration> -</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>HBase will create <code>hbase.rootdir</code> automatically to store its data.</p></div><p>Edit <code>PredictionIO-0.9.6/vendors/hbase-1.0.0/conf/hbase-env.sh</code> to set <code>JAVA_HOME</code> for the cluster. For example:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="nb">export </span><span class="nv">JAVA_HOME</span><span class="o">=</span>/usr/lib/jvm/java-8-oracle/jre +</pre></td></tr></tbody></table> </div> <div class="alert-message info"><p>HBase will create <code>hbase.rootdir</code> automatically to store its data.</p></div><p>Edit <code>PredictionIO-0.9.5/vendors/hbase-1.0.0/conf/hbase-env.sh</code> to set <code>JAVA_HOME</code> for the cluster. For example:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="nb">export </span><span class="nv">JAVA_HOME</span><span class="o">=</span>/usr/lib/jvm/java-8-oracle/jre </pre></td></tr></tbody></table> </div> <p>For Mac users, use this instead (change <code>1.8</code> to <code>1.7</code> if you have Java 7 installed):</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="nb">export </span><span class="nv">JAVA_HOME</span><span class="o">=</span><span class="sb">`</span>/usr/libexec/java_home -v 1.8<span class="sb">`</span> </pre></td></tr></tbody></table> </div> <p>In addition, you must set your environment variable <code>JAVA_HOME</code>. For example, in <code>/home/abc/.bashrc</code> add the following line:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1</pre></td><td class="code"><pre><span class="nb">export </span><span class="nv">JAVA_HOME</span><span class="o">=</span>/usr/lib/jvm/java-8-oracle -</pre></td></tr></tbody></table> </div> <h3 id='start-predictionio-and-dependent-services' class='header-anchors'>Start PredictionIO and Dependent Services</h3><div class="alert-message warning"><p>If you are using PostgreSQL or MySQL, skip <code>pio-start-all</code> and <code>pio-stop-all</code>, and do <code>PredictionIO-0.9.6/bin/pio eventserver &</code> instead.</p></div><p>Simply do <code>PredictionIO-0.9.6/bin/pio-start-all</code> and you should see something similar to the following:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 +</pre></td></tr></tbody></table> </div> <h3 id='start-predictionio-and-dependent-services' class='header-anchors'>Start PredictionIO and Dependent Services</h3><div class="alert-message warning"><p>If you are using PostgreSQL or MySQL, skip <code>pio-start-all</code> and <code>pio-stop-all</code>, and do <code>PredictionIO-0.9.5/bin/pio eventserver &</code> instead.</p></div><p>Simply do <code>PredictionIO-0.9.5/bin/pio-start-all</code> and you should see something similar to the following:</p><div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1 2 3 4 5 6 -7</pre></td><td class="code"><pre><span class="gp">$ </span>PredictionIO-0.9.6/bin/pio-start-all +7</pre></td><td class="code"><pre><span class="gp">$ </span>PredictionIO-0.9.5/bin/pio-start-all Starting Elasticsearch... Starting HBase... -starting master, logging to /home/abc/PredictionIO-0.9.6/vendors/hbase-1.0.0/bin/../logs/hbase-abc-master-yourhost.local.out +starting master, logging to /home/abc/PredictionIO-0.9.5/vendors/hbase-1.0.0/bin/../logs/hbase-abc-master-yourhost.local.out Waiting 10 seconds <span class="k">for </span>HBase to fully initialize... Starting PredictionIO Event Server... <span class="err">$</span> @@ -75,7 +75,7 @@ Starting PredictionIO Event Server... 15256 org.elasticsearch.bootstrap.Elasticsearch 15469 sun.tools.jps.Jps <span class="err">$</span> -</pre></td></tr></tbody></table> </div> <p>A running setup will have these up and running:</p> <ul> <li>org.apache.predictionio.tools.console.Console</li> <li>org.apache.hadoop.hbase.master.HMaster</li> <li>org.elasticsearch.bootstrap.Elasticsearch</li> </ul> <p>At any time, you can run <code>PredictionIO-0.9.6/bin/pio status</code> to check the status of the dependencies.</p><p>Now you have installed everything you need!</p><p>You can proceed to <a href="/start/download">Choosing an Engine Template</a>, or continue the QuickStart guide of the Engine template if you have already chosen one.</p> </div></div></div></div><footer><div class="container"><div class="seperator"></div><div class="row"><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//docs.prediction.io/install/" target="blank">Download</a></li><li><a href="//docs.prediction.io/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-pre dictionio" target="blank">GitHub</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflow</a></li></ul></div></div><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href="//predictionio.incubator.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">Source Code</a></li><li><a href="//issues.apache.org/jira/browse/PIO" target="blank">Bug Tracker</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to Development Mailing List</a></li></ul></div></div></div></div><div id="footer-bottom"><div class="container"><div class="row"><div class="col-md-12"><div id="footer-logo-wrapper"><img alt="PredictionIO" src="/images/logo s/logo-white-d1e9c6e6.png"/></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apache/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub">Star</a> <a class="github-button" href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="//www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152 .png"/></a> <a href="//twitter.com/predictionio" target="blank"><img alt="PredictionIO on Facebook" src="/images/icons/facebook-5c57939c.png"/></a> </div></div></div></div></div></footer></div><script>(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ +</pre></td></tr></tbody></table> </div> <p>A running setup will have these up and running:</p> <ul> <li>org.apache.predictionio.tools.console.Console</li> <li>org.apache.hadoop.hbase.master.HMaster</li> <li>org.elasticsearch.bootstrap.Elasticsearch</li> </ul> <p>At any time, you can run <code>PredictionIO-0.9.5/bin/pio status</code> to check the status of the dependencies.</p><p>Now you have installed everything you need!</p><p>You can proceed to <a href="/start/download">Choosing an Engine Template</a>, or continue the QuickStart guide of the Engine template if you have already chosen one.</p> </div></div></div></div><footer><div class="container"><div class="seperator"></div><div class="row"><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Community</h4><ul><li><a href="//docs.prediction.io/install/" target="blank">Download</a></li><li><a href="//docs.prediction.io/" target="blank">Docs</a></li><li><a href="//github.com/apache/incubator-pre dictionio" target="blank">GitHub</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to User Mailing List</a></li><li><a href="//stackoverflow.com/questions/tagged/predictionio" target="blank">Stackoverflow</a></li></ul></div></div><div class="col-md-6 col-xs-6 footer-link-column"><div class="footer-link-column-row"><h4>Contribute</h4><ul><li><a href="//predictionio.incubator.apache.org/community/contribute-code/" target="blank">Contribute</a></li><li><a href="//github.com/apache/incubator-predictionio" target="blank">Source Code</a></li><li><a href="//issues.apache.org/jira/browse/PIO" target="blank">Bug Tracker</a></li><li><a href="mailto:[email protected]" target="blank">Subscribe to Development Mailing List</a></li></ul></div></div></div></div><div id="footer-bottom"><div class="container"><div class="row"><div class="col-md-12"><div id="footer-logo-wrapper"><img alt="PredictionIO" src="/images/logo s/logo-white-d1e9c6e6.png"/></div><div id="social-icons-wrapper"><a class="github-button" href="https://github.com/apache/incubator-predictionio" data-style="mega" data-count-href="/apache/incubator-predictionio/stargazers" data-count-api="/repos/apache/incubator-predictionio#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star apache/incubator-predictionio on GitHub">Star</a> <a class="github-button" href="https://github.com/apache/incubator-predictionio/fork" data-icon="octicon-git-branch" data-style="mega" data-count-href="/apache/incubator-predictionio/network" data-count-api="/repos/apache/incubator-predictionio#forks_count" data-count-aria-label="# forks on GitHub" aria-label="Fork apache/incubator-predictionio on GitHub">Fork</a> <script id="github-bjs" async="" defer="" src="https://buttons.github.io/buttons.js"></script><a href="//www.facebook.com/predictionio" target="blank"><img alt="PredictionIO on Twitter" src="/images/icons/twitter-ea9dc152 .png"/></a> <a href="//twitter.com/predictionio" target="blank"><img alt="PredictionIO on Facebook" src="/images/icons/facebook-5c57939c.png"/></a> </div></div></div></div></div></footer></div><script>(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e); })(window,document,'script','//s.swiftypecdn.com/install/v1/st.js','_st'); http://git-wip-us.apache.org/repos/asf/incubator-predictionio-site/blob/f6e7c2b4/install/install-linux/index.html.gz ---------------------------------------------------------------------- diff --git a/install/install-linux/index.html.gz b/install/install-linux/index.html.gz index 9db55b9..8c70cd4 100644 Binary files a/install/install-linux/index.html.gz and b/install/install-linux/index.html.gz differ
