ITeye博客

problems in building hadoop

standalone · 2010-12-22 10:28 · hadoop · cloud · 开源软件 · Markdown

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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。