Hadoop-Eclipse plug-in download and installation

Eclipse plug-in download and installation

1. First download the corresponding version of hadoop plugin

  It is recommended to download hadoop-eclipse-plugin-2.7.3.jar here.

Baidu network disk download
link: https://pan.baidu.com/s/1cYcli8iiMscEQx7mHSVgtQ
extraction code: rmhu

Download hadoop-eclipse-plugin-2.7.3.jar

2. Enter the Eclipse directory, find the Plugins folder, talk about copying the plug-in you just downloaded (note that Eclipse is best to be closed) and restart Eclipse

  

 

3. Open, Eclipse, use Project Explorer, you will find an additional DFS Location on the left, indicating that the installation has been successful

 

   

 

 

4. Open Window-> Preferens, you can see Hadoop Map / Reduc options. The higher version of eclipse may not see this option, just search for hadoop. Then click and add hadoop-2.6.0 to come in, as shown:

  

 

  Select the directory to decompress the Hadoop directory

5. Open Windows–Show View

Configure Map / ReduceLocations

1) Click Window-> Show View-> MapReduce Tools Click Map / ReduceLocation

2) Click the Map / ReduceLocation tab and click the small icon on the right to open the Hadoop Location configuration window: Enter the Location Name and any name. Configure the Map / Reduce Master and DFS Mastrer, and configure the Host and Port as hdfs-site.xml and The settings of core-site.xml can be consistent.

 

3) After opening, a small yellow elephant tab will appear below, if not, please try to switch the java view

 

 

4) Right-click in the blank space and select New Hadoop Location

 

Modify as shown

5) In the window system, you need to download the Hadoop window environment

 

  Download hadoopwindows-master.zip in the network disk, unzip and copy it to the bin directory of hadoop, here I use hadoop2.7.7

  

  6) And configure the environment variable HADOOP_HOME = D: \ xl-download \ hadoop-2.7.7 \ hadoop-2.7.7 \ bin (change to the bin folder under your own Hadoop installation directory

  

6. Possible problems

1. If null / bin / winutils.exe appears, extract the hadoopbin_for_hadoop2.7.7.zip to the bin directory of the hadoop installation directory, and then double-click winutils.exe. If the window flashes, there is no problem, if not, then You need to put msvcr120.dll in the C: \ Windows \ System32 directory, and then re-execute winutils.exe. Then need to configure environment variables, add HADOOP_HOME and Path

2. If AccessControllException appears in MapReduce, you need to add the environment variable HADOOP_USER_NAME, the value is root

  

 

Guess you like

Origin www.cnblogs.com/spaaacer/p/12692786.html