kution 发表于 2016-12-6 09:33:23

problems in building hadoop

  When I try to modify some code in ASF hadoop-0.20.2 and compile it with command "ant jar".
  It reports no *route to host* exceptions.
  I do this on a server that with no direct internet connection, that is, I need to set a proxy to access outside network.
  So to build hadoop, maven needs to download something from maven repository, so you need to set proxy for it and also a proxy for ant.
  ant proxy:
  
  ANT_OPTS="-Dhttp.proxyHost=host -Dhttp.proxyPort=yourport"
  maven proxy:
  <settings>
  <proxies>
    <proxy>
       <active>true</active>
       <protocol>http</protocol>
       <host>your proxyHost</host>
       <port>your port</port>
    </proxy>
   </proxies>
</settings>
  Now it works well. Hope this can be useful to you.
页: [1]
查看完整版本: problems in building hadoop