因此对应的插件为 hadoop-eclipse-plugin-2.7.7.jar ,放在
eclipse安装包下的plugins⽬录下,也可以直接放在dropins⽬录下(较为便捷)。
2)解压Hadoop安装包
在eclipse的Windows->Preferences的Hadoop
Map/Reduce中设置对应的安装⽬录
3)打开Windows->Perspective->Open Perspective-> Other 中的Map/Reduce,在此perspective下
进⾏hadoop程序开发。
打开Windows->Show View->Other -> MapReduce Tools中的Map/Reduce Locations,添加Hadoop
视图。
hadoop location配置:DFSmaster 端口9000
log4j.properties
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.logfile=org.apache.log4j.FileAppender
log4j.appender.logfile.File=target/spring.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
这篇博客介绍了如何在Eclipse中配置Hadoop开发环境。首先,将hadoop-eclipse-plugin-2.7.7.jar放入eclipse的plugins或dropins目录。接着,解压Hadoop安装包,并在Eclipse的偏好设置中指定Hadoop Map/Reduce的安装路径。然后,切换到Map/Reduce透视图进行开发,并通过Map/ReduceLocations添加Hadoop视图。最后,配置Hadoop location为DFSmaster的9000端口。此外,还展示了log4j.properties的基本配置。

1239

被折叠的 条评论
为什么被折叠?



