Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to recompile hadoop source code

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Xiaobian to share with you how to recompile hadoop source code, I believe most people still do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

Hadoop-1.0.3 source code download address:

http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/

Experimental environment: redhat version

Red Hat Enterprise Linux Server release 6.5 (Santiago)

Recompile hadoop source code in redhat.

1. Migrate hadoop-1.0.3 source code from svn

[hadoop@master hadoop-p]$ svn co http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/

2. Compile hadoop in the directory where the build.xml file is located

[hadoop@master release-1.0.3]$ ant

Compile error: type parameter? extends T is not in the range of type variable E Detailed error information:

compile:

[echo] contrib: gridmix

[javac] Compiling 31 source files to /home/hadoop/hadoop-p/release-1.0.3/build/contrib/gridmix/classes

[javac] /home/hadoop/hadoop-p/release-1.0.3/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:396: Error: Type parameter? extends T is not in the range of type variable E

[javac] private String getEnumValues(Enum

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report