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.
分享到:
相关推荐
It focuses on the architecture and approaches for building advanced, Hadoop-based enterprise applications, taking a deeper, code-level dive into delivering real-world solutions. It also walks you ...
Knowing the problems Solution approaches Approach 1 – Preaggregate the results Approach 2 – Aggregate the results at query-time Writing the NetworkLogsMapper job Writing the mapper class ...
You’ll find illuminating case studies that demonstrate how Hadoop is used to solve specific problems. This third edition covers recent changes to Hadoop, including material on the new MapReduce API, ...
It also provides illuminating case studies that illustrate how Hadoop is used to solve specific problems. Looking to get the most out of your data? This is your book. Use the Hadoop Distributed File...
Hadoop in the Cloud 332 Hadoop on Amazon EC2 332 10. Administering Hadoop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 HDFS 337 Persistent Data...
Mahmoud Parsian covers basic design patterns, optimization techniques, and data mining and machine learning solutions for problems in bioinformatics, genomics, statistics, and social network analysis...
Learn to solve challenging data science problems by building powerful machine learning models using Python. Book Description Machine learning is increasingly spreading in the modern data-driven ...
Having understood the key capabilities, it is important to understand how Spark can be used, in terms of being installed as a Standalone framework or as a part of existing Hadoop installation and ...
Large Scale Machine Learning with Python [PDF + EPUB + CODE] ... We will also cover the most effective machine learning techniques on a map reduce framework in Hadoop and Spark in Python.
Large Scale Machine Learning with Python [PDF + EPUB + CODE] Packt Publishing... We will also cover the most effective machine learning techniques on a map reduce framework in Hadoop and Spark in Python.
On completing this book, you will have an understanding of the tools and techniques for building powerful machine learning models to solve data science problems in just about any domain. Style and ...