HBase update operations on hdfs

人走茶凉 提交于 2021-02-08 11:41:30

问题


Because HBase is based on HDFS, and that HDFS doesn't have update features, I was wondering if the update operations on it rewrites the whole HFILE files on hadoop?

thanks


回答1:


There are no updates in HBase.

When you perform a delete in HBase (the whole row or particular cells), a special deletion marker is added to a cell. Upcoming scans or get operations would not see that cell(s).

When you perform an insert, you just create a new cell with current timestamp. Scan and get operations will return newer version of a cell.

Real physical deletion is perform during HBase major compactions. Also, after compaction number of HFiles is reduced to provide faster read operations.



来源:https://stackoverflow.com/questions/42677201/hbase-update-operations-on-hdfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!