The embodiment of the invention provides a
metadata forward compatibility method and device,
electronic equipment and a storage medium, and the method comprises the steps: after receiving a
rollback instruction, reading a first
file system mirror image file of a high-version HDFS (Hadoop
Distributed File System); performing deserialization
processing on the first
file system mirror image file to obtain a
memory object; a character string mapping table is extracted from the
memory object, and a mapping relation in the character string mapping table is converted into a new mapping relation matched with the low-version HDFS; and performing
serialization processing on the
memory object based on the mapping relationship and the new mapping relationship to obtain a second
file system mirror image file compatible with the low-version HDFS. By dynamically reconstructing the mapping relation of the character string mapping table, the mapping relation in the fsige of the high-version HDFS is converted into the mapping relation adaptive to the low-version HDFS, and the
namespace management strategy difference of the high-version HDFS and the low-version HDFS is eliminated, so that the low-version HDFS can successfully analyze the
metadata of the high-version HDFS, and the success of the degradation
rollback process is ensured.