Hbase REST API: Timerange scan

0 votes

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?

Aug 30, 2018 in Big Data Hadoop by Frankie
• 9,810 points
205 views

1 answer to this question.

0 votes

Looking at the XSD, it seems that these two attributes are separated in startTime and endTime (both ints). So, you could try something like:

<Scanner batch="1048576" startTime=1489502797781, endTime=1489502797788> 
    <filter>
        { 
            "type": "PrefixFilter",
            "value": "NThiMDNjYWRlNTc5NmIwOWI0OGViMTdl", // base64 encoded "58b03cade5796b09b48eb17e"
        }
    </filter>
</Scanner>
answered Aug 30, 2018 by Neha
• 6,280 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What is REST keyword in Hbase?

Hey, REST stands for Representational State transfer, which ...READ MORE

answered May 21 in Big Data Hadoop by Gitika
• 20,240 points
9 views
0 votes
1 answer

How to turn on REST gateway impersonation in HBase?

Hey, To turn on REST gateway impersonation, we ...READ MORE

answered May 31 in Big Data Hadoop by Gitika
• 20,240 points
19 views
0 votes
13 answers

What is the difference between Hadoop/HDFS & HBase?

HDFS is a distributed file system whereas ...READ MORE

answered Apr 26 in Big Data Hadoop by Arihar
• 160 points
6,436 views
0 votes
1 answer

Access DFS through Java API

It is because, may be you are ...READ MORE

answered Mar 22, 2018 in Big Data Hadoop by nitinrawat895
• 10,150 points
212 views
0 votes
1 answer

Hadoop security GroupMappingServiceProvider exception for Spark job via Dataproc API

One of the reason behin you getting ...READ MORE

answered Mar 22, 2018 in Big Data Hadoop by nitinrawat895
• 10,150 points
104 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,150 points
2,066 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,597 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
773 views
0 votes
1 answer
0 votes
1 answer

What is the difference between Hadoop API and Streaming?

Usually we have Map/Reduce pair written in ...READ MORE

answered Dec 12, 2018 in Big Data Hadoop by Neha
• 6,280 points
32 views