Uses HBase (0.98 in a client with a server like HBase 1.1.2) with a basic data store like HDFS.
I tried to clear the table using the following code, and I see that the data has been dumped to the HFile location in Hadoop.
htable.put(puts); htable.close(); admin.flush(tableName);
Hadoop Data Location
./hadoop fs -du /hbase/data/default/tableName/
When I turn off the power and restart the node, restarting Hadoop and HBase, I was able to see that the data was corrupted in HDFS.
If the data is properly cleared to HFile, why is it corrupted during a power outage.
Do I need to make any changes to the code to clear the table?
Thanks Har
Harry source share