title: Downloading file from the right Apache Mirror with wget
body: <p>To use a specific example, I want to download the binary release of Hadoop 2.7.2. The <a href="http://hadoop.apache.org/releases.html" rel="noreferrer">web site</a> points to <a href="http://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-2.7.2/hadoop-2.7.2.tar.gz" rel="noreferrer">http://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-2.7.2/hadoop-2.7.2.tar.gz</a> which then points to the closest mirror by location. For me that is <a href="http://xenia.sote.hu/ftp/mirrors/www.apache.org/hadoop/core/hadoop-2.7.2/hadoop-2.7.2.tar.gz" rel="noreferrer">http://xenia.sote.hu/ftp/mirrors/www.apache.org/hadoop/core/hadoop-2.7.2/hadoop-2.7.2.tar.gz</a>.</p>
  
  <p>I want to actually download this in a shell script (a Dockerfile to be specific). I would prefer to use a location-agnostic URL for the download so that if someone runs the script on the other end of the world, they would not use the same mirror.</p>
  
  <p>Is there a URL I could use with <code>wget</code> or <code>curl</code> that dynamically redirects to the closest mirror? What would that URL be for this specific file?</p>