1. RPM-IVH jdk-7u67-linux-x64.rpm
Cd/opt
Tar zxf/root/hadoop-2.2.0.tar.gz
Tar zxf/root/apache-ant-1.9.4-bin.tar.gz
Tar zxf/root/apache-maven-3.2.3-bin.tar.gz
Tar zxf/root/eclipse-java-luna-sr1-linux-gtk-x86_64.tar.gz
Unzip-x/root/hadoop2x-eclipse-plugin-master.zip (Https://github.com/winghc/hadoop2x-eclipse-plugin)
Ln-s apache-ant-1.9.4 Ant
Ln-s apache-maven-3.2.3 maven
Ln-s hadoop-2.2.0 Hadoop
2. Echo ' Export Java_home=/usr/java/default ' >>/etc/profile
echo ' Export Hadoop_home=/opt/hadoop ' >>/etc/profile
echo ' Export ant_home=/opt/ant ' >>/etc/profile
echo ' Export Maven_home=/opt/maven ' >>/etc/profile
Echo ' Export path= $JAVA _home/bin: $ANT _home/bin: $MAVEN _home/bin: $HADOOP _home/bin: $PATH ' >>/etc/profile
Source/etc/profile
3. cp/root/ivy-2.1.0.jar/opt/hadoop2x-eclipse-plugin-master/ivy/
Cd/opt/hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin
Ant Jar-dversion=2.5.0-declipse.home=/opt/eclipse-dhadoop.home=/opt/hadoop
Cp/opt/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-2.5.0.jar/opt/eclipse /plugins/
4. Run Eclipse:/opt/eclipse/eclipse
Connect to the Hadoop environment for: CDH 5.2 on a single Linux Node in pseudo-distributed Mode
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/52/5E/wKiom1RkU6mBzY24AAJu0qLwlrA203.jpg "style=" float: none; "title=" snap14.jpg "alt=" Wkiom1rku6mbzy24aaju0qlwlra203.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/52/5C/wKioL1RkVBfDNrHcAADveElbjZ0168.jpg "style=" float: none; "title=" snap15.jpg "alt=" Wkiol1rkvbfdnrhcaadveelbjz0168.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/52/5C/wKioL1RkVBjBGMY4AAHk87VTKIw473.jpg "style=" float: none; "title=" snap16.jpg "alt=" Wkiol1rkvbjbgmy4aahk87vtkiw473.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/52/5C/wKioL1RkVDPx4JXTAAGK8lMVQx0587.jpg "style=" float: none; "title=" snap12.jpg "alt=" Wkiol1rkvdpx4jxtaagk8lmvqx0587.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/52/5E/wKiom1RkU8bi9igUAAGKk_Ns8fg528.jpg "style=" float: none; "title=" snap17.jpg "alt=" Wkiom1rku8bi9iguaagkk_ns8fg528.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/52/5C/wKioL1RkVDSQb1l2AAHtRMz0u7Q713.jpg "style=" float: none; "title=" snap18.jpg "alt=" Wkiol1rkvdsqb1l2aahtrmz0u7q713.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/52/5E/wKiom1RkU8biM8rvAAIlMOTdWJQ645.jpg "style=" float: none; "title=" snap19.jpg "alt=" Wkiom1rku8bim8rvaailmotdwjq645.jpg "/>
5. Windows 7 can use this Hadoop-eclipse-plugin-2.5.0.jar
Ok
This article is from the "ilovecat (personal note)" blog, so be sure to keep this source http://hj192837.blog.51cto.com/655995/1576073
CentOS 6.5 compiling Eclipse plugin for Hadoop 2.5 and loading connections