分享

自己编写Hadoop插件:Hadoop上路_01-手动制作hadoop-eclipse-plugin插件

问题导读:
1、制作hadoop-eclipse-plugin插件,需要什么环境?
2、我们如何编译呢?






目录
一.环境准备
1.VirtualBox虚拟机:
1)安装扩展:
2)开启网络(必需连接到互联网):
3)安装Ubuntu:
2.安装jdk,配置环境变量:  
3.安装ant:  
1)安装m4:  
2)安装autoconf:  
3)安装automake:  
4)安装libtool:  
5)安装ant:  
4.安装eclipse:  
5.解压hadoop:

二.配置hadoop
1.设置用户的操作权限: sudo chmod 777 -R hadoop
2.%hadoop%/src/contrib/eclipse-plugin/build.xml
1)取消ivy-download:
2)添加将要打包到plugin中的第三方jar包列表:  
3.%hadoop%/src/contrib/build-contrib.xml :
1)添加hadoop的version和eclipse的eclipse.home属性:  
2)取消ivy-download:
4.编辑%HADOOP_HOME%/build.xml:
1)修改hadoop版本号:
2)取消ivy-download:
5.修改%hadoop%/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF:

三.执行ANT
1.进入到%hadoop%/执行ant compile:   
2.进入到%hadoop%/build/contrib/eclipse-plugin/执行 ant jar :  


一.环境准备:
1.VirtualBox虚拟机:

VirtualBox-4.2.8-83876-Win.exe

1)安装扩展:

Oracle_VM_VirtualBox_Extension_Pack-4.2.8-83876.vbox-extpack


2)开启网络(必需连接到互联网):
3)安装Ubuntu:
ubuntu-10.04-desktop-i386.iso  
(1)安装:   
111.png


2)启用粘贴板共享和拖放支持:


3)安装增强功能:


(4)初始化root用户:
  1. sudo passwd root
复制代码

2.安装jdk,配置环境变量:  
jdk-6u24-linux-i586.bin

  1. sudo chmod u+x jdk-6u24-linux-i586.bin
  2. sudo -s ./jdk-6u24-linux-i586.bin
  3. sudo gedit /etc/profile
  4. export JAVA_HOME=%JDK%
  5. export CLASSPATH=$JAVA_HOME/lib
  6. export PATH=$JAVA_HOME/bin:$PATH
  7. source /etc/profile
复制代码


或   jdk-7u17-linux-i586.tar.gz  ( 本例使用 )  

  1. sudo tar -xzvf jdk-7u17-linux-i586.tar.gz
  2. sudo gedit /etc/profile
  3. export JAVA_HOME=%JDK%
  4. export CLASSPATH=$JAVA_HOME/lib
  5. export PATH=$JAVA_HOME/bin:$PATH
  6. source /etc/profile
复制代码

193527_gJuj_256028.png


193536_72Z1_256028.png


3.安装ant:  

        m4-1.4.16.tar.gz  
        autoconf-2.65.tar.gz  
        automake-1.13.tar.gz   
        libtool-2.4.tar.gz  
        apache-ant-1.9.0-bin.tar.gz  
1)安装m4:  


  1. sudo tar -zxvf m4-1.4.16.tar.gz
  2. cd m4-1.4.16
  3. sudo ./configure --prefix=/usr/local
  4. sudo make
  5. sudo make install
复制代码

2)安装autoconf:  
  1. sudo tar -zxvf autoconf-2.65.tar.gz
  2. cd autoconf-2.65
  3. sudo ./configure --prefix=/usr/local
  4. sudo make
  5. sudo make install
复制代码

3)安装automake:
  1. sudo tar -zxvf automake-1.13.tar.gz
  2. cd automake-1.13
  3. sudo ./configure --prefix=/usr/local
  4. sudo make
  5. sudo make install
复制代码

4)安装libtool:  
  1. sudo tar -zxvf libtool-2.4.tar.gz
  2. cd libtool-2.4
  3. sudo ./configure --prefix=/usr/local
  4. sudo make
  5. sudo make install
复制代码

5)安装ant:  
  1. sudo tar -zxvf apache-ant-1.9.0-bin.tar.gz
  2. sudo gedit /etc/profile
  3. export ANT_HOME=%ANT%
  4. export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
  5. source /etc/profile
复制代码

194134_XljI_256028.png

194143_qI60_256028.png


4.安装eclipse:  
eclipse-SDK-4.2-linux-gtk.tar.gz   
  1. sudo tar -zxvf eclipse-SDK-4.2-linux-gtk.tar.gz
复制代码

5.解压hadoop:
hadoop-1.1.2.tar.gz   
(1)解压到合适的目录:

  1. sudo tar -zxvf hadoop-1.1.2.tar.gz
复制代码

2)拷贝%hadoop%/ivy/ivy-*.jar%ant%/lib
  1. sudo cp /home/hep/hadoop/ivy/ivy-2.1.0.jar /home/hep/ant/lib/
复制代码

二.配置hadoop:  
1.设置用户的操作权限
  1. sudo chmod 777 -R hadoop
复制代码

194557_JGCX_256028.png


2.%hadoop%/src/contrib/eclipse-plugin/build.xml
1)取消ivy-download
194613_IBLw_256028.png

2)添加将要打包到plugin中的第三方jar包列表:  
  1. <!-- Override jar target to specify manifest -->
  2. <target name="jar" depends="compile" unless="skip.contrib">
  3. <mkdir dir="${build.dir}/lib"/>
  4. <!-- 自定义的修改内容:begin -->
  5. <!--
  6. <copy file="${hadoop.root}/build/hadoop-core-${version}.jar"
  7.   tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/>
  8. <copy file="${hadoop.root}/build/ivy/lib/Hadoop/common/commons-cli-${commons-cli.version}.jar"
  9.   todir="${build.dir}/lib" verbose="true"/>
  10. -->
  11. <copy file="${hadoop.root}/hadoop-core-${version}.jar" tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/>
  12. <copy file="${hadoop.root}/lib/commons-cli-1.2.jar"  todir="${build.dir}/lib" verbose="true"/>
  13. <copy file="${hadoop.root}/lib/commons-configuration-1.6.jar"  todir="${build.dir}/lib" verbose="true"/>
  14. <copy file="${hadoop.root}/lib/commons-httpclient-3.0.1.jar"  todir="${build.dir}/lib" verbose="true"/>
  15. <copy file="${hadoop.root}/lib/commons-lang-2.4.jar"  todir="${build.dir}/lib" verbose="true"/>
  16. <copy file="${hadoop.root}/lib/jackson-core-asl-1.8.8.jar"  todir="${build.dir}/lib" verbose="true"/>
  17. <copy file="${hadoop.root}/lib/jackson-mapper-asl-1.8.8.jar"  todir="${build.dir}/lib" verbose="true"/>
  18. <!-- 自定义的修改内容:end -->
  19. <jar
  20. jarfile="${build.dir}/hadoop-${name}-${version}.jar"
  21. manifest="${root}/META-INF/MANIFEST.MF">
  22. <fileset dir="${build.dir}" includes="classes/ lib/"/>
  23. <fileset dir="${root}" includes="resources/ plugin.xml"/>
  24. </jar>
  25. </target><span style="font-size:10pt;line-height:1.5;font-family:'sans serif', tahoma, verdana, helvetica;">  </span>
复制代码


194752_bBaX_256028.png


3.%hadoop%/src/contrib/build-contrib.xml :
1)添加hadoop的version和eclipse的eclipse.home属性:  

  1. <?xml version="1.0"?>
  2. <!-- Imported by contrib/*/build.xml files to share generic targets. -->
  3. <project name="hadoopbuildcontrib" xmlns:ivy="antlib:org.apache.ivy.ant">
  4. <property name="name" value="${ant.project.name}"/>
  5. <property name="root" value="${basedir}"/>
  6. <property name="hadoop.root" location="${root}/../../../"/>
  7. <!-- hadoop版本、eclipse安装路径 -->
  8. <property name="version" value="1.1.2"/>
  9. <property name="eclipse.home" location="%eclipse%"/>
复制代码

8888.png


2)取消ivy-download:
99999.png

4.编辑%HADOOP_HOME%/build.xml:

1)修改hadoop版本号:
88888888888.png


2)取消ivy-download:
77777.png


5.修改%hadoop%/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF:
修改${HADOOP_HOME}/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF的Bundle-ClassPath:

  1. Bundle-ClassPath: classes/,
  2. lib/hadoop-core.jar,
  3. lib/commons-cli-1.2.jar,
  4. lib/commons-configuration-1.6.jar,
  5. lib/commons-httpclient-3.0.1.jar,
  6. lib/commons-lang-2.4.jar,
  7. lib/jackson-core-asl-1.8.8.jar,
  8. lib/jackson-mapper-asl-1.8.8.jar
复制代码

66666.png


三.执行ANT:  
1.进入到%hadoop%/执行ant compile:   

  1. hep@hep-ubuntu:~/hadoop$ ant compile
  2. #此处略去N行
  3. init:
  4.      [echo] contrib: fairscheduler
  5.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler
  6.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler/classes
  7.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler/test
  8.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler/system/classes
  9.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler/examples
  10.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/fairscheduler/test/logs
  11. init-contrib:
  12. ivy-probe-antlib:
  13. ivy-init-antlib:
  14. ivy-init:
  15. [ivy:configure] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  16. ivy-resolve-common:
  17. [ivy:resolve] :: resolving dependencies :: org.apache.hadoop#fairscheduler;working@hep-ubuntu
  18. [ivy:resolve]   confs: [common]
  19. [ivy:resolve]   found commons-logging#commons-logging;1.0.4 in maven2
  20. [ivy:resolve]   found commons-collections#commons-collections;3.1 in maven2
  21. [ivy:resolve]   found commons-cli#commons-cli;1.2 in maven2
  22. [ivy:resolve]   found log4j#log4j;1.2.15 in maven2
  23. [ivy:resolve]   found junit#junit;4.5 in maven2
  24. [ivy:resolve]   found org.mortbay.jetty#jetty-util;6.1.26 in maven2
  25. [ivy:resolve]   found org.mortbay.jetty#jetty;6.1.26 in maven2
  26. [ivy:resolve]   found org.mortbay.jetty#servlet-api;2.5-20081211 in maven2
  27. [ivy:resolve]   found org.mortbay.jetty#jsp-api-2.1;6.1.14 in maven2
  28. [ivy:resolve]   found org.codehaus.jackson#jackson-core-asl;1.8.8 in maven2
  29. [ivy:resolve]   found org.codehaus.jackson#jackson-mapper-asl;1.8.8 in maven2
  30. [ivy:resolve]   found commons-httpclient#commons-httpclient;3.0.1 in maven2
  31. [ivy:resolve]   found commons-configuration#commons-configuration;1.6 in maven2
  32. [ivy:resolve]   found org.apache.commons#commons-math;2.1 in maven2
  33. [ivy:resolve]   found commons-lang#commons-lang;2.4 in maven2
  34. [ivy:resolve] downloading http://repo1.maven.org/maven2/commons-collections/commons-collections/3.1/commons-collections-3.1.jar ...
  35. [ivy:resolve] ..................
  36. [ivy:resolve] ........................................
  37. [ivy:resolve] .........................................
  38. [ivy:resolve] ....................................... (546kB)
  39. [ivy:resolve] .. (0kB)
  40. [ivy:resolve]   [SUCCESSFUL ] commons-collections#commons-collections;3.1!commons-collections.jar (7793ms)
  41. [ivy:resolve] downloading http://repo1.maven.org/maven2/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar ...
  42. [ivy:resolve] ................................ (131kB)
  43. [ivy:resolve] .. (0kB)
  44. [ivy:resolve]   [SUCCESSFUL ] org.mortbay.jetty#jsp-api-2.1;6.1.14!jsp-api-2.1.jar (2364ms)
  45. [ivy:resolve] :: resolution report :: resolve 11591ms :: artifacts dl 10176ms
  46.     ---------------------------------------------------------------------
  47.     |                  |            modules            ||   artifacts   |
  48.     |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
  49.     ---------------------------------------------------------------------
  50.     |      common      |   15  |   2   |   2   |   0   ||   15  |   2   |
  51.     ---------------------------------------------------------------------
  52. ivy-retrieve-common:
  53. [ivy:retrieve] :: retrieving :: org.apache.hadoop#fairscheduler [sync]
  54. [ivy:retrieve]  confs: [common]
  55. [ivy:retrieve]  15 artifacts copied, 0 already retrieved (4672kB/26ms)
  56. [ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
  57. [ivy:cachepath] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  58. compile:
  59.      [echo] contrib: fairscheduler
  60.     [javac] /home/hep/hadoop/src/contrib/build-contrib.xml:191: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  61.     [javac] Compiling 21 source files to /home/hep/hadoop/build/contrib/fairscheduler/classes
  62.     [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
  63.     [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  64. check-libhdfs-fuse:
  65. check-libhdfs-exists:
  66. compile:
  67. check-contrib:
  68. init:
  69.      [echo] contrib: gridmix
  70.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix
  71.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix/classes
  72.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix/test
  73.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix/system
  74.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix/system/classes
  75.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/gridmix/test/logs
  76. init-contrib:
  77. ivy-probe-antlib:
  78. ivy-init-antlib:
  79. ivy-init:
  80. [ivy:configure] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  81. ivy-resolve-common:
  82. [ivy:resolve] :: resolving dependencies :: org.apache.hadoop#gridmix;working@hep-ubuntu
  83. [ivy:resolve]   confs: [common]
  84. [ivy:resolve]   found commons-logging#commons-logging;1.0.4 in maven2
  85. [ivy:resolve]   found log4j#log4j;1.2.15 in maven2
  86. [ivy:resolve]   found junit#junit;4.5 in maven2
  87. [ivy:resolve]   found commons-httpclient#commons-httpclient;3.0.1 in maven2
  88. [ivy:resolve]   found commons-codec#commons-codec;1.4 in maven2
  89. [ivy:resolve]   found commons-net#commons-net;3.1 in maven2
  90. [ivy:resolve]   found org.mortbay.jetty#jetty;6.1.26 in maven2
  91. [ivy:resolve]   found org.mortbay.jetty#jetty-util;6.1.26 in maven2
  92. [ivy:resolve]   found org.mortbay.jetty#servlet-api;2.5-20081211 in maven2
  93. [ivy:resolve]   found org.mortbay.jetty#jsp-api-2.1;6.1.14 in maven2
  94. [ivy:resolve]   found org.mortbay.jetty#jsp-2.1;6.1.14 in maven2
  95. [ivy:resolve]   found asm#asm;3.2 in maven2
  96. [ivy:resolve]   found com.sun.jersey#jersey-core;1.8 in maven2
  97. [ivy:resolve]   found com.sun.jersey#jersey-json;1.8 in maven2
  98. [ivy:resolve]   found com.sun.jersey#jersey-server;1.8 in maven2
  99. [ivy:resolve]   found commons-cli#commons-cli;1.2 in maven2
  100. [ivy:resolve]   found org.codehaus.jackson#jackson-mapper-asl;1.8.8 in maven2
  101. [ivy:resolve]   found org.codehaus.jackson#jackson-core-asl;1.8.8 in maven2
  102. [ivy:resolve]   found commons-configuration#commons-configuration;1.6 in maven2
  103. [ivy:resolve]   found commons-lang#commons-lang;2.4 in maven2
  104. [ivy:resolve]   found commons-logging#commons-logging;1.1.1 in maven2
  105. [ivy:resolve]   found commons-digester#commons-digester;1.8 in maven2
  106. [ivy:resolve]   found commons-beanutils#commons-beanutils;1.7.0 in maven2
  107. [ivy:resolve]   found commons-beanutils#commons-beanutils-core;1.8.0 in maven2
  108. [ivy:resolve]   found org.apache.commons#commons-math;2.1 in maven2
  109. [ivy:resolve] downloading http://repo1.maven.org/maven2/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar ...
  110. [ivy:resolve] ................................................................................
  111. [ivy:resolve] ...........................................................................
  112. [ivy:resolve] ............................................ (1000kB)
  113. [ivy:resolve] .. (0kB)
  114. [ivy:resolve]   [SUCCESSFUL ] org.mortbay.jetty#jsp-2.1;6.1.14!jsp-2.1.jar (5438ms)
  115. [ivy:resolve] :: resolution report :: resolve 3147ms :: artifacts dl 5453ms
  116. [ivy:resolve]   :: evicted modules:
  117. [ivy:resolve]   commons-logging#commons-logging;1.0.4 by [commons-logging#commons-logging;1.1.1] in [common]
  118. [ivy:resolve]   commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [common]
  119.     ---------------------------------------------------------------------
  120.     |                  |            modules            ||   artifacts   |
  121.     |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
  122.     ---------------------------------------------------------------------
  123.     |      common      |   28  |   1   |   1   |   3   ||   25  |   1   |
  124.     ---------------------------------------------------------------------
  125. ivy-retrieve-common:
  126. [ivy:retrieve] :: retrieving :: org.apache.hadoop#gridmix [sync]
  127. [ivy:retrieve]  25 artifacts copied, 0 already retrieved (7872kB/77ms)
  128. [ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
  129. [ivy:cachepath] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
复制代码
接上面的代码:
  1. compile:
  2.      [echo] contrib: gridmix
  3.     [javac] /home/hep/hadoop/src/contrib/build-contrib.xml:191: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  4.     [javac] Compiling 44 source files to /home/hep/hadoop/build/contrib/gridmix/classes
  5.     [javac] 注: /home/hep/hadoop/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/PseudoLocalFs.java使用或覆盖了已过时的 API。
  6.     [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  7.     [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
  8.     [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  9. Trying to override old definition of task macro_tar
  10. check-contrib:
  11. init:
  12.      [echo] contrib: hdfsproxy
  13.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy
  14.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/classes
  15.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/test
  16.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/system
  17.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/system/classes
  18.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/examples
  19.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/hdfsproxy/test/logs
  20. init-contrib:
  21. ivy-probe-antlib:
  22. ivy-init-antlib:
  23. ivy-init:
  24. ivy-resolve-common:
  25. [ivy:resolve] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  26. [ivy:resolve] :: resolving dependencies :: org.apache.hadoop#hdfsproxy;working@hep-ubuntu
  27. [ivy:resolve]   confs: [common]
  28. [ivy:resolve]   found commons-httpclient#commons-httpclient;3.0.1 in maven2
  29. [ivy:resolve]   found commons-logging#commons-logging;1.0.4 in maven2
  30. [ivy:resolve]   found commons-cli#commons-cli;1.2 in maven2
  31. [ivy:resolve]   found log4j#log4j;1.2.15 in maven2
  32. [ivy:resolve]   found commons-logging#commons-logging-api;1.0.4 in maven2
  33. [ivy:resolve]   found junit#junit;4.5 in maven2
  34. [ivy:resolve]   found org.slf4j#slf4j-api;1.4.3 in maven2
  35. [ivy:resolve]   found org.slf4j#slf4j-log4j12;1.4.3 in maven2
  36. [ivy:resolve]   found xmlenc#xmlenc;0.52 in maven2
  37. [ivy:resolve]   found org.mortbay.jetty#jetty;6.1.26 in maven2
  38. [ivy:resolve]   found org.mortbay.jetty#jetty-util;6.1.26 in maven2
  39. [ivy:resolve]   found org.mortbay.jetty#servlet-api;2.5-20081211 in maven2
复制代码
不知道,这是怎么回事。后面的代码,总是写上去后,点保存后总是会莫名的消失,请见谅!!



2.进入到%hadoop%/build/contrib/eclipse-plugin/执行 ant jar :
  1. hep@hep-ubuntu:~$ cd ~/hadoop/src/contrib/eclipse-plugin
  2. hep@hep-ubuntu:~/hadoop/src/contrib/eclipse-plugin$ ant jar
  3. Buildfile: /home/hep/hadoop/src/contrib/eclipse-plugin/build.xml
  4. check-contrib:
  5. init:
  6.      [echo] contrib: eclipse-plugin
  7. init-contrib:
  8. ivy-probe-antlib:
  9. ivy-init-antlib:
  10. ivy-init:
  11. [ivy:configure] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
  12. [ivy:configure] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  13. ivy-resolve-common:
  14. [ivy:resolve] :: resolving dependencies :: org.apache.hadoop#eclipse-plugin;working@hep-ubuntu
  15. [ivy:resolve]   confs: [common]
  16. [ivy:resolve]   found commons-logging#commons-logging;1.0.4 in maven2
  17. [ivy:resolve]   found log4j#log4j;1.2.15 in maven2
  18. [ivy:resolve] :: resolution report :: resolve 171ms :: artifacts dl 4ms
  19.     ---------------------------------------------------------------------
  20.     |                  |            modules            ||   artifacts   |
  21.     |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
  22.     ---------------------------------------------------------------------
  23.     |      common      |   2   |   0   |   0   |   0   ||   2   |   0   |
  24.     ---------------------------------------------------------------------
  25. ivy-retrieve-common:
  26. [ivy:retrieve] :: retrieving :: org.apache.hadoop#eclipse-plugin [sync]
  27. [ivy:retrieve]  confs: [common]
  28. [ivy:retrieve]  0 artifacts copied, 2 already retrieved (0kB/6ms)
  29. [ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
  30. [ivy:cachepath] :: loading settings :: file = /home/hep/hadoop/ivy/ivysettings.xml
  31. compile:
  32.      [echo] contrib: eclipse-plugin
  33.     [javac] /home/hep/hadoop/src/contrib/eclipse-plugin/build.xml:61: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  34. jar:
  35.     [mkdir] Created dir: /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  36.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  37.      [copy] Copying /home/hep/hadoop/hadoop-core-1.1.2.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/hadoop-core.jar
  38.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  39.      [copy] Copying /home/hep/hadoop/lib/commons-cli-1.2.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/commons-cli-1.2.jar
  40.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  41.      [copy] Copying /home/hep/hadoop/lib/commons-configuration-1.6.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/commons-configuration-1.6.jar
  42.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  43.      [copy] Copying /home/hep/hadoop/lib/commons-httpclient-3.0.1.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/commons-httpclient-3.0.1.jar
  44.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  45.      [copy] Copying /home/hep/hadoop/lib/commons-lang-2.4.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/commons-lang-2.4.jar
  46.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  47.      [copy] Copying /home/hep/hadoop/lib/jackson-core-asl-1.8.8.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/jackson-core-asl-1.8.8.jar
  48.      [copy] Copying 1 file to /home/hep/hadoop/build/contrib/eclipse-plugin/lib
  49.      [copy] Copying /home/hep/hadoop/lib/jackson-mapper-asl-1.8.8.jar to /home/hep/hadoop/build/contrib/eclipse-plugin/lib/jackson-mapper-asl-1.8.8.jar
  50.       [jar] Building jar: /home/hep/hadoop/build/contrib/eclipse-plugin/hadoop-eclipse-plugin-1.1.2.jar
  51. BUILD SUCCESSFUL
  52. Total time: 3 seconds
复制代码

生成的插件jar就在本目录中。

成品插件下载地址


没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条