CentOS 6.5 編譯Eclipse plugin for hadoop 2.5及載入串連

來源:互聯網
上載者:User

標籤:eclipse plugin

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

串連hadoop環境為: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一樣可使用這個hadoop-eclipse-plugin-2.5.0.jar

ok

本文出自 “Ilovecat(個人筆記)” 部落格,請務必保留此出處http://hj192837.blog.51cto.com/655995/1576073

CentOS 6.5 編譯Eclipse plugin for hadoop 2.5及載入串連

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.