从零教你如何获取hadoop2.4源码并使用eclipse关联hadoop2.4源码

查看数: 152381 | 评论数: 44 | 收藏 19
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-6-23 19:04

正文摘要:

问题导读: 1.如何通过官网src包,获取hadoop的全部代码 2.通过什么样的操作,可以查看hadoop某个函数或则类的实现? 3.maven的作用是什么? 我们如果想搞开发,研究源码对我们的帮助很大。不明白原 ...

回复

Victor-Shy 发表于 2014-10-31 15:11:32
呼,按着楼主的大作终于OK了,,不过2确实比1麻烦好多的说
gogaobin 发表于 2014-8-7 14:33:15
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.4.0:prot
oc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecut
ionException: 'protoc --version' did not return a version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :hadoop-common

这个错误是怎么回事,已经正确安装protoc
SuperDove 发表于 2016-8-25 13:47:34
安装的途中,现在jdk的版本是1.8了,安装hadoop项目,不能用1.8,被坑的不行,只能去oracle官网下载jdk1.7,注意,还要改变自己电脑原先配置的环境变量JAVA_HOME的地址。
在安装MaxTemperature这个项目的时候缺少org.apache.hadoop.mapreduce这个包,找了一天没找到,结果要去下载hadoop-0.20.203.0rc1.tar.gz这个包下载地址http://archive.apache.org/dist/h ... .20.203.0rc1.tar.gz
新手,学习遇见的问题,希望后面学习的时候不要找东西找不到
quguiliang 发表于 2016-6-26 19:45:16
支持支持
hhenking 发表于 2016-5-6 16:43:40
楼主2.7.2里没有MVN文件如何升级关联不掉源码
ssxssx 发表于 2016-4-15 16:51:14
非常不错啊
戴着草帽的猫 发表于 2016-3-1 14:08:44
123221321
发光体 发表于 2016-2-22 21:26:06
运行
  • mvn eclipse:eclipse -DskipTests   出错

[ERROR] Failed to execute goal on project hadoop-nfs: Could not resolve dependen
cies for project org.apache.hadoop:hadoop-nfs:jar:2.2.0: Could not transfer arti
fact junit:junit:jar:4.8.2 from/to apache.snapshots.https (https://repository.ap
ache.org/content/repositories/snapshots): Connect to repository.apache.org:443 [
repository.apache.org/140.211.11.112] failed: Connection timed out: connect -> [
Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :hadoop-nfs

明明写命令的位置正确啊。求大神帮助啊。

执行第二个命令总是出错,写命令的位置对着了,也出错

执行第二个命令总是出错,写命令的位置对着了,也出错
捕获.JPG
gfaming 发表于 2015-12-17 09:49:48
楼主好人啊
gzd4215 发表于 2015-12-2 15:52:12
成功,虽然有一些缺少jar错误,但是不妨碍阅读,感谢楼主!!!
peterzor 发表于 2015-10-15 18:32:24
不错,学习了
peterzor 发表于 2015-10-6 11:23:01
学习学习
关闭

推荐上一条 /2 下一条