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

HBASE-26354 [hbase-connectors] Added python client for HBase thrift service #86

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Rectified some whitespace problem
YutSean committed Oct 13, 2021
commit 702410d7fa338d63ff93b5d6542746c5ae041aa2
7 changes: 1 addition & 6 deletions thrift-python/README.md
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@ if __name__ == '__main__':
qualifier="column_qualifier",
value="your_value")
table.put(p)

# example for a batch operation
put_list = []
for i in range(100):
@@ -42,7 +41,6 @@ if __name__ == '__main__':
value="your_value")
put_list.append(p)
table.put_batch(put_list)

# do not forget to close the connection after using
client.close_connection()
```
@@ -167,7 +165,4 @@ if __name__ == '__main__':
x.start()
for thread in thread_list:
thread.join()
```
## Source
The github repository is:
https://github.com/YutSean/thbase
```
1 change: 0 additions & 1 deletion thrift-python/thbase/clientbase.py
Original file line number Diff line number Diff line change
@@ -182,7 +182,6 @@ def _scan(self, table_name, scan):
@abc.abstractmethod
def _delete_row(self, table_name, delete):
"""

Send a delete request to thrift server. Only should be invoked by a Table object.
Args:
table_name: a str representation of Table name, including the namespace part.