You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ben West <bw...@yahoo.com> on 2011/09/23 23:12:36 UTC

REST questions

Hey all,

I'm trying to use the REST API and I have a couple questions:

1. If I save a value with a timestamp of t, it seems like I have to query for values of t+1 (or +2 etc.). So does the timestamp portion of the API mean "find the most recent value written before this timestamp"? (As opposed to "find the value written *exactly at* this timestamp)
2. I try to save values like:

curl -X POST 'localhost:8080/EPT/row1/EPT:test/12345' -H "Content-Type: application/json" -d "{\"Row\":{\"@key\":\"row1\",\"Cell\":{\"@column\":\"test\", \"$\":\"1234\",\"@timestamp\":\"12345\"}}}"

this just seems to save it with whatever time it currently is, not the timestamp I want to use. How can I manually put in a timestamp?

Thanks!
-Ben