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 25989200C40 for ; Thu, 23 Mar 2017 18:15:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 23CCB160B83; Thu, 23 Mar 2017 17:15:31 +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 C0D3D160B68 for ; Thu, 23 Mar 2017 18:15:29 +0100 (CET) Received: (qmail 55132 invoked by uid 500); 23 Mar 2017 17:15:27 -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 55122 invoked by uid 99); 23 Mar 2017 17:15:27 -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 17:15:27 +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 04BAA18495F for ; Thu, 23 Mar 2017 17:15:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.104 X-Spam-Level: X-Spam-Status: No, score=0.104 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, JMQ_TRACKER=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, 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 hYF49OUTnr4X for ; Thu, 23 Mar 2017 17:15:24 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B24625FAD2 for ; Thu, 23 Mar 2017 17:15:23 +0000 (UTC) Received: by mail-io0-f178.google.com with SMTP id z13so1481298iof.2 for ; Thu, 23 Mar 2017 10:15:23 -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=1quUM8pWfdTzaImMWpqIWvdBh9dmS17SuiL86iKm0xg=; b=sdEsNj2RrflbgJp4SoP10BOauLO1apf/I0t5T4cMfsatKxzw42NzfJa0Fxl0HHYXvB 5Sj/tqbKJy2x7PWpcl3XsbKiGHJ4e9xH93KzUNvH33y4nhwC0XrHpOm1Dc4dMVUKCuwW 48AVIptIvR1YL/DwahBU0UpCL4mj8KO4FD+92aUozsq2iSYfiQZG9bHgAysX44ekIRdq fYZ4354IVRZbEgWNM+kB2wSR7hTAy1wHRG+bILnk/H+KHo5bMudiehLzt2EZXTGbohuI jXypuSQVFsB9IaLJYTj1JDABEiIOQldfLhKIu5V4YsFsi/djnEyVqj8USu6ZY6Du3GxP MVdw== 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=1quUM8pWfdTzaImMWpqIWvdBh9dmS17SuiL86iKm0xg=; b=H5FzBjWveqPOLKvmbdV1NQx3Ql+gceUn8u+fOfLdGgIy9zjjEX1NQD88WORcCQzMpU nSEQDwLnuGRUFuzdkkT0nDda1YLKY6w1omc3zHfN+dcr6B/RW0t2cZ+oMIz4PoK81cZE nyVURozVFTIuoHL5zlP95clz27r6N5MCPQ6dqjr+gy8h/oWgySFE2Q/Lj2kQWSkOVrzN EuH4RGJ83s2h1J7tvOrF9keDFCy9v8fhZFJDhuFMF9VCFqu5LV6Ohb3FcOr4vPUbG4FE vqxrboOlhDZmK8wRRUaCRlRoba8WwTSlDSG4xozxUrj2TtI5BXf4wbQVGYlGBK10L/b/ LoDA== X-Gm-Message-State: AFeK/H1xfS9PewWeiQK3oAaxKT7zkRvpGHnGPAeE5cL+SXs011Itq+x7eZRza7Kn2fVMt+cMjz/1Dxu7KfJO4g== X-Received: by 10.107.147.67 with SMTP id v64mr4170031iod.120.1490289316796; Thu, 23 Mar 2017 10:15:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.143.28 with HTTP; Thu, 23 Mar 2017 10:15:16 -0700 (PDT) In-Reply-To: References: <1467BA7D-F34A-4F7B-9BC7-54B55ECF256A@occamsmachete.com> From: Marius Rabenarivo Date: Thu, 23 Mar 2017 21:15:16 +0400 Message-ID: Subject: Re: Need a Suggessations To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c0546045723c3054b690579 archived-at: Thu, 23 Mar 2017 17:15:31 -0000 --94eb2c0546045723c3054b690579 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. 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 configure it. No > matter how much I change in the pio-env.sh.template, when I start the eve= nt > 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 : >>>>>> >>>>>>> Hi, Thank you! >>>>>>> >>>>>>> I came into further more confusion here, actually I installed >>>>>>> prediction IO version 0.10.0 from here http://predictionio.incub >>>>>>> ator.apache.org/install/install-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. Curren= tly >>>>>>> there is no "pio-env.sh". file inside conf folder however there is >>>>>>> pio-env.sh.template file. I commented the pgsql section and uncomme= nted the >>>>>>> mysql section with the username and password, but whenever I do . s= udo >>>>>>> PredictionIO-0.10.0-incubating/bin/pio eventserver there seems to >>>>>>> be an error that says that authentication failed with pgsql, howeve= r 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://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=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 have 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 workin= g >>>>>>> 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 >>>>>>> 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 >>>>>>>> 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 to 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 eit= her 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 usefu= l 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 any 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 sp= ecialized >>>>>>>> recs for different things all based on the same data. The UR queri= es are >>>>>>>> quite flexible. >>>>>>>> >>>>>>>> >>>>>>>> On Mar 23, 2017, at 7:08 AM, Vaghawan Ojha >>>>>>>> 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 rating or view sta= te, I >>>>>>>> only have data about user and product they purchased. I need somet= hing like >>>>>>>> item based similarity as well as user based item similarity. >>>>>>>> >>>>>>>> Any help would be great >>>>>>>> >>>>>>>> Thank you >>>>>>>> Vaghawan >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > --94eb2c0546045723c3054b690579 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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.

Try d= oing pio status to check if all required services are running properly.
=

2017-03-23 = 21:04 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com>:
Yes that's what I wan= ted to do, but couldn't come out to configure 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.=C2=A0

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

Thank you v= ery much Marius.=C2=A0

On Thu, Mar 23, 2017 at 10:39 PM, Marius Rabenarivo <mariusrabenarivo@gmail.com> wrote:
You can use MySQL as event store but you nee= d ElasticSearch to store the model metadata and index used by UR Engine.

2= 017-03-23 20:25 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com>= :
But I wanted to= use mysql as default. Should I switch it? I can do that, but I was just wo= ndering since the documentation says that I could use mysql.=C2=A0

On Thu, Ma= r 23, 2017 at 10:03 PM, Marius Rabenarivo <mariusrabenarivo@gmail= .com> wrote:
I think pio-start-all start PostgreSQL by default

2017-03-23 2= 0:16 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com>:
Hi,

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

Thanks

On Thu, Mar 23, 2017 at 10:00 PM, Mariu= s Rabenarivo <mariusrabenarivo@gmail.com> wrote:
You have to change this se= ction

# Default is to use PostgreSQL
PIO_STORAG= E_REPOSITORIES_METADATA_NAME=3Dpio_meta
PIO_STORAGE_REPOSITO= RIES_METADATA_SOURCE=3DPGSQL

PIO_STORAGE_REPO= SITORIES_EVENTDATA_NAME=3Dpio_event
PIO_STORAGE_REPOSITORIES= _EVENTDATA_SOURCE=3DPGSQL

PIO_STORAGE_REPOSIT= ORIES_MODELDATA_NAME=3Dpio_model
PIO_STORAGE_REPOSITO= RIES_MODELDATA_SOURCE=3DPGSQL

Put MYSQL in place of PGSQL

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

I came into further more c= onfusion here, actually I installed prediction IO version 0.10.0 from here= =C2=A0http://predictionio.incubator.apache.org= /install/install-sourcecode/ =C2=A0and have been fighting to confi= gure mysql as a storage in my local linux machine.=C2=A0

But I see there is a different documentation of installing in action= ml 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-en= v.sh.template file. I commented the pgsql section and uncommented the mysql= section with the username and password, but whenever I do .=C2=A0sudo Pred= ictionIO-0.10.0-incubating/bin/pio eventserver there seems to be an er= ror that says that authentication failed with pgsql, however I don't wa= nt to use pgsql.=C2=A0

# Storage Repositories=

# Default is to use PostgreSQL
PIO_STOR= AGE_REPOSITORIES_METADATA_NAME=3Dpio_meta
PIO_STORAGE_REPOSI= TORIES_METADATA_SOURCE=3DPGSQL

PIO_STORAGE_RE= POSITORIES_EVENTDATA_NAME=3Dpio_event
PIO_STORAGE_REPOSITORI= ES_EVENTDATA_SOURCE=3DPGSQL

PIO_STORAGE_REPOS= ITORIES_MODELDATA_NAME=3Dpio_model
PIO_STORAGE_REPOSITORIES_= MODELDATA_SOURCE=3DPGSQL

# Storage Data Sourc= es

# PostgreSQL Default Settings
# Pleas= e change "pio" to your database name in PIO_STORAGE_SOURCES_PGSQL= _URL
# Please change PIO_STORAGE_SOURCES_PGSQL_USERNAME and<= /div>
# PIO_STORAGE_SOURCES_PGSQL_PASSWORD accordingly
#= PIO_STORAGE_SOURCES_PGSQL_TYPE=3Djdbc
#PIO_STORAGE_SOURCES_P= GSQL_URL=3Djdbc:postgresql://localhost/pio
#PIO_STORAGE= _SOURCES_PGSQL_USERNAME=3Dpio
#PIO_STORAGE_SOURCES_PGSQL_PAS= SWORD=3Dpio

# MySQL Example
=C2=A0P= IO_STORAGE_SOURCES_MYSQL_TYPE=3Djdbc
=C2=A0PIO_STORAGE_SOURC= ES_MYSQL_URL=3Djdbc:mysql://localhost/pio
=C2=A0PIO_STORAGE_= SOURCES_MYSQL_USERNAME=3Droot
=C2=A0PIO_STORAGE_SOURCES_MYSQ= L_PASSWORD=3Droot


This i= s how the pio-env.sh.template looks like. And again when I visited the acti= onml site, it suggests that I do have to have ELASTICSEARCH. but prediction.io site doesn't= tells us the same. Which one should I follow and where would I find the cu= rrent working version of installation guide. I actually wanaa use prediction.io in my product= ion shortly after I implemented in local.=C2=A0

Pl= ease help me, thank you very much for your help, I appreciate it so much.
Vaghawan


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

Also look on the Template gallery pag= e here for a description of template status. Some have not been moved to th= e new namespace and converted to run with PIO but this is pretty easy to do= yourself.=C2=A0http://predictionio.incubator.ap= ache.org/gallery/template-gallery/

user_id,= product_id and purchase_date is all you need to use any recommender. If yo= u 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 ind= ividual user data.

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

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


On Mar 23, 2017, at 7:08 AM, Vaghawan = Ojha <vaghawa= n781@gmail.com> wrote:

Hi,=C2=A0

I'= ;ve been trying to deploy a recommendation system using=C2=A0https://github.com/PredictionIO/template-scala-p= arallel-universal-recommendation.=C2=A0

I= 've purchase history of user something like this:=C2=A0
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 cu= stomize the default even parameter.=C2=A0

Do you h= ave any suggestions like which template would be more suitable for my probl= em. I don't have data like rating or view state, I only have data about= user and product they purchased. I need something like item based similari= ty as well as user based item similarity.=C2=A0

An= y help would be great

Thank you
Vaghawan=









--94eb2c0546045723c3054b690579--