Eclipse Hadoop Development ENV Construction

 ENV: Ubuntu 12.04 

1. Install Eclipse

2. create desktop shortcut for Eclipse

    a. create an empty document named eclipse.xx

    b. edit eclipse.xx like followings (avoid failing to open eclipse memu Items)

  

[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/zhaohj/soft/eclipse
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/zhaohj/soft/eclipse/icon.xpm
MimeType=
Name[zh_CN]=eclipse
Name=eclipse
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen
Exec=env UBUNTU_MENUPROXY= /home/zhaohj/soft/eclipse/eclipse

 c. download plugins for hadoop  hadoop-eclipse-kepler-plugin-2.2.0.jar (google it to find the download address ) and put it to eclipse's plugins dir

 d.Configure Hadoop in eclipse

   

 

configure DFS Location



 

import hadoop project to eclipse

method one: http://www.superwu.cn/2013/08/04/355/

method two:

#mvn eclipse:eclipse -DskipTests   //convert maven project to eclipse project

then import existed project to eclipse

References

https://developer.yahoo.com/hadoop/tutorial/module3.html#eclipse

http://blog.cloudera.com/blog/2009/04/configuring-eclipse-for-hadoop-development-a-screencast/

猜你喜欢

转载自ylzhj02.iteye.com/blog/2053848