×

Method and device for downloading file

  • US 10,484,468 B2
  • Filed: 02/18/2015
  • Issued: 11/19/2019
  • Est. Priority Date: 08/28/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method for downloading a file to a device, the method comprising:

  • when receiving a download request a file,acquiring, by the device, attribute information about the file from a name node of at least two data nodes,learning information, by the device, about the length of the file according to the attribute information about the file, andwhen the length of the file goes beyond a preset value,segmenting, by the device, the download request into at least two fragments of download requests, the at least two fragments of download requests comprising a first fragment download request and a second fragment download request,sending the at least two fragments of download requests from the device to the at least two data nodes to request to download corresponding fragments,receiving, by the device, information returned by each data node, andidentifying, by the device, whether the information is a downloaded fragment or download failure information,wherein, when the downloaded information corresponding to the first fragment download request that is received from one data node is identified as the download failure information,excluding, by the device, the data node from the at least two data nodes; and

    when the downloaded information corresponding to the second fragment download request is also identified as the download failure information, sending, by the device, the second fragment download request to another data node of the at least two data nodes;

    wherein, when the downloaded information corresponding to the first fragment download request that is received from one data node is identified as the downloaded fragment and the downloaded information corresponding to the second fragment download request is identified as the download failure information,sending, by the device, the second fragment download request to the data node; and

    wherein, when downloaded fragments corresponding to fragments of download requests are received from data nodes,obtaining, by the device, the file according to the at least two fragments obtained by download.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×