因此对应的插件为 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