欢迎来到天天文库
浏览记录
ID:43324246
大小:110.45 KB
页数:5页
时间:2019-09-30
《eclipse开发环境配置及MapReduce工程创建》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Hadoop-2.6.0环境下配置Eclipse开发环境:1.下载(eclipse-standard-kepler-SRl-linux-gtk.tar),假设解压到/home/u/eclipse在/etc/profile中设置ant路径:exportECLIPSE_HOME=/home/u/eclipseexportPATH=.:$ECLIPSE_HOME:$PATH2.下载ant安装包(apacheFnt・1.9.2・bin.tar.gz),假设解压至lj/home/u/apache-ant-l.9.2
2、Fl录,在/etc/profile中设置ant路径:exportANT_HOME=/home/u/apache-ant-1.9.2exportPATH=.:$ANT_HOME/bin:$PATH3.下载maven安装包(apache-maven-3.2.1-bin.tar.gz),假设解压到/home/u/apache-maven-3.2.1口录,在在/etc/profile屮设置maven路径:exportMAVEN_HOME=/home/u/apache-maven-3.2.1exportPATH=.
3、:$MAVEN_HOMEE/bin:$PATH4.复制hadoop2.6-eclipse-plugin.zip解压到/home/u,cd/home/u/hadoop2.6-eclipse-plugin/src/contrib/eclipse-pluginantjar-Dversion=2.6.0-Dhadoop.version=2.6.0・Declipse.home=/home/u/eclipse・Dhadoop.home=/home/u/Hadoop-2.6.0编译成功后我们可以在以下目录获得hadoo
4、p-eclipse-plugin-2.6.0.jar插件。${hadoop2x-eclipse-plugin}/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.6.0.jar5.将hadoop-eclipse-plugin-2.6.0.jar拷贝至/home/u/eclipse/pluginsF,重启eclipse.可在Preference里看到HadoopMap/Reduce插件牛.效。❽O©CVSRepositoryExploring・Ecli
5、pseFileEditNavigateSearchProjectCVSRunWindowHelp0PreferencesHadoopMap/Reduce►Help►Install/Update►Java►Plug-inDevelopment►Run/Debug►TeamGeneralQ▼、ZAlwaysruninbackgroundKeepnext/previouseditor,viewandperspectivesdialogopenShowheapstatusWorkbenchsaveinterval
6、(inminutes):5Openmode@DoubledickOSingleclicknSelectonhoverNote:Thispreferencemaynottakeeffectonallviews6.设置HadoopMapReduceLocation:在Linux终端启动hadoop:start-all.sh右击卜•图的MapReduceLocation,选择编辑EiProblemsTasks@Javadoc*Map/ReduceLocationsK5ConsoleLocationMastern
7、odeStateStatusMapReduceLocationmaster设置如下(AdvancedParameters里的口录等也需要设宜):EditHadooplocation...DefineHadooplocationDefinethelocationofaHadoopinfrastructureforrunningMapReduceapplicatioGeneralAdvancedparameters厂、Locationname:MapReduceLocationDFSMasterMap/Red
8、uce(V2)MasterUseM/RMasterhostHost:Port:Username:rootSOCKSproxyEnableSOCKSproxy如果设置成功,可以在ProjectExplorer的DFSLocations正常浏览HadoopHDFS文件系统:bProjectExplorer耳1=3日▼三DFSLocationsMiMapReduceLocation▼e(2)►&input(1)►&output⑵1.
此文档下载收益归作者所有