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,830 points
1,778 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,300 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
694 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
718 views
0 votes
1 answer

create table in Hbase using Java API

Hi@akhtar, You can use the below code to ...READ MORE

answered Mar 31, 2020 in Big Data Hadoop by MD
• 95,460 points
1,614 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, 2019 in Big Data Hadoop by Arihar
• 160 points
33,918 views
0 votes
1 answer

Access DFS through Java API

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

answered Mar 23, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
1,954 views
+1 vote
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
• 11,380 points
11,078 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,076 views
–1 vote
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,350 points
4,643 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,300 points
1,033 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP