Am using HBase (0.98 in Client with server as HBase 1.1.2) with underlying datastore as HDFS.
I tried to flush the table using the following code and am able to see the data flushed to HFile location in Hadoop.
htable.put(puts);
htable.close();
admin.flush(tableName);
Data location in Hadoop
./hadoop fs -du /hbase/data/default/tableName/
When I do the power shut down and restarted the node, restarted the Hadoop and HBase am able to see the data got corrupted in HDFS.
If the data is properly flushed to HFile, why it is getting corrupted during power shutdown.
Do I need to make any change in the code for flushing the table?
Thanks, Har