I had code working and reading from Hbase yesterday, streaming large quantities of data. I have not touched the code and yet, somehow, when I came back to it today it doesn't want to print out the data. The only thing I did on the server was set up a REST framework for writing to the database. Here's part of the code that works (so it seems like it's getting a connection)-
import happybase
connection = happybase.Connection('<ip-address>', '9090')
table = connection.table('rawdataingestion')
Then, when it gets to this part, it just stops working.
n = 0
li = []
for key, data in table.scan(row_start=None):
data = json.loads(data['cf:rawmsg'])
li.append(data)
n += 1
if n == 1000:
break
Like I said, the only thing that changed on the server is that I set up the REST port (8000). Is that the problem? All I need is to pull data from the database.