code now works with secure hbase