在eclipse下编译hadoop2.0源码
hadoop cdh4编译
为eclipse安装maven插件
eclipse3.6.1安装m2eclipse插件
 
 

一、eclipse 3.6.1下载地址[eclipse-jee-helios-SR1-win32.zip]

 
二、插件地址 
1、gef 插件地址: 
 
实际测试发现eclipse 3.6.1已经安装gef,仅仅缺少zest插件,最小安装zest的runtime即可,地址如下: 
 
 
在没有安装zest插件的话,直接安装m2eclipse插件会报出缺少依赖的错误,信息如下: 
 
Cannot complete the install because one or more required items could not be found. 
Software being installed: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800) 
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.maven.ide.eclipse.editor 0.10.0.20100209-0800) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found 
Cannot satisfy dependency: 
From: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800) 
To: org.maven.ide.eclipse.editor [0.10.0.20100209-0800] 
 
 
2、subclipse 插件地址: 
 

在Eclipse中添加SVN时,提示错误:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0)
  Missing requirement: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0) requires 'org.eclipse.mylyn.tasks.core [3.0.0,4.0.0)' but it could not be found
解决方法:
不选中Subclipse中的Subclipse Integration for Mylyn 3.x (Optional) 
 

3、maven2 插件地址:

m2eclipse-extras Update Site:

注意 :必须两个插件都安装,不安装extras 插件时,点击“run as server”来运行项目时会报错:“the selected did not contain any resources that can run on server maven project”  
 

Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

 

http://download.eclipse.org/releases/indigo

 
 

三、安装时出现问题:

直接在线安装maven2 会出现依赖插件找不到的问题,无法安装。必须先安装gef 插件后才能安装m2eclipse-core 插件,然而安装m2eclipse-extras 插件又依赖subclipse 插件。所以,三个插件的正确的安装顺序是:gef插件 》subclipse插件 》m2eclipse插件。
m2eclipse-core插件 ——依赖——>gef插件 
m2eclipse-extras插件 ——依赖——>subclipse插件 
 
 

离线安装包:

 
 
在dropins目录下创建文件夹maven3
 
把解压出的features目录和plugins目录放到dropins下的maven3里就可以了,不用link方式。
 
目录
 
eclipse3.7
 
--plugins
--features
--links
------xxx.link(或者是xxx.txt)
--dropins
------xxx
 
----------plugins
----------features
 
测试
windows--首选项中有Maven
 
 
安装完成后,启动eclipse,你将还会看到如下提示: 
 
安装m2eclipse插件后,重启Eclipse老是提示: 
 
Eclipse is running in a JRE, but a JDK is required 
 
Some Maven plugins may not work when importing projects or updating source folders. 
 
 
-vm配置项必须在 –vmargs配置项前,是因为执行到-vmargs配置项已经选择了一个默认的JVM了。 
 
所以在–vmargs前面加上这一句: 
 
-vm 
D:/Java/jdk1.6.0_10/bin/javaw.exe 
 
ok,一切完好。

hadoop2.0 eclipse 源码编译的更多相关文章

  1. spark2.1.0的源码编译

    本文介绍spark2.1.0的源码编译 1.编译环境: Jdk1.8或以上 Hadoop2.7.3 Scala2.10.4 必要条件: Maven 3.3.9或以上(重要) 点这里下载 http:// ...

  2. 英蓓特Mars board的android4.0.3源码编译过程

    英蓓特Mars board的android4.0.3源码编译过程 作者:StephenZhu(大桥++) 2013年8月22日 若要转载,请注明出处 一.编译环境搭建及要点: 1. 虚拟机软件virt ...

  3. 非寻常方式学习ApacheTomcat架构及10.0.12源码编译

    概述 开启博客分享已近三个月,感谢所有花时间精力和小编一路学习和成长的伙伴们,有你们的支持,我们继续再接再厉 **本人博客网站 **IT小神 www.itxiaoshen.com 定义 Tomcat官 ...

  4. 解决Tomcat10.0.12源码编译问题进而剖析其优秀分层设计架构

    概述 Tomcat.Jetty.Undertow这几个都是非常有名实现Servlet规范的应用服务器,Tomcat本身也是业界上非常优秀的中间件,简单可将Tomcat看成是一个Http服务器+Serv ...

  5. Hadoop2.7.2源码编译过程

    目录 准备工作 jar包安装 源码编译 准备工作 CentOS可以联网,验证:ping www.baidu.com 是畅通的 jar 包准备(hadoop 源码.JDK8.maven.ant .pro ...

  6. Hadoop2.5.2源码编译及导入Eclipse

    前言:由于官网提供的64位hadoop是没有编译的,所以当我们用到64位的hadoop时,需要在自己的64位linux系统上编译hadoop源码.另外,要想在eclipse里查看hadoop源码,修改 ...

  7. Hadoop-2.x的源码编译

    由于在Hadoop-2.x中,Apache官网上提供的都是32位版本,如果是生产环境中则需要自行编译64位,编译Hadoop-2.x版本方法如下: 安装编译源码所依赖的底层库 yum install ...

  8. android 5.0 (lollipop)源码编译环境搭建(Mac OS X)

    硬件环境:MacBook Pro Retina, 13-inch, Late 2013 处理器  2.4 GHz Intel Core i5 内存  8 GB 1600 MHz DDR3 硬盘60G以 ...

  9. Spark-2.0.2源码编译

    注:图片如果损坏,点击文章链接:https://www.toutiao.com/i6813925210731840013/ Spark官网下载地址: http://spark.apache.org/d ...

随机推荐

  1. web前端开发中的浏览器兼容性总结

    1.居中问题 div里的内容,IE默认为居中,而FF默认为左对齐,可以尝试增加代码margin: 0 auto; 2.高度问题 两上下排列或嵌套的div,上面的div设置高度(height),如果di ...

  2. Promise的用简要使用方式

    Promise用法 在项目中用到异步请求ajax,想到用promise来解决,之前用过但是已经很久了,还是忘了一些,重新熟悉了一下整理一份简要文档. Promise,就是一个对象,用来传递异步操作的消 ...

  3. List和ArrayList,LinkList的区别

    接口 List<E> 是一个接口: ArrayList<E> 是一个类:是一个实现了List接口的类,因此可以List里面定义的所有的方法都实现了. 1.ArrayList是实 ...

  4. java remote debug

    1. java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 -jar test.jar 2.会出现Listening for ...

  5. iOS 十六进制的相加取反

    ios中将NSstring字符串转换成char类型 NSString *string = [NSString stringWithFormat:@"5D"]; const char ...

  6. 利用反射把查询到的Table、Reader转换成List、Model

    菜鸟一枚,入园已有两年三个月,这还是第一次写博客,请各位大神斧正. 这是我写的一个工具类,通常我们从数据库查询到一个  DataReader  或者是  一个 Table , 想要转换成 一个 lis ...

  7. Sublime Text 3配置LiveReload实现实时刷新

    今天看到一款很强大的插件,LiveReload,实时刷新,也就是说写完html/css/js等不用再到浏览器里按F5啦,在Ctrl+S时浏览器会自动刷新,是不是想想都很爽... Chrome:(据说支 ...

  8. Java8 map和reduce

    map final List<Integer> numbers = Arrays.asList(1, 2, 3, 4); final List<Integer> doubleN ...

  9. C#winfrom中应用程序只启动一次代码

    static class Program    {        private const int WS_SHOWNORMAL = 1;        [DllImport("User32 ...

  10. etTimeout与setInterval方法的区别

    etTimeout与setInterval方法的区别 setTimeout()用于设定在指定的时间之后执行对应的函数或代码.,在全局作用域下执行 setTimeout(code,time[,args… ...