Deleting / Reversing events in the event server

2017-07-26 Thread Mattz
Hello, I have a use case where I am sending a "blocked" event for a user for a particular item. When this happens, PIO eliminates this item from the result set. But, the user can choose to "unblock" this item at a later time. I am wondering how to handle this. Should I somehow delete the event

Re: Deleting / Reversing events in the event server

2017-07-26 Thread Vaghawan Ojha
Hi Mattz, You could just use $set, $unset to achieve this. When user wish to unblock the item, just send in another request in the event server to update the event. This would solve your problem from as much as I know from using pio eventserver. you could find the examples here.

Re: Deleting / Reversing events in the event server

2017-07-26 Thread Vaghawan Ojha
Oh Yes Mattz, I seems to have misunderstood your situation. I thought that you were having that blocked prop as a properties or something. My thought must have been totally wrong. I'm not clear if you're sending the blocked items in query or something else? Also which template you have been

Re: Deleting / Reversing events in the event server

2017-07-26 Thread Mattz
This is how I am using now. I send a blocked event if a user blocks an item. So, when recommending items for the user, this item does not show up. I am using the "universal recommender" template. On Thu, Jul 27, 2017 at 11:09 AM, Vaghawan Ojha wrote: > Oh Yes Mattz, I

Re: Error while doing client.create in Prediction IO Java Client

2017-07-26 Thread Tom Chan
Hi Anshu, Can you find out what version of io.netty and com.ning.httpclient you're using? I'm no expert on this but this is how I try to resolve it: on sites like maven central you can search for these packages like http://search.maven.org/#search%7Cga%7C1%7Ccom.ning%20http-client Clicking on

Re: Deleting / Reversing events in the event server

2017-07-26 Thread Vaghawan Ojha
So you're not sending the blocklisted items in query like this right? "blacklistItems": ["itemId1", "itemId2", ...] So, you have those blocked events, then you must be able to update them accordingly just the way you set them as blocked. Or else I'm still not clear (I'm sorry in that case).

Re: Deleting / Reversing events in the event server

2017-07-26 Thread Mattz
Thanks Vaghawan. I think using the "blacklistItems" might be better for my use case rather than passing in the "block" events. I didn't think of this. On Thu, Jul 27, 2017 at 11:15 AM, Vaghawan Ojha wrote: > So you're not sending the blocklisted items in query like this

Pio build success with error, pio train is faililng.

2017-07-26 Thread Darshan A.N.
hi team, i am trying to install demo tapster. i followed http://predictionio.incubator.apache.org/demo/tapster/. It took more than a week to install predictionio. now that i m installed the PIO, its throwing me error while running the $pio build command. the error goes like this:

Error while doing client.create in Prediction IO Java Client

2017-07-26 Thread Anshu Rajendra
Hi, When I try to create a event in my java app using io.prediction client, I get this error : ```org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Ljava/lang/String;Ljava/lang/Object;)V"java.lang.NoSuchMethodError:

Re: Error while doing client.create in Prediction IO Java Client

2017-07-26 Thread Anshu Rajendra
Hi, I am able to create events using curl. It seems like a dependency issue to me between io.netty and com.ning.httpckirnt but I don't know how to find the compatible versions for them to avoid this error. Any pointers? Thanks, Anshu On 26-Jul-2017 8:50 PM, "Vaghawan Ojha"

Re: Error while doing client.create in Prediction IO Java Client

2017-07-26 Thread Vaghawan Ojha
Hi, Sorry, but I'm not comfortable with Java, I've only worked with python SDK, and I can only guess from your error message, so I suppose it must lie here "NoSuchMethodError" but only guessing. So you would have to wait for someone who have worked through it. Thanks On Thu, Jul 27, 2017 at