Re: HTTP Post to events.json with eventId key

2016-09-27 Thread Kenneth Chan
when you update event with the same eventId, does the new event have the
same eventTime?

the eventTime is also used as Hbase's cell timestamp (versions)
https://github.com/apache/incubator-predictionio/blob/develop/data/src/main/scala/org/apache/predictionio/data/storage/hbase/HBEventsUtil.scala#L164


On Tue, Sep 27, 2016 at 4:44 AM, Hasan Can Saral 
wrote:

> Hi all,
>
> I have a question regarding the RowKey generation in eventToPut in
> HBEventsUtil. If that is the wrong place to ask, please correct me.
>
> I started browsing the source code to see if I can implement updating of
> events with HTTP put requests in EventServer.
>
> So basically in HBLEvents, eventsToPut in HBEventsUtil is called an within
> eventsToPut, which generates a unique RowKey object if it is None.
>
> But when the event.eventId.map is there, it simply proceeds with
> RowKey(id). Then regarding this , the
> value should be updated.
>
> Hence, if I include "eventId" key in the JSON I post to events.json, I
> understand that the document/value in HBase should be updated.
>
> However, I am receiving a new document/value with a different key than the
> one I post, which means I am missing something. I would appreciate if you
> could help me with it.
>
> Thanks,
> Hasan
>
> --
>
> Hasan Can Saral
> hasancansa...@gmail.com
>


[GitHub] incubator-predictionio pull request #303: Update index.html.md.erb

2016-09-27 Thread emilyrose
GitHub user emilyrose opened a pull request:

https://github.com/apache/incubator-predictionio/pull/303

Update index.html.md.erb

Fixed two small typos.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/emilyrose/incubator-predictionio patch-1

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-predictionio/pull/303.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #303


commit a2dc548c18a26f10a49f245e43568e7b5ab42f94
Author: Emily Rose 
Date:   2016-09-27T21:01:00Z

Update index.html.md.erb

Fixed two small typos.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


HTTP Post to events.json with eventId key

2016-09-27 Thread Hasan Can Saral
Hi all,

I have a question regarding the RowKey generation in eventToPut in
HBEventsUtil. If that is the wrong place to ask, please correct me.

I started browsing the source code to see if I can implement updating of
events with HTTP put requests in EventServer.

So basically in HBLEvents, eventsToPut in HBEventsUtil is called an within
eventsToPut, which generates a unique RowKey object if it is None.

But when the event.eventId.map is there, it simply proceeds with
RowKey(id). Then regarding this , the
value should be updated.

Hence, if I include "eventId" key in the JSON I post to events.json, I
understand that the document/value in HBase should be updated.

However, I am receiving a new document/value with a different key than the
one I post, which means I am missing something. I would appreciate if you
could help me with it.

Thanks,
Hasan

-- 

Hasan Can Saral
hasancansa...@gmail.com