摘要 |
A data transfer method and apparatus. The data transfer method comprises: generating a configuration file according to input of a user, wherein the configuration file comprises a file transfer path and a transfer rule corresponding to the file transfer path, and the file transfer path comprises a source address and a destination address of a file to be transferred; and searching, according to the configuration file, for a file satisfying the transfer rule in the source address of the file transfer path, and transferring the found file to the destination address, wherein the transferred file comprises a formatted data file and/or a non-formatted data file. The technical solution solves the problems of a complex file transfer operation mode and low efficiency in the mode of file transfer with a Hadoop system. |