The invention discloses a method for
data migration of a non-
relational database HBase. According to the method, by reading configuration file information of users, data within a time period designated by the users are migrated from an old HBase cluster to a new HBase cluster. The method has the advantages that by designing RowKey, group information and
time information of the data are embodied on the RowKey, and whether the data corresponding to the RowKey are within a migration
time range designated by the users can be directly identified by scanning the RowKey during
data migration; groups serve as
data migration units, every group serves as a
check point, the range of the non-synchronous data between the old HBase cluster and the new HBase cluster can be rigidly controlled within one group when abnormal conditions occur, and time required for restoring
data synchronization is reduced; log information is recorded in the data migration process to be used for treating the abnormal conditions in the data migration process, synchronization of the data between the old cluster and the new cluster is guaranteed, and data migration between the HBase clusters can be finished accurately and efficiently.