We intend to install Eclipse on Linux (CentOS) and configure the MapReduce program development environment.
Step one: Download and install Eclipse (provided the JDK is already installed)
Open the browser in the Linux system and enter the URL: http://archive.eclipse.org/eclipse/downloads/We choose the 3.7.2 version.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m01/6c/d2/wkiol1vttaracx35aaja_lo9fgq798.jpg "title=" 1.png "width=" "height=" 294 "border" = "0" hspace= "0" vspace= "0" style= "width:500px;height:294px;" alt= "wkiol1vttaracx35aaja_lo9fgq798.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/D7/wKiom1VTTGjBycUXAAJYdJMX7XA557.jpg "title=" 2.png " alt= "wkiom1vttgjbycuxaajydjmx7xa557.jpg"/> Downloaded, the file is stored in:
[email protected] downloads]$ LL
Total 178052
-rw-rw-r--. 1 Liuqingjie Liuqingjie 182321299 may 05:16 eclipse-sdk-3.7.2-linux-gtk.tar.gz
Copy to home directory and unzip
[email protected] downloads]$ CP eclipse-sdk-3.7.2-linux-gtk.tar.gz/home/liuqingjie/
[Email protected] ~]$ TAR-ZXVF eclipse-sdk-3.7.2-linux-gtk.tar.gz
Start Eclipse (provided you enter the graphical interface):
[[Email protected] ~]$ CD eclipse
[Email protected] eclipse]$./eclipse
Step Two: Configure the MapReduce program development environment
1. Copy the Hadoop-0.20.2-eclipse-plugin.jar ( under the Hadoop-0.20.2/contrib/eclipse-plugin directory) to the Eclipse/plugins directory, and restart Eclipse.
2. Configure the Hadoop installation directory
Window->preference
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/D8/wKiom1VTVJrB4L_wAAEjqXSyhzk553.jpg "title=" 3.png " Width= "height=" 224 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:224px; "alt=" Wkiom1vtvjrb4l_ Waaejqxsyhzk553.jpg "/>
2. Open the MapReduce view
window->open perspective->other, select Map/reduce, Icon is blue Elephant:650) this.width=650; "src="/HTTP/ Pic002.cnblogs.com/images/2011/354747/2011112617253029.jpg "style=" Font-family:verdana, Arial, Helvetica, sans-serif;font-size:14px;line-height:25.2000007629395px;text-indent:2em;border:0px; "/>
3. Add a MapReduce environment
At the lower end of eclipse, there will be a tab next to the console, called "Map/reduce Locations", right-click in the blanks below, select "New Hadoop location ...",:
650) this.width=650; "src=" http://pic002.cnblogs.com/images/2011/354747/2011112617293785.jpg "height=" "style=" border:0px; "/>
In the dialog box that pops up, fill in the following:
Location name (pick a name)
Map/reduce Master (the IP and port of the Job tracker, according to the mapred.job.tracker configured in Mapred-site.xml)
DFS Master (Name node IP and port, based on fs.default.name configured in Core-site.xml)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/D8/wKiom1VTVSnQIpH3AAD_lyJPDL4651.jpg "title=" 4.png " Width= "height=" 224 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:500px;height:224px; "alt=" Wkiom1vtvsnqiph3aad _lyjpdl4651.jpg "/>
4. Use Eclipse to modify HDFS content
After the previous step, the left "Project Explorer" should appear in the configuration of HDFs, right-click, you can create new folders, delete folders, upload files, download files, delete files and other operations.
Note: The changes cannot be displayed immediately after each operation in eclipse and must be refreshed.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/D3/wKioL1VTV6miygsGAAGQPeLqUJM999.jpg "title=" 5.png " Width= "height=" 364 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:364px; "alt=" Wkiol1vtv6miygsgaagqpelqujm999.jpg "/>
Install Eclipse on Linux and configure the MapReduce program development environment