Code for hbase