`
standalone
  • 浏览: 609759 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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.

 

分享到:
评论

相关推荐

    [Hadoop] Hadoop 专业解决方案 (英文版)

    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 ...

    Elasticsearch for Hadoop

    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 ...

    Hadoop The Definitive Guide 3rd Edition

    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, ...

    Hadoop: The Definitive Guide [Paperback]

    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_the_definitive_guide_3nd_edition

    Hadoop in the Cloud 332 Hadoop on Amazon EC2 332 10. Administering Hadoop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337 HDFS 337 Persistent Data...

    Data Algorithms(O'Reilly,2016)

    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...

    Python: Real World Machine Learning

    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 ...

    Learning Apache Spark 2

    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

    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.

    LargeScaleMachineLearningwithPython.pdf

    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.

    Mastering Java Machine Learning

    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 ...

Global site tag (gtag.js) - Google Analytics