编译hadoop-eclipse-2.7.7插件遇到的坑

学习Hadoop之路漫漫

Linux上配置完Hadoop的集群后就开始在eclipse上实现HDFS/MapReduce,然后要编译hadoop-eclipse插件却出现了问题。

已安装Eclipse,java环境,hadoop,ant,还有maven(可以留言找我要相应的安装包)
下载ant: https://ant.apache.org/bindownload.cgi
之后的配置看Apache ant的安装与使用
下载hadoop,我的版本是2.7.7
hadoop2x-eclipse-plugin-master在GitHub上下载,
在这里插入图片描述
解压之后在cmd进入到它的hadoop2x-eclipse-plugin-master\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin这个目录下

然后编译:
ant jar -Dhadoop.version=你的hadoop版本 -Declipse.home=你的Eclipse安装地址 -Dhadoop.home=hadoop安装地址

就比如我的是:
ant jar -Dversion=2.7.7 -Dhadoop.version=2.7.7 -Declipse.home=D:\Program\Java\Eclipse\eclipse -Dhadoop.home=D:\Program\Java\hadoop\hadoop-2.7.7
然后就出现了下面的错误!!!(错误中的路径和上面的路径不一样是因为网上说路径中间不能有空格所以我换了位置,但没有用)

别着急走,后面还有解决方法噢。

在编译过程中遇到了下面的问题:
(为啥老师讲的时候刷刷刷就过了,我要捣鼓这么久!!在这里插入图片描述

D:\StudyInSchool\Hadoop\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin>ant
Buildfile: D:\StudyInSchool\Hadoop\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\build.xml

check-contrib:
     [echo] eclipse.home unset: skipping eclipse plugin

init:

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:
[ivy:configure] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = D:\StudyInSchool\Hadoop\hadoop\hadoop2x-eclipse-plugin-master\ivy\ivysettings.xml

ivy-resolve-common:

一直停留在ivy-resolve-common:

**

解决方法

**

  1. 一直停留在ivy-resolve-common不动:

    在这里插入图片描述
    遇到这个就修改文件build.xml(位置:…\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin)
    把这一行(大概在70行左右)原来的target中的depends=“init, ivy-retrieve-common” 去掉其中的 ivy-retrieve-common后重新编译

    原本是<target name="compile" depends="init, ivy-retrieve-common" unless="skip.contrib">
    改成:
    <target name="compile" depends="init" unless="skip.contrib">
        <echo message="contrib: ${name}"/>
        <javac
         encoding="${build.encoding}"
         srcdir="${src.dir}"
         includes="**/*.java"
         destdir="${build.classes}"
         debug="${javac.debug}"
         deprecation="${javac.deprecation}">
         <classpath refid="classpath"/>
        </javac>
      </target>
    
    
  2. 有的同学可能改完上面会出现以下问题:
    在这里插入图片描述
    错误就出在我们刚刚改的那一块,不用管它,继续后面的操作,全部改完就可以运行了。
    (之所以把它列为一个点,是因为搜索时有看到上面的解决,但没有说到后面这个问题)

  3. 接着修改两个相关文件
    一个还是刚刚那个
    hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin/build.xml
    第二个是 hadoop2x-eclipse-plugin-master/ivy/libraries.properties

    build.xml(修改后的)

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    
    <!--
       Licensed to the Apache Software Foundation (ASF) under one or more
       contributor license agreements.  See the NOTICE file distributed with
       this work for additional information regarding copyright ownership.
       The ASF licenses this file to You under the Apache License, Version 2.0
       (the "License"); you may not use this file except in compliance with
       the License.  You may obtain a copy of the License at
    
           http://www.apache.org/licenses/LICENSE-2.0
    
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
    -->
    
    <project default="jar" name="eclipse-plugin">
    
      <import file="../build-contrib.xml"/>
    
      <path id="eclipse-sdk-jars">
        <fileset dir="${eclipse.home}/plugins/">
          <include name="org.eclipse.ui*.jar"/>
          <include name="org.eclipse.jdt*.jar"/>
          <include name="org.eclipse.core*.jar"/>
          <include name="org.eclipse.equinox*.jar"/>
          <include name="org.eclipse.debug*.jar"/>
          <include name="org.eclipse.osgi*.jar"/>
          <include name="org.eclipse.swt*.jar"/>
          <include name="org.eclipse.jface*.jar"/>
    
          <include name="org.eclipse.team.cvs.ssh2*.jar"/>
          <include name="com.jcraft.jsch*.jar"/>
        </fileset> 
      </path>
    
      <path id="hadoop-sdk-jars">
        <fileset dir="${hadoop.home}/share/hadoop/mapreduce">
          <include name="hadoop*.jar"/>
        </fileset> 
        <fileset dir="${hadoop.home}/share/hadoop/hdfs">
          <include name="hadoop*.jar"/>
        </fileset> 
        <fileset dir="${hadoop.home}/share/hadoop/common">
          <include name="hadoop*.jar"/>
        </fileset> 
      </path>
    
    
    
      <!-- Override classpath to include Eclipse SDK jars -->
      <path id="classpath">
        <pathelement location="${build.classes}"/>
        <!--pathelement location="${hadoop.root}/build/classes"/-->
        <path refid="eclipse-sdk-jars"/>
        <path refid="hadoop-sdk-jars"/>
      </path>
    
      <!-- Skip building if eclipse.home is unset. -->
      <target name="check-contrib" unless="eclipse.home">
        <property name="skip.contrib" value="yes"/>
        <echo message="eclipse.home unset: skipping eclipse plugin"/>
      </target>
    
     <target name="compile" unless="skip.contrib">
        <echo message="contrib: ${name}"/>
        <javac
         encoding="${build.encoding}"
         srcdir="${src.dir}"
         includes="**/*.java"
         destdir="${build.classes}"
         debug="${javac.debug}"
         deprecation="${javac.deprecation}">
         <classpath refid="classpath"/>
        </javac>
      </target>
       
      !!!!!!!找到下面这个标签(第一个)!!!!!!!!!
      
      <!-- Override jar target to specify manifest -->
      <target name="jar" depends="compile" unless="skip.contrib">
        <mkdir dir="${build.dir}/lib"/>
        <copy  todir="${build.dir}/lib/" verbose="true">
              <fileset dir="${hadoop.home}/share/hadoop/mapreduce">
               <include name="hadoop*.jar"/>
              </fileset>
        </copy>
        <copy  todir="${build.dir}/lib/" verbose="true">
              <fileset dir="${hadoop.home}/share/hadoop/common">
               <include name="hadoop*.jar"/>
              </fileset>
        </copy>
        <copy  todir="${build.dir}/lib/" verbose="true">
              <fileset dir="${hadoop.home}/share/hadoop/hdfs">
               <include name="hadoop*.jar"/>
              </fileset>
        </copy>
        <copy  todir="${build.dir}/lib/" verbose="true">
              <fileset dir="${hadoop.home}/share/hadoop/yarn">
               <include name="hadoop*.jar"/>
              </fileset>
        </copy>
    
        <copy  todir="${build.dir}/classes" verbose="true">
              <fileset dir="${root}/src/java">
               <include name="*.xml"/>
              </fileset>
        </copy>
    
    
    
        <copy file="${hadoop.home}/share/hadoop/common/lib/protobuf-java-${protobuf.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/log4j-${log4j.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-cli-${commons-cli.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-configuration-${commons-configuration.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-lang-${commons-lang.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-collections-${commons-collections.version}.jar"  todir="${build.dir}/lib" verbose="true"/>  
        <copy file="${hadoop.home}/share/hadoop/common/lib/jackson-core-asl-${jackson.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/jackson-mapper-asl-${jackson.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/slf4j-log4j12-${slf4j-log4j12.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/slf4j-api-${slf4j-api.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/guava-${guava.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/hadoop-auth-${hadoop.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-cli-${commons-cli.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/netty-${netty.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
        <copy file="${hadoop.home}/share/hadoop/common/lib/htrace-core-${htrace.version}-incubating.jar"  todir="${build.dir}/lib" verbose="true"/>  
        <copy file="${hadoop.home}/share/hadoop/common/lib/servlet-api-${servlet-api.version}.jar"  todir="${build.dir}/lib" verbose="true"/>  
        <copy file="${hadoop.home}/share/hadoop/common/lib/commons-io-${commons-io.version}.jar"  todir="${build.dir}/lib" verbose="true"/> 
    
        <jar
          jarfile="${build.dir}/hadoop-${name}-${hadoop.version}.jar"
          manifest="${root}/META-INF/MANIFEST.MF">
          <manifest>
       <attribute name="Bundle-ClassPath" 
        value="classes/, 
     lib/hadoop-mapreduce-client-core-${hadoop.version}.jar,
     lib/hadoop-mapreduce-client-common-${hadoop.version}.jar,
     lib/hadoop-mapreduce-client-jobclient-${hadoop.version}.jar,
     lib/hadoop-auth-${hadoop.version}.jar,
     lib/hadoop-common-${hadoop.version}.jar,
     lib/hadoop-hdfs-${hadoop.version}.jar,
     lib/protobuf-java-${protobuf.version}.jar,
     lib/log4j-${log4j.version}.jar,
     lib/commons-cli-${commons-cli.version}.jar,
     lib/commons-configuration-${commons-configuration.version}.jar,
     lib/commons-httpclient-${commons-httpclient.version}.jar,
     lib/commons-lang-${commons-lang.version}.jar,  
     lib/commons-collections-${commons-collections.version}.jar,  
     lib/jackson-core-asl-${jackson.version}.jar,
     lib/jackson-mapper-asl-${jackson.version}.jar,
     lib/slf4j-log4j12-${slf4j-log4j12.version}.jar,
     lib/slf4j-api-${slf4j-api.version}.jar,
     lib/guava-${guava.version}.jar,
     lib/netty-${netty.version}.jar,
     lib/servlet-api-${servlet-api.version}.jar,  
     lib/commons-io-${commons-io.version}.jar,  
     lib/htrace-core-${htrace.version}-incubating.jar"/> 
       </manifest>
          <fileset dir="${build.dir}" includes="classes/ lib/"/>
          <!--fileset dir="${build.dir}" includes="*.xml"/-->
          <fileset dir="${root}" includes="resources/ plugin.xml"/>
        </jar>
      </target>
    
    </project>
    
    

    要改两处地方的位置都是在标签的最后!!

    ①找到<–! Override jar target to specify manifest -->
    < target name=“jar” depends=“compile” unless=“skip.contrib”>这个标签

    删除这一行
    < copy file="$ {hadoop.home}/share/hadoop/common/lib/htrace-core-$ {htrace.version}.jar" todir="${build.dir}/lib" verbose=“true”/>
    替换成:

     <copy file="${hadoop.home}/share/hadoop/common/lib/htrace-core-${htrace.version}-incubating.jar"  todir="${build.dir}/lib" verbose="true"/>  
     <copy file="${hadoop.home}/share/hadoop/common/lib/servlet-api-${servlet-api.version}.jar"  todir="${build.dir}/lib" verbose="true"/>  
     <copy file="${hadoop.home}/share/hadoop/common/lib/commons-io-${commons-io.version}.jar"  todir="${build.dir}/lib" verbose="true"/> 
    

    ②找到这个标签(就在上面修改的下面)
    < jar
    jarfile=" b u i l d . d i r / h a d o o p {build.dir}/hadoop- {name}- h a d o o p . v e r s i o n . j a r " m a n i f e s t = " {hadoop.version}.jar" manifest=" {root}/META-INF/MANIFEST.MF">
    < manifest>
    < attribute name=“Bundle-ClassPath”

    删除这行:(在lib的最后一行)
    lib/htrace-core-${htrace.version}.jar"/>

    替换成:

     lib/servlet-api-${servlet-api.version}.jar,  
     lib/commons-io-${commons-io.version}.jar,  
     lib/htrace-core-${htrace.version}-incubating.jar"/>
    

保存退出即可

  1. 最后一步了! 修改 hadoop2x-eclipse-plugin-master\ivy的libraries.properties里的版本号。
    由于hadoop2.6到hadoop2.7的jar包版本有很多变化,应该需要自行修改到对应的版本号。

    根据 hadoop-2.7.7\share\hadoop里面的版本对你的文件进行修改

    版本不同版本号也会有差异,自己根据自己安装的版本检查一下

附上我修改之后的libraries.properties

	#   Licensed under the Apache License, Version 2.0 (the "License");
	#   you may not use this file except in compliance with the License.
	#   You may obtain a copy of the License at
	#
	#       http://www.apache.org/licenses/LICENSE-2.0
	#
	#   Unless required by applicable law or agreed to in writing, software
	#   distributed under the License is distributed on an "AS IS" BASIS,
	#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	#   See the License for the specific language governing permissions and
	#   limitations under the License.
	
	#This properties file lists the versions of the various artifacts used by hadoop and components.
	#It drives ivy and the generation of a maven POM
	
	# This is the version of hadoop we are generating
	hadoop.version=2.7.7
	hadoop-gpl-compression.version=0.1.0
	
	#These are the versions of our dependencies (in alphabetical order)
	apacheant.version=1.7.0
	ant-task.version=2.0.10
	
	asm.version=3.2
	aspectj.version=1.6.5
	aspectj.version=1.6.11
	
	checkstyle.version=4.2
	
	commons-cli.version=1.2
	commons-codec.version=1.4
	commons-collections.version=3.2.2
	commons-configuration.version=1.6
	commons-daemon.version=1.0.13
	commons-httpclient.version=3.1
	commons-lang.version=2.6
	commons-logging.version=1.1.3
	commons-logging-api.version=1.1.3
	commons-math.version=3.1.1
	commons-el.version=1.0
	commons-fileupload.version=1.2
	commons-io.version=2.4
	commons-net.version=3.1
	core.version=3.1.1
	coreplugin.version=1.3.2
	
	hsqldb.version=2.0.0
	htrace.version=3.1.0
	
	ivy.version=2.1.0
	
	jasper.version=5.5.12
	jackson.version=1.9.13
	#not able to figureout the version of jsp & jsp-api version to get it resolved throught ivy
	# but still declared here as we are going to have a local copy from the lib folder
	jsp.version=2.1
	jsp-api.version=5.5.12
	jsp-api-2.1.version=6.1.14
	jsp-2.1.version=6.1.14
	jets3t.version=0.9.0
	jetty.version=6.1.26
	jetty-util.version=6.1.26
	jersey-core.version=1.9
	jersey-json.version=1.9
	jersey-server.version=1.9
	junit.version=4.11
	jdeb.version=0.8
	jdiff.version=1.0.9
	json.version=1.0
	
	kfs.version=0.1
	
	log4j.version=1.2.17
	lucene-core.version=2.3.1
	
	mockito-all.version=1.8.5
	jsch.version=0.1.42
	
	oro.version=2.0.8
	
	rats-lib.version=0.5.1
	
	servlet.version=4.0.6
	servlet-api.version=2.5
	slf4j-api.version=1.7.10
	slf4j-log4j12.version=1.7.10
	
	wagon-http.version=1.0-beta-2
	xmlenc.version=0.52
	xerces.version=2.9.1
	
	protobuf.version=2.5.0
	guava.version=11.0.2
	netty.version=3.6.2.Final

修改完就大功告成了!!

编译

cmd进入到hadoop2x-eclipse-plugin-master\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin

输入:
ant jar -Dhadoop.version=你的hadoop版本 -Declipse.home=你的Eclipse安装地址 -Dhadoop.home=hadoop安装地址

我的是:
ant jar -Dversion=2.7.7 -Dhadoop.version=2.7.7 -Declipse.home=D:\Program\Java\Eclipse\eclipse -Dhadoop.home=D:\Program\Java\hadoop\hadoop-2.7.7

出现的警告是java对 @Deprecated 对已过时的项目进行注释,一般不会提示这个警告,这个警告还是会有影响的。
主要是JDK的版本问题,我刚开始用的是最新版的12的,换成1.8的就没问题了
在这里插入图片描述

最后出现
BUILD SUCCESSFUL
就成功了。

D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin>ant jar -Dversion=2.7.7 -Dhadoop.version=2.7.7 -Declipse.home=D:\Program\Java\Eclipse\eclipse -Dhadoop.home=D:\Program\Java\hadoop\hadoop-2.7.7
Buildfile: D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\build.xml

compile:
     [echo] contrib: eclipse-plugin
    [javac] D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\build.xml:76: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 45 source files to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\classes
    [javac] D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\server\HadoopJob.java:95: 警告: [dep-ann] 未使用 @Deprecated 对已过时的项目进行注释
    [javac]   JobStatus status;
    [javac]             ^
    [javac] D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\dfs\DFSFile.java:104: 警告: [dep-ann] 未使用 @Deprecated 对已过时的项目进行注释
    [javac]   public void downloadToLocalFile(final File file)
    [javac]               ^
    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
    [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
    [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    [javac] 2 个警告

jar:
    [mkdir] Created dir: D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying 9 files to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-app-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-app-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-common-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-common-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-core-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-core-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-hs-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-hs-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-hs-plugins-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-hs-plugins-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-jobclient-2.7.7-tests.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-jobclient-2.7.7-tests.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-jobclient-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-jobclient-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-client-shuffle-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-client-shuffle-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\mapreduce\hadoop-mapreduce-examples-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-mapreduce-examples-2.7.7.jar
     [copy] Copying 3 files to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\hadoop-common-2.7.7-tests.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-common-2.7.7-tests.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\hadoop-common-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-common-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\hadoop-nfs-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-nfs-2.7.7.jar
     [copy] Copying 3 files to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\hdfs\hadoop-hdfs-2.7.7-tests.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-hdfs-2.7.7-tests.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\hdfs\hadoop-hdfs-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-hdfs-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\hdfs\hadoop-hdfs-nfs-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-hdfs-nfs-2.7.7.jar
     [copy] Copying 13 files to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-api-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-api-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-applications-distributedshell-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-applications-distributedshell-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-applications-unmanaged-am-launcher-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-applications-unmanaged-am-launcher-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-client-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-client-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-common-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-common-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-registry-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-registry-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-applicationhistoryservice-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-applicationhistoryservice-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-common-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-common-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-nodemanager-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-nodemanager-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-resourcemanager-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-resourcemanager-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-sharedcachemanager-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-sharedcachemanager-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-tests-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-tests-2.7.7.jar
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\yarn\hadoop-yarn-server-web-proxy-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-yarn-server-web-proxy-2.7.7.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\protobuf-java-2.5.0.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\protobuf-java-2.5.0.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\log4j-1.2.17.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\log4j-1.2.17.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\commons-cli-1.2.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\commons-cli-1.2.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\commons-configuration-1.6.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\commons-configuration-1.6.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\commons-lang-2.6.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\commons-lang-2.6.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\commons-collections-3.2.2.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\commons-collections-3.2.2.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\jackson-core-asl-1.9.13.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\jackson-core-asl-1.9.13.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\jackson-mapper-asl-1.9.13.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\jackson-mapper-asl-1.9.13.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\slf4j-log4j12-1.7.10.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\slf4j-log4j12-1.7.10.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\slf4j-api-1.7.10.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\slf4j-api-1.7.10.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\guava-11.0.2.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\guava-11.0.2.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\hadoop-auth-2.7.7.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\hadoop-auth-2.7.7.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\netty-3.6.2.Final.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\netty-3.6.2.Final.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\htrace-core-3.1.0-incubating.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\htrace-core-3.1.0-incubating.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\servlet-api-2.5.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\servlet-api-2.5.jar
     [copy] Copying 1 file to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib
     [copy] Copying D:\Program\Java\hadoop\hadoop-2.7.7\share\hadoop\common\lib\commons-io-2.4.jar to D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\lib\commons-io-2.4.jar
      [jar] Building jar: D:\Program\Java\hadoop\hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-2.7.7.jar

BUILD SUCCESSFUL
Total time: 10 seconds

然后在 hadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin 这里就会有编译好的jar包
在这里插入图片描述
复制粘贴到Eclipse的安装目录的这个文件下…eclipse\plugins 再重启Eclipse就可以了

在这里插入图片描述

后续可能会根据情况继续更新hdfs

发布了22 篇原创文章 · 获赞 11 · 访问量 1118

猜你喜欢

转载自blog.csdn.net/SartinL/article/details/105415812