I want to scan Hbase for given timerange using REST API.
I am using this code:
<Scanner batch="1048576">
<filter>
{
"type": "PrefixFilter",
"value": "NThiMDNjYWRlNTc5NmIwOWI0OGViMTdl", // base64 encoded "58b03cade5796b09b48eb17e"
"timerange": ["1489502797781", "1489502797788"]
}
</filter>
</Scanner>
Hbase shell timerange scan is:
> scan 'tableName', { TIMERANGE => [1489442551458, 1489442551558] }
The above mentioned does not work. Can someone tell me how to do it?