hbase-read: Use dict only on success
This commit is contained in:
parent
b62b022d5d
commit
31c28623e7
@ -613,14 +613,14 @@ class hbase_exporter():
|
|||||||
try:
|
try:
|
||||||
rsp = pybase_client.get(hbase_table, key)
|
rsp = pybase_client.get(hbase_table, key)
|
||||||
self.hbase_read_success = 1
|
self.hbase_read_success = 1
|
||||||
|
rspd = self.result_to_dict(rsp)
|
||||||
|
logging.debug('hbase: Read: ')
|
||||||
|
for k, v in rspd.items():
|
||||||
|
logging.debug('key: %', k)
|
||||||
|
logging.debug('value: %', v)
|
||||||
except:
|
except:
|
||||||
self.hbase_read_success = 0
|
self.hbase_read_success = 0
|
||||||
|
|
||||||
rspd = self.result_to_dict(rsp)
|
|
||||||
logging.debug('hbase: Read: ')
|
|
||||||
for k, v in rspd.items():
|
|
||||||
logging.debug('key: %', k)
|
|
||||||
logging.debug('value: %', v)
|
|
||||||
|
|
||||||
# Write access
|
# Write access
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user