Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03AC5200C40 for ; Thu, 23 Mar 2017 19:25:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 01C2F160B83; Thu, 23 Mar 2017 18:25:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2E226160B68 for ; Thu, 23 Mar 2017 19:25:11 +0100 (CET) Received: (qmail 64705 invoked by uid 500); 23 Mar 2017 18:25:10 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 64694 invoked by uid 99); 23 Mar 2017 18:25:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2017 18:25:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BCAFF180A02 for ; Thu, 23 Mar 2017 18:25:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.079 X-Spam-Level: **** X-Spam-Status: No, score=4.079 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, JMQ_TRACKER=0.5, KAM_HUGEIMGSRC=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id X_22ukdHs33y for ; Thu, 23 Mar 2017 18:25:04 +0000 (UTC) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 90A825FAD1 for ; Thu, 23 Mar 2017 18:25:03 +0000 (UTC) Received: by mail-it0-f51.google.com with SMTP id y18so45513389itc.0 for ; Thu, 23 Mar 2017 11:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=95UoW8RYhndee+G6RKMxEukulPxcvIClkEGViviAtc4=; b=BL0NNbUOtMpcLTfhQqAaPcs6POoEaCfQoK3ovfbXVGClQQT/mN4DQUmH7yxwiBxXoP XDlx28fAbllauxidPBrYn9f/S7sCprqI8q30M9vN8JEXOv8kkjJwWRAJaEtaZb2bnr4g 6Xb8rnV4m5ltsvb4Yx8TZvhVFUyD1Wwz97MCFQNrSvCy6bIaD9HXu/rmQuKwDTv/LtvH wTUWixCuwO8NKeHAVo15Ip9JhR1xNDLqCramTy1gYAsg/C5rcG/0R4Fj7QNVLeWwmKNm oql9ADyGXSM2gY3Lz9So7RgOOCapqA8UrsAfqmnzBAWkzYyVRgoa1M2ix1ewYyKDvsPE eCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=95UoW8RYhndee+G6RKMxEukulPxcvIClkEGViviAtc4=; b=X3UQpp0/KkgwU+R2e5rBswm4Fd6jq9wDoF7jwf6QtHcCB61ekaHbg93SyDY9d4ED7T sks4xXd1dougXvWjjQOo0OIuAKAjMttELSncA1DksGrtsplkY10Wu1zHHkj8XMEPgNaS hS8s4UY4+/dh1b82rujStTmAlUnypp62omepncdhp85BEHIioiDPMBf2oAnh2LdgeuEc 21+JtT+Vkr2uxx5Ezlh9dpMZ5WYWQ9yNQ1jaB3pc4zXAsylxou9PbjgJvbMNl34AQTAR oBl2skKufChbwXzfVxZ0AiIVR3olia7e6RlrwE5JHwMrlXa/Qo5Eh6KW+2LZYijVDjKU UF1Q== X-Gm-Message-State: AFeK/H1YZ9DbvU+1jjZGUSPxNhSEWASbzJRxpJGzC1D0w639dtk89Px99ESacjQrxknEd09px9/JxpW77sTYwA== X-Received: by 10.36.51.18 with SMTP id k18mr4135649itk.41.1490293502142; Thu, 23 Mar 2017 11:25:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.143.28 with HTTP; Thu, 23 Mar 2017 11:25:01 -0700 (PDT) In-Reply-To: References: <1467BA7D-F34A-4F7B-9BC7-54B55ECF256A@occamsmachete.com> From: Marius Rabenarivo Date: Thu, 23 Mar 2017 22:25:01 +0400 Message-ID: Subject: Re: Need a Suggessations To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113f64a2ce7398054b69fec4 archived-at: Thu, 23 Mar 2017 18:25:13 -0000 --001a113f64a2ce7398054b69fec4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable See below an example *.* It seems you copied the content twice in fact *#!/usr/bin/env bash## Copy this file as pio-env.sh and edit it for your site's configuration.## Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. See the NOTICE file distributed with# this work for additional information regarding copyright ownership.# The ASF licenses this file to You under the Apache License, Version 2.0# (the "License"); you may not use this file except in compliance with# the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0 ## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.## PredictionIO Main Configuration## This section controls core behavior of PredictionIO. It is very likely that# you need to change these to fit your site.# SPARK_HOME: Apache Spark is a hard dependency and must be configured.SPARK_HOME=3D$PIO_HOME/vendors/spark-1.5.1-bin-hadoop2.6POSTGRES= _JDBC_DRIVER=3D$PIO_HOME/lib/postgresql-9.4-1204.jdbc41.jarMYSQL_JDBC_DRIVE= R=3D$PIO_HOME/lib/mysql-connector-java-5.1.37.jar# ES_CONF_DIR: You must configure this if you have advanced configuration for# your Elasticsearch setup.# ES_CONF_DIR=3D/opt/elasticsearch# HADOOP_CONF_DIR: You must configure this = if you intend to run PredictionIO# with Hadoop 2.# HADOOP_CONF_DIR=3D/opt/hadoop# HBASE_CONF_DIR: You must configure this if y= ou intend to run PredictionIO# with HBase on a remote cluster.# HBASE_CONF_DIR=3D$PIO_HOME/vendors/hbase-1.0.0/conf# Filesystem paths where PredictionIO uses as block storage.PIO_FS_BASEDIR=3D$HOME/.pio_storePIO_FS_ENGINESDIR=3D$PIO_FS_BASEDI= R/enginesPIO_FS_TMPDIR=3D$PIO_FS_BASEDIR/tmp# PredictionIO Storage Configuration## This section controls programs that make use of PredictionIO's built-in# storage facilities. Default values are shown below.## For more information on storage configuration please refer to# http://predictionio.incubator.apache.org/system/anotherdatastore/ # Storage Repositories# Default is to use PostgreSQLPIO_STORAGE_REPOSITORIES_METADATA_NAME=3Dpio_metaPIO_STORAGE_REPO= SITORIES_METADATA_SOURCE=3DMYSQLPIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dp= io_eventPIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DMYSQLPIO_STORAGE_REPOSI= TORIES_MODELDATA_NAME=3Dpio_modelPIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE= =3DMYSQL# Storage Data Sources# PostgreSQL Default Settings# Please change "pio" to your database name in PIO_STORAGE_SOURCES_PGSQL_URL# Please change PIO_STORAGE_SOURCES_PGSQL_USERNAME and# PIO_STORAGE_SOURCES_PGSQL_PASSWORD accordingly#PIO_STORAGE_SOURCES_PGSQL_TYPE=3Djdbc#PIO_STORAGE_SOURCES_PGSQL= _URL=3Djdbc:postgresql://localhost/pio#PIO_STORAGE_SOURCES_PGSQL_USERNAME= =3Dpio#PIO_STORAGE_SOURCES_PGSQL_PASSWORD=3Dpio# MySQL Example PIO_STORAGE_SOURCES_MYSQL_TYPE=3Djdbc PIO_STORAGE_SOURCES_MYSQL_URL=3Djdbc:mysql://localhost/pio PIO_STORAGE_SOURCES_MYSQL_USERNAME=3Dpio PIO_STORAGE_SOURCES_MYSQL_PASSWORD=3Dpio# Elasticsearch Example# PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=3Delasticsearch# PIO_STORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=3D# PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=3Dlocalhost# PIO_STORAGE_SOURCES_ELASTICSEARCH_PORTS=3D9300# PIO_STORAGE_SOURCES_ELASTICSEARCH_HOME=3D$PIO_HOME/vendors/elasticsearch-1.= 4.4# Local File System ExamplePIO_STORAGE_SOURCES_LOCALFS_TYPE=3DlocalfsPIO_STORAGE_SOURCES_LOCALF= S_PATH=3D$PIO_FS_BASEDIR/models# HBase Example# PIO_STORAGE_SOURCES_HBASE_TYPE=3Dhbase# PIO_STORAGE_SOURCES_HBASE_HOME=3D$PIO_HOME/vendors/hbase-1.0.0* 2017-03-23 22:06 GMT+04:00 Ambuj Sharma : > check your pio-env.sh. Every configuration is copied twice > > > Thanks and Regards > Ambuj Sharma > Sunrise may late, But Morning is sure..... > Team ML > Betaout > > On Thu, Mar 23, 2017 at 11:26 PM, Vaghawan Ojha > wrote: > >> Still got the same unfortunately: >> >> this is pio status >> >> ionIO-0.10.0-incubating/bin/pio status >> [INFO] [Console$] Inspecting PredictionIO... >> [INFO] [Console$] PredictionIO 0.10.0-incubating is installed at >> /var/www/apache-predictionio-0.10.0-incubating/PredictionIO- >> 0.10.0-incubating >> [INFO] [Console$] Inspecting Apache Spark... >> [INFO] [Console$] Apache Spark is installed at >> /var/www/apache-predictionio-0.10.0-incubating/PredictionIO- >> 0.10.0-incubating/vendors/spark-1.5.1-bin-hadoop2.6 >> [INFO] [Console$] Apache Spark 1.5.1 detected (meets minimum requirement >> of 1.3.0) >> [INFO] [Console$] Inspecting storage backend connections... >> [INFO] [Storage$] Verifying Meta Data Backend (Source: PGSQL)... >> [ERROR] [Console$] Unable to connect to all storage backends >> successfully. The following shows the error message from the storage >> backend. >> [ERROR] [Console$] FATAL: password authentication failed for user "pio" >> (org.postgresql.util.PSQLException) >> [ERROR] [Console$] Dumping configuration of initialized storage backend >> sources. Please make sure they are correct. >> [ERROR] [Console$] Source Name: PGSQL; Type: jdbc; Configuration: URL -> >> jdbc:postgresql://localhost/pio, PASSWORD -> pio, TYPE -> jdbc, USERNAME >> -> pio >> >> and I've attacted the pio-env.sh. Any help? >> >> On Thu, Mar 23, 2017 at 11:37 PM, Ambuj Sharma >> wrote: >> >>> copy pio-env.sh.template to pio-env.sh. >>> >>> >>> Thanks and Regards >>> Ambuj Sharma >>> Sunrise may late, But Morning is sure..... >>> Team ML >>> Betaout >>> >>> On Thu, Mar 23, 2017 at 11:13 PM, Vaghawan Ojha >>> wrote: >>> >>>> There is no file called pio-env.sh however there is >>>> pio-env.sh.template. Are they the same? >>>> >>>> On Thu, Mar 23, 2017 at 11:11 PM, Marius Rabenarivo < >>>> mariusrabenarivo@gmail.com> wrote: >>>> >>>>> # Default is to use PostgreSQL >>>>> PIO_STORAGE_REPOSITORIES_METADATA_NAME=3Dpio_meta >>>>> PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=3DMYSQL >>>>> >>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dpio_event >>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DMYSQL >>>>> >>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=3Dpio_model >>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=3DMYSQL >>>>> >>>>> >>>>> 2017-03-23 21:24 GMT+04:00 Marius Rabenarivo < >>>>> mariusrabenarivo@gmail.com>: >>>>> >>>>>> You have to change the config in pio-env.sh to use MYSQL instead of >>>>>> PGSQL >>>>>> >>>>>> In the pasted response above I can read Verifying Meta Data Backend >>>>>> (Source: PGSQL)... >>>>>> >>>>>> 2017-03-23 21:19 GMT+04:00 Vaghawan Ojha : >>>>>> >>>>>>> Yes following is the response of pio status >>>>>>> >>>>>>> sudo PredictionIO-0.10.0-incubating/bin/pio status >>>>>>> [INFO] [Console$] Inspecting PredictionIO... >>>>>>> [INFO] [Console$] PredictionIO 0.10.0-incubating is installed at >>>>>>> /home/ekbana-php/Downloads/apache-predictionio-0.10.0-incuba >>>>>>> ting/PredictionIO-0.10.0-incubating >>>>>>> [INFO] [Console$] Inspecting Apache Spark... >>>>>>> [INFO] [Console$] Apache Spark is installed at >>>>>>> /home/ekbana-php/Downloads/apache-predictionio-0.10.0-incuba >>>>>>> ting/PredictionIO-0.10.0-incubating/vendors/spark-1.5.1-bin- >>>>>>> hadoop2.6 >>>>>>> [INFO] [Console$] Apache Spark 1.5.1 detected (meets minimum >>>>>>> requirement of 1.3.0) >>>>>>> [INFO] [Console$] Inspecting storage backend connections... >>>>>>> [INFO] [Storage$] Verifying Meta Data Backend (Source: PGSQL)... >>>>>>> [ERROR] [Console$] Unable to connect to all storage backends >>>>>>> successfully. The following shows the error message from the storag= e >>>>>>> backend. >>>>>>> [ERROR] [Console$] FATAL: password authentication failed for user >>>>>>> "pio" (org.postgresql.util.PSQLException) >>>>>>> [ERROR] [Console$] Dumping configuration of initialized storage >>>>>>> backend sources. Please make sure they are correct. >>>>>>> [ERROR] [Console$] Source Name: PGSQL; Type: jdbc; Configuration: >>>>>>> URL -> jdbc:postgresql://localhost/pio, PASSWORD -> pio, TYPE -> >>>>>>> jdbc, USERNAME -> pio >>>>>>> >>>>>>> Which says that postgresql authentication failed. Ok I'm trying to >>>>>>> go for postgresql this time instead of mysql, I don't wanna lose mu= ch time >>>>>>> fighting with this two sql. I can use any of them, it just need to = work. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> On Thu, Mar 23, 2017 at 11:00 PM, Marius Rabenarivo < >>>>>>> mariusrabenarivo@gmail.com> wrote: >>>>>>> >>>>>>>> How do you start the services? >>>>>>>> >>>>>>>> The is a script named pio-start-all in $PIO_HOME/bin to do it you >>>>>>>> can check it to see what you have to start before using pio comman= ds. >>>>>>>> >>>>>>>> Try doing pio status to check if all required services are running >>>>>>>> properly. >>>>>>>> >>>>>>>> 2017-03-23 21:04 GMT+04:00 Vaghawan Ojha : >>>>>>>> >>>>>>>>> Yes that's what I wanted to do, but couldn't come out to configur= e >>>>>>>>> it. No matter how much I change in the pio-env.sh.template, when = I start >>>>>>>>> the event server it always pops up with the posgresql error of >>>>>>>>> authentication. >>>>>>>>> >>>>>>>>> I even tried with posgresql and it shows the same things. Party >>>>>>>>> something to do with my dumbness I guess. >>>>>>>>> >>>>>>>>> Thank you very much Marius. >>>>>>>>> >>>>>>>>> On Thu, Mar 23, 2017 at 10:39 PM, Marius Rabenarivo < >>>>>>>>> mariusrabenarivo@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> You can use MySQL as event store but you need ElasticSearch to >>>>>>>>>> store the model metadata and index used by UR Engine. >>>>>>>>>> >>>>>>>>>> 2017-03-23 20:25 GMT+04:00 Vaghawan Ojha = : >>>>>>>>>> >>>>>>>>>>> But I wanted to use mysql as default. Should I switch it? I can >>>>>>>>>>> do that, but I was just wondering since the documentation says = that I could >>>>>>>>>>> use mysql. >>>>>>>>>>> >>>>>>>>>>> On Thu, Mar 23, 2017 at 10:03 PM, Marius Rabenarivo < >>>>>>>>>>> mariusrabenarivo@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> I think pio-start-all start PostgreSQL by default >>>>>>>>>>>> >>>>>>>>>>>> 2017-03-23 20:16 GMT+04:00 Vaghawan Ojha >>>>>>>>>>> >: >>>>>>>>>>>> >>>>>>>>>>>>> Hi, >>>>>>>>>>>>> >>>>>>>>>>>>> Yes I did that but still I get the same output, it's weird. >>>>>>>>>>>>> >>>>>>>>>>>>> Thanks >>>>>>>>>>>>> >>>>>>>>>>>>> On Thu, Mar 23, 2017 at 10:00 PM, Marius Rabenarivo < >>>>>>>>>>>>> mariusrabenarivo@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> You have to change this section >>>>>>>>>>>>>> >>>>>>>>>>>>>> # Default is to use PostgreSQL >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_METADATA_NAME=3Dpio_meta >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=3DPGSQL >>>>>>>>>>>>>> >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dpio_event >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DPGSQL >>>>>>>>>>>>>> >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=3Dpio_model >>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=3DPGSQL >>>>>>>>>>>>>> >>>>>>>>>>>>>> Put MYSQL in place of PGSQL >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2017-03-23 20:07 GMT+04:00 Vaghawan Ojha < >>>>>>>>>>>>>> vaghawan781@gmail.com>: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi, Thank you! >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I came into further more confusion here, actually I >>>>>>>>>>>>>>> installed prediction IO version 0.10.0 from here >>>>>>>>>>>>>>> http://predictionio.incubator.apache.org/install/instal >>>>>>>>>>>>>>> l-sourcecode/ and have been fighting to configure mysql as >>>>>>>>>>>>>>> a storage in my local linux machine. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> But I see there is a different documentation of installing >>>>>>>>>>>>>>> in actionml website, I'm not sure for which I would have to= go. Currently >>>>>>>>>>>>>>> there is no "pio-env.sh". file inside conf folder however >>>>>>>>>>>>>>> there is pio-env.sh.template file. I commented the pgsql se= ction and >>>>>>>>>>>>>>> uncommented the mysql section with the username and passwor= d, but whenever >>>>>>>>>>>>>>> I do . sudo PredictionIO-0.10.0-incubating/bin/pio >>>>>>>>>>>>>>> eventserver there seems to be an error that says that authe= ntication failed >>>>>>>>>>>>>>> with pgsql, however I don't want to use pgsql. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> # Storage Repositories >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> # Default is to use PostgreSQL >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_METADATA_NAME=3Dpio_meta >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=3DPGSQL >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dpio_event >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DPGSQL >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=3Dpio_model >>>>>>>>>>>>>>> PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=3DPGSQL >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> # Storage Data Sources >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> # PostgreSQL Default Settings >>>>>>>>>>>>>>> # Please change "pio" to your database name in >>>>>>>>>>>>>>> PIO_STORAGE_SOURCES_PGSQL_URL >>>>>>>>>>>>>>> # Please change PIO_STORAGE_SOURCES_PGSQL_USERNAME and >>>>>>>>>>>>>>> # PIO_STORAGE_SOURCES_PGSQL_PASSWORD accordingly >>>>>>>>>>>>>>> #PIO_STORAGE_SOURCES_PGSQL_TYPE=3Djdbc >>>>>>>>>>>>>>> #PIO_STORAGE_SOURCES_PGSQL_URL=3Djdbc:postgresql://localhos= t/p >>>>>>>>>>>>>>> io >>>>>>>>>>>>>>> #PIO_STORAGE_SOURCES_PGSQL_USERNAME=3Dpio >>>>>>>>>>>>>>> #PIO_STORAGE_SOURCES_PGSQL_PASSWORD=3Dpio >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> # MySQL Example >>>>>>>>>>>>>>> PIO_STORAGE_SOURCES_MYSQL_TYPE=3Djdbc >>>>>>>>>>>>>>> PIO_STORAGE_SOURCES_MYSQL_URL=3Djdbc:mysql://localhost/pio >>>>>>>>>>>>>>> PIO_STORAGE_SOURCES_MYSQL_USERNAME=3Droot >>>>>>>>>>>>>>> PIO_STORAGE_SOURCES_MYSQL_PASSWORD=3Droot >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> This is how the pio-env.sh.template looks like. And again >>>>>>>>>>>>>>> when I visited the actionml site, it suggests that I do hav= e to have >>>>>>>>>>>>>>> ELASTICSEARCH. but prediction.io site doesn't tells us the >>>>>>>>>>>>>>> same. Which one should I follow and where would I find the = current working >>>>>>>>>>>>>>> version of installation guide. I actually wanaa use >>>>>>>>>>>>>>> prediction.io in my production shortly after I implemented >>>>>>>>>>>>>>> in local. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Please help me, thank you very much for your help, I >>>>>>>>>>>>>>> appreciate it so much. >>>>>>>>>>>>>>> Vaghawan >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, Mar 23, 2017 at 9:27 PM, Pat Ferrel < >>>>>>>>>>>>>>> pat@occamsmachete.com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Since PIO has moved to Apache, the namespace of PIO code >>>>>>>>>>>>>>>> changed and so all templates need to be updated. None of t= he ones in >>>>>>>>>>>>>>>> https://github.com/PredictionIO/ >>>>>>>>>>>>>>>> will >>>>>>>>>>>>>>>> work with Apache PIO. For the upgraded UR see: >>>>>>>>>>>>>>>> https://github.com/actionml/universal-recommender Docs for >>>>>>>>>>>>>>>> the UR are here: http://actionml.com/docs/ur >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Also look on the Template gallery page here for a >>>>>>>>>>>>>>>> description of template status. Some have not been moved t= o the new >>>>>>>>>>>>>>>> namespace and converted to run with PIO but this is pretty= easy to do >>>>>>>>>>>>>>>> yourself. http://predictionio. >>>>>>>>>>>>>>>> incubator.apache.org/gallery/template-gallery/ >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> user_id, product_id and purchase_date is all you need to >>>>>>>>>>>>>>>> use any recommender. If you plan to gather other events in= the future, use >>>>>>>>>>>>>>>> the UR. As far as item or user based recommendations, the = UR will give >>>>>>>>>>>>>>>> either based on the query with the same data and model, as= some others will >>>>>>>>>>>>>>>> do. The UR allows you to mix both types in a single query,= which may be >>>>>>>>>>>>>>>> useful with small amounts of individual user data. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Also the accepted wisdom about this it to put item-based >>>>>>>>>>>>>>>> recs on item detail pages, and user-based recs elsewhere, = when you don=E2=80=99t >>>>>>>>>>>>>>>> have an item to base recs on, or in another placement on a= ny page. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> You can have many different placements of recs in any page >>>>>>>>>>>>>>>> by changing the queries. This is how Netflix gets rows and= rows of >>>>>>>>>>>>>>>> specialized recs for different things all based on the sam= e data. The UR >>>>>>>>>>>>>>>> queries are quite flexible. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Mar 23, 2017, at 7:08 AM, Vaghawan Ojha < >>>>>>>>>>>>>>>> vaghawan781@gmail.com> wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I've been trying to deploy a recommendation system using >>>>>>>>>>>>>>>> https://github.com/PredictionIO/template-scala-paralle >>>>>>>>>>>>>>>> l-universal-recommendation. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I've purchase history of user something like this: >>>>>>>>>>>>>>>> user_id, product_id and purchase_date, so I will be using >>>>>>>>>>>>>>>> user_id and product_id to determine the recommendation. I'= m not sure if I >>>>>>>>>>>>>>>> would be able to customize the default even parameter. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Do you have any suggestions like which template would be >>>>>>>>>>>>>>>> more suitable for my problem. I don't have data like ratin= g or view state, >>>>>>>>>>>>>>>> I only have data about user and product they purchased. I = need something >>>>>>>>>>>>>>>> like item based similarity as well as user based item simi= larity. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Any help would be great >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Thank you >>>>>>>>>>>>>>>> Vaghawan >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > --001a113f64a2ce7398054b69fec4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
See below an example.

It seems yo= u copied the content twice in fact

#!/= usr/bin/env bash
#
# Copy this file as pio-env.sh and edit it for you= r site's configuration.
#
# Licensed to the Apache Software Found= ation (ASF) under one or more
# contributor license agreements.=C2=A0 Se= e the NOTICE file distributed with
# this work for additional informatio= n regarding copyright ownership.
# The ASF licenses this file to You und= er the Apache License, Version 2.0
# (the "License"); you may = not use this file except in compliance with
# the License.=C2=A0 You may= obtain a copy of the License at
#
#=C2=A0=C2=A0=C2=A0 http://www.apache.org/licenses/LIC= ENSE-2.0
#
# Unless required by applicable law or agreed to in wr= iting, software
# distributed under the License is distributed on an &qu= ot;AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, ei= ther express or implied.
# See the License for the specific language gov= erning permissions and
# limitations under the License.
#

# Pr= edictionIO Main Configuration
#
# This section controls core behavior= of PredictionIO. It is very likely that
# you need to change these to f= it your site.

# SPARK_HOME: Apache Spark is a hard dependency and mu= st be configured.
SPARK_HOME=3D$PIO_HOME/vendors/spark-1.5.1-bin-hadoop2= .6

POSTGRES_JDBC_DRIVER=3D$PIO_HOME/lib/postgresql-9.4-1204.jdbc41.j= ar
MYSQL_JDBC_DRIVER=3D$PIO_HOME/lib/mysql-connector-java-5.1.37.jar
=
# ES_CONF_DIR: You must configure this if you have advanced configurati= on for
#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 your Elasticsearch setup.
# ES_CONF_DIR=3D/opt/elasticse= arch

# HADOOP_CONF_DIR: You must configure this if you intend to run= PredictionIO
#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 with Hadoop 2.
# HADOOP_CO= NF_DIR=3D/opt/hadoop

# HBASE_CONF_DIR: You must configure this if yo= u intend to run PredictionIO
#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 with HBase on a remo= te cluster.
# HBASE_CONF_DIR=3D$PIO_HOME/vendors/hbase-1.0.0/conf
# Filesystem paths where PredictionIO uses as block storage.
PIO_FS_BAS= EDIR=3D$HOME/.pio_store
PIO_FS_ENGINESDIR=3D$PIO_FS_BASEDIR/engines
P= IO_FS_TMPDIR=3D$PIO_FS_BASEDIR/tmp

# PredictionIO Storage Configurat= ion
#
# This section controls programs that make use of PredictionIO&= #39;s built-in
# storage facilities. Default values are shown below.
= #
# For more information on storage configuration please refer to
# <= a href=3D"http://predictionio.incubator.apache.org/system/anotherdatastore/= ">http://predictionio.incubator.apache.org/system/anotherdatastore/
=
# Storage Repositories

# Default is to use PostgreSQL
PIO_STO= RAGE_REPOSITORIES_METADATA_NAME=3Dpio_meta
PIO_STORAGE_REPOSITORIES_META= DATA_SOURCE=3DMYSQL

PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dpio_ev= ent
PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DMYSQL

PIO_STORAGE= _REPOSITORIES_MODELDATA_NAME=3Dpio_model
PIO_STORAGE_REPOSITORIES_MODELD= ATA_SOURCE=3DMYSQL

# Storage Data Sources

# PostgreSQL Defaul= t Settings
# Please change "pio" to your database name in PIO_= STORAGE_SOURCES_PGSQL_URL
# Please change PIO_STORAGE_SOURCES_PGSQL_USER= NAME and
# PIO_STORAGE_SOURCES_PGSQL_PASSWORD accordingly
#PIO_STORAG= E_SOURCES_PGSQL_TYPE=3Djdbc
#PIO_STORAGE_SOURCES_PGSQL_URL=3Djdbc:postgr= esql://localhost/pio
#PIO_STORAGE_SOURCES_PGSQL_USERNAME=3Dpio
#PIO_S= TORAGE_SOURCES_PGSQL_PASSWORD=3Dpio

# MySQL Example
=C2=A0PIO_STO= RAGE_SOURCES_MYSQL_TYPE=3Djdbc
=C2=A0PIO_STORAGE_SOURCES_MYSQL_URL=3Djdb= c:mysql://localhost/pio
=C2=A0PIO_STORAGE_SOURCES_MYSQL_USERNAME=3Dpio=C2=A0PIO_STORAGE_SOURCES_MYSQL_PASSWORD=3Dpio

# Elasticsearch Exa= mple
# PIO_STORAGE_SOURCES_ELASTICSEARCH_TYPE=3Delasticsearch
# PIO_S= TORAGE_SOURCES_ELASTICSEARCH_CLUSTERNAME=3D<elasticsearch_cluster_name&g= t;
# PIO_STORAGE_SOURCES_ELASTICSEARCH_HOSTS=3Dlocalhost
# PIO_STORAG= E_SOURCES_ELASTICSEARCH_PORTS=3D9300
# PIO_STORAGE_SOURCES_ELASTICSEARCH= _HOME=3D$PIO_HOME/vendors/elasticsearch-1.4.4

# Local File System Ex= ample
PIO_STORAGE_SOURCES_LOCALFS_TYPE=3Dlocalfs
PIO_STORAGE_SOURCES_= LOCALFS_PATH=3D$PIO_FS_BASEDIR/models

# HBase Example
# PIO_STORA= GE_SOURCES_HBASE_TYPE=3Dhbase
# PIO_STORAGE_SOURCES_HBASE_HOME=3D$PIO_HO= ME/vendors/hbase-1.0.0


2017-03-23 22:06 GMT+04:00 Ambuj= Sharma <ambuj@getamplify.com>:
check your pio-env.sh. Every configuration is cop= ied twice


Thanks and Regards
Ambuj Sharma
Sunrise may late, But Morning is sure..= ...
Team ML
Betaout
<= /div>

On Thu, Mar 23= , 2017 at 11:26 PM, Vaghawan Ojha <vaghawan781@gmail.com> wrote:
Still got the s= ame unfortunately:=C2=A0

this is pio status
ionIO-0.10.0-incubating/bin/pio status
[INFO] [Console$] Inspecting PredictionIO...
[INFO] [Co= nsole$] PredictionIO 0.10.0-incubating is installed at /var/www/apache-pred= ictionio-0.10.0-incubating/PredictionIO-0.10.0-incubating
[INFO] [Console$] Inspecting Apache Spark...
[INF= O] [Console$] Apache Spark is installed at /var/www/apache-predictionio-0.10.0-incubating/PredictionIO-0.10.0-incubating/vendors/spark-= 1.5.1-bin-hadoop2.6
[INFO] [Console$] Apache Spark 1.5.1 de= tected (meets minimum requirement of 1.3.0)
[INFO] [Console$] Ins= pecting storage backend connections...
[INFO] [Storage$] Verifyin= g Meta Data Backend (Source: PGSQL)...
[ERROR] [Console$] Unable = to connect to all storage backends successfully. The following shows the er= ror message from the storage backend.
[ERROR] [Console$] FATAL: p= assword authentication failed for user "pio" (org.postgresql.util= .PSQLException)
[ERROR] [Console$] Dumping configuration of = initialized storage backend sources. Please make sure they are correct.
[ERROR] [Console$] Source Name: PGSQL; Type: jdbc; Configuration: UR= L -> jdbc:postgresql://localhost/pio, PASSWORD -> pio, TYPE ->= ; jdbc, USERNAME -> pio

and I'= ve attacted the pio-env.sh. Any help?

On = Thu, Mar 23, 2017 at 11:37 PM, Ambuj Sharma <ambuj@getamplify.com= > wrote:
copy = pio-env.sh.template to pio-env.sh.


= Thanks and Regards
Ambuj= Sharma
Sunrise may late, But Morning is sure.....
Team ML=
Betaout
<= div>

On Thu, Mar 23, 2017 at 11:13 PM, Vaghawan O= jha <vaghawan781@gmail.com> wrote:
There is no file called pio-env.sh however = there is pio-env.sh.template. Are they the same?=C2=A0

On Thu, Mar 23, 2017 at 11:11 PM, Marius Rabenarivo <mariusrabenarivo@gmail.com> wrote:
# Default is to use PostgreSQL
PIO_STORAGE_= REPOSITORIES_METADATA_NAME=3Dpio_meta
PIO_STORAGE_REP= OSITORIES_METADATA_SOURCE=3DMYSQL

PIO_STORAGE= _REPOSITORIES_EVENTDATA_NAME=3Dpio_event
PIO_STORAGE_REPOSIT= ORIES_EVENTDATA_SOURCE=3DMYSQL

PIO_STORAGE_RE= POSITORIES_MODELDATA_NAME=3Dpio_model
PIO_STORAGE_REP= OSITORIES_MODELDATA_SOURCE=3DMYSQL


2017-03-23 21:24 GMT+04:00 Marius Rabenarivo <mariusrabenarivo@gmail.com>:
You have to change the config in pio-env.sh t= o use MYSQL instead of PGSQL

In the pasted response above I ca= n read Verifying Meta Data Backend (Source: PGSQL)...

2017-03-= 23 21:19 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com>= :
Yes following is the r= esponse of pio status

sudo PredictionIO-0.10.0-incu= bating/bin/pio status
[INFO] [Console$] Inspecting Predictio= nIO...
[INFO] [Console$] PredictionIO 0.10.0-incubating is instal= led at /home/ekbana-php/Downloads/apache-predictionio-0.10.0-incubating/PredictionIO-0.10.0-incubating
[INFO] [Console$] Insp= ecting Apache Spark...
[INFO] [Console$] Apache Spark is installe= d at /home/ekbana-php/Downloads/apache-predictionio-0.10.0-incuba= ting/PredictionIO-0.10.0-incubating/vendors/spark-1.5.1-bin-hadoo= p2.6
[INFO] [Console$] Apache Spark 1.5.1 detected (meets minimum= requirement of 1.3.0)
[INFO] [Console$] Inspecting storage backe= nd connections...
[INFO] [Storage$] Verifying Meta Data Backend (= Source: PGSQL)...
[ERROR] [Console$] Unable to connect to all sto= rage backends successfully. The following shows the error message from the = storage backend.
[ERROR] [Console$] FATAL: password authenticatio= n failed for user "pio" (org.postgresql.util.PSQLException)<= /div>
[ERROR] [Console$] Dumping configuration of initialized storage b= ackend sources. Please make sure they are correct.
[ERROR] [Conso= le$] Source Name: PGSQL; Type: jdbc; Configuration: URL -> jdbc:postgres= ql://localhost/pio, PASSWORD -> pio, TYPE -> jdbc, USERNAME ->= ; pio

Which says that postgresql authenticat= ion failed. Ok I'm trying to go for postgresql this time instead of mys= ql, I don't wanna lose much time fighting with this two sql. I can use = any of them, it just need to work.

Thanks

On Thu, Mar 23, 2017 at 11:00 PM, Marius Rabenarivo <mariusrabenarivo@gmail.com> wrote:
How do you start the services?

=
The is a script named pio-start-all in $PIO_HOME/bin to do it you can= check it to see what you have to start before using pio commands.

<= /div>Try doing pio status to check if all required services are running pro= perly.

2017-03-23 21:04 GMT+04:00 Vaghawan Ojha= <vaghawan781@gmail.com>:
Yes that's what I wanted to do, but couldn't c= ome out to configure it. No matter how much I change in the pio-env.sh.temp= late, when I start the event server it always pops up with the posgresql er= ror of authentication.=C2=A0

I even tried with posgresql= and it shows the same things. Party something to do with my dumbness I gue= ss.=C2=A0

Thank you very much Marius.=C2=A0
<= img src=3D"http://t.sidekickopen69.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9= gXrN7sKj6v5dpCFVdnscn3M2z18W63Bb_s3LvrVvW3ZBnHX1k1H6H0?si=3D511028666735001= 6&pi=3D979c9299-09ee-41b7-a4af-f3524b413823" style=3D"display:none!impo= rtant" height=3D"1" width=3D"1">

<= div class=3D"gmail_quote">On Thu, Mar 23, 2017 at 10:39 PM, Marius Rabenari= vo <mariusrabenarivo@gmail.com> wrote:
You can use MySQL as event store but= you need ElasticSearch to store the model metadata and index used by UR En= gine.

2017-03-23 20:25 GMT+04:00 = Vaghawan Ojha <vaghawan781@gmail.com>:
But I wanted to use mysql as default. Sho= uld I switch it? I can do that, but I was just wondering since the document= ation says that I could use mysql.=C2=A0

On Thu, Mar 23, 2017 at 10:03 PM, Marius Rabenarivo &l= t;mariusrab= enarivo@gmail.com> wrote:
<= div dir=3D"ltr">I think pio-start-all start PostgreSQL by default
=

2017-03-23 20:16 GMT+04:00 Vaghawa= n Ojha <vaghawan781@gmail.com>:
Hi,

Yes I did that but still = I get the same output, it's weird.=C2=A0

Thank= s

On Thu, Mar 23, 2017 = at 10:00 PM, Marius Rabenarivo <mariusrabenarivo@gmail.com>= ; wrote:
You have= to change this section

# Default is to use PostgreSQL
PIO_STORAGE_REPOSITORIES_METADATA_NAME=3Dpio_meta
PI= O_STORAGE_REPOSITORIES_METADATA_SOURCE=3DPGSQL

PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=3Dpio_event
PIO_ST= ORAGE_REPOSITORIES_EVENTDATA_SOURCE=3DPGSQL

P= IO_STORAGE_REPOSITORIES_MODELDATA_NAME=3Dpio_model
PI= O_STORAGE_REPOSITORIES_MODELDATA_SOURCE=3DPGSQL

Put MYSQL in pl= ace of PGSQL

2017-03-23 20:07 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com>:
Hi, Thank= you!=C2=A0


But I see t= here is a different documentation of installing in actionml website, I'= m not sure for which I would have to go. Currently there is no "pio-env.sh". =C2=A0file inside conf folder however there is pio-env.sh.template file= . I commented the pgsql section and uncommented the mysql section with the = username and password, but whenever I do .=C2=A0sudo PredictionIO-0.10.0-in= cubating/bin/pio eventserver there seems to be an error that says that= authentication failed with pgsql, however I don't want to use pgsql.= =C2=A0

# Storage Repositories

<= /div>
# Default is to use PostgreSQL
PIO_STORAGE_REPOSITORIES= _METADATA_NAME=3Dpio_meta
PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=3DPGSQL

PIO_STORAGE_REPOSITORIES_EVENT= DATA_NAME=3Dpio_event
PIO_STORAGE_REPOSITORIES_EVENTDAT= A_SOURCE=3DPGSQL

PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=3Dpio_model
PIO_STORAGE_REPOSITORIES_MODELDATA_S= OURCE=3DPGSQL

# Storage Data Sources
# PostgreSQL Default Settings
# Please change "p= io" to your database name in PIO_STORAGE_SOURCES_PGSQL_URL
#= Please change PIO_STORAGE_SOURCES_PGSQL_USERNAME and
# PIO_= STORAGE_SOURCES_PGSQL_PASSWORD accordingly
#PIO_STORAGE_SOUR= CES_PGSQL_TYPE=3Djdbc
#PIO_STORAGE_SOURCES_PGSQL_URL=3D= jdbc:postgresql://localhost/pio
#PIO_STORAGE_SOURCES_PGSQL_U= SERNAME=3Dpio
#PIO_STORAGE_SOURCES_PGSQL_PASSWORD=3Dpio=

# MySQL Example
=C2=A0PIO_STORAGE_SOURC= ES_MYSQL_TYPE=3Djdbc
=C2=A0PIO_STORAGE_SOURCES_MYSQL_URL=3Djdbc:mysql://localhost/pio
=C2=A0PIO_STORAGE_SOURCES_MYSQL_US= ERNAME=3Droot
=C2=A0PIO_STORAGE_SOURCES_MYSQL_PASSWORD= =3Droot


This is how the pio-e= nv.sh.template looks like. And again when I visited the actionml site, it s= uggests that I do have to have ELASTICSEARCH. but prediction.io site doesn't tells us the s= ame. Which one should I follow and where would I find the current working v= ersion of installation guide. I actually wanaa use prediction.io in my production shortly after= I implemented in local.=C2=A0

Please help me, tha= nk you very much for your help, I appreciate it so much.
Vaghawan=


On Thu, Mar 23, 2017 at 9:27 PM, Pat Ferrel <pat@occamsmachete.com= > wrote:
Since PIO has moved to Apache, the namespace of PIO code = changed and so all templates need to be updated. None of the ones in=C2=A0= =C2=A0https://github.com/Predictio= nIO/=C2=A0will work with Apache PIO. For the upgraded UR see:=C2=A0https://github.com/actionml/universal-recommender Docs for the UR= are here:=C2=A0h= ttp://actionml.com/docs/ur=C2=A0

Also look on t= he Template gallery page here for a description of template status. Some ha= ve not been moved to the new namespace and converted to run with PIO but th= is is pretty easy to do yourself.=C2=A0http://predict= ionio.incubator.apache.org/gallery/template-gallery/
=
user_id, product_id and purchase_date is all you need to use= any recommender. If you plan to gather other events in the future, use the= UR. As far as item or user based recommendations, the UR will give either = based on the query with the same data and model, as some others will do. Th= e UR allows you to mix both types in a single query, which may be useful wi= th small amounts of individual user data.

Also the= accepted wisdom about this it to put item-based recs on item detail pages,= and user-based recs elsewhere, when you don=E2=80=99t have an item to base= recs on, or in another placement on any page.

You= can have many different placements of recs in any page by changing the que= ries. This is how Netflix gets rows and rows of specialized recs for differ= ent things all based on the same data. The UR queries are quite flexible.


=
On Mar 23, 2017, at 7:08 AM, Vaghawan Ojha <vaghawan781@gmail.com> wrote:
Hi,=C2=A0

I've been try= ing to deploy a recommendation system using=C2=A0https://github.com/PredictionIO/template-scala-parallel-universal-recommendation.=C2=A0

I've pu= rchase history of user something like this:=C2=A0
user_id, produc= t_id and purchase_date, so I will be using user_id and product_id to determ= ine the recommendation. I'm not sure if I would be able to customize th= e default even parameter.=C2=A0

Do you have any su= ggestions like which template would be more suitable for my problem. I don&= #39;t have data like rating or view state, I only have data about user and = product they purchased. I need something like item based similarity as well= as user based item similarity.=C2=A0

Any help wou= ld be great

Thank you
Vaghawan

















--001a113f64a2ce7398054b69fec4--