Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can retrieve set of records from hbase using starbase API like fetch or fetch_all_rows #22

Open
aklenka opened this issue Jan 31, 2017 · 1 comment

Comments

@aklenka
Copy link

aklenka commented Jan 31, 2017

I am new user of starbase, I want to retrieve few records using some condition like start date or end date or some other fields(columns) not keyID field. Is there any other api or any other syntax in starbase.

I checked fetch is used for keyID and fetch_all_rows is using for all record retrieve.

Even I checked fetch_all_rows(with_row_id=False, raw=False, perfect_dict=None, flat=False, filter_string=None, scanner_config={}', fail_silently=True)

row_filter_string = '{"type": "RowFilter", "op": "EQUAL", "comparator": ' '{"type": "RegexStringComparator", "value": "IN825615" }}' here also value is specific keyID only working, I am not getting any proper solution. Is there any other alternative api.

Plz suggest, how can resolve this query issue.

@barseghyanartur
Copy link
Owner

Hello Anil,


Table scanning is "in development" since 2014 I think, but I never got time for it. Whatever you need to do, you should be doing filters:

Check Stargate documentation for more.

http://hbase.apache.org/book.html#_rest


If it doesn't work, try another library. I suggest Apache Thrift.

http://blog.cloudera.com/blog/2013/09/how-to-use-the-hbase-thrift-interface-part-1/


Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants