Friday, 8 November 2013

Eclipse with Hadoop on Ubuntu

1 comment
hi friends this tutorial is for you

To configure Eclipse IDE in Hadoop 0.20.2  with Ubuntu 12.04 LTS


After successfully configured  hadoop setup on ubuntu follow below steps for to setup eclipse

(see step by step documentation in below link)
http://mytechlearners.com


Step 1: Download Eclipse Europa from below link




Step 2: copy eclipse file to usr/local from downloads

sudo cp $HOME/Downloads/<eclispe file nane> /usr/local/

Step 3: extract eclipse file in /usr/local directory

first     change direcoty to /usr/local

$ cd /usr/local   (enter)
$ sudo tar -xzvf   <eclipse-file-name>
$ ls  (you will get ecllispe named directory)

and now open usr/local/eclipse directory  from  file system (not from Terminal) then open eclipse (diamond symbol file)

Step 4: copy eclipse jar from hadoop to eclipse

$ sudo cp /usr/local/hadoop/contrib/eclipse-plugin/<jar-file-name> /usr/local/eclipse/plugins

now restart (close and open) eclipse .. then goto windows-->open perspective--> other --> select Map/Reduce and click on ok.

Step 5: Right click in the Map/Reduce Locations view and select 'New Hadoop Location'

In the window that appears, type in 'HDFS Cluster' for the Location name. Under Map/Reduce Master, type in localhost for the Host, and 9101 for the Port. For DFS Master, make sure the 'Use M/R Master host' checkbox is selected, and type in 9100 for the Port. For the User name, type in 'User'. Click 'Finish'

Step 6: In the Project Explorer window on the left, you should now be able to expand the DFS Locations tree and see your new location. Continue to expand it and you should see something like the following file structure:
         DFS Locations
                 -> HDFS Cluster(1)
                          -> (2)
                                   -> tmp(1)
                                   -> huser(0)
                                            ->

At this point you can create directories and files and upload them to the HDFS from Eclipse, or you can create them through the cygwin window as you did in step 7 in the previous section.








1 comment:

  1. Please give me your mobile number i will contact u on hadoop training

    ReplyDelete