gpt4 book ai didi

eclipse - 如何构建 Hadoop eclipse 插件

转载 作者:可可西里 更新时间:2023-11-01 16:26:46 26 4
gpt4 key购买 nike

我希望能够从

构建 Hadoop eclipse 插件

http://svn.apache.org/repos/asf/hadoop/common/tags/

我已经设法使用 subclipse 将源代码导入我的 Eclipse 工作站,现在我想构建 jar。我是否将其构建为可执行 jar?没有与源关联的启动配置。是否有关于如何执行此操作的教程?

最佳答案

通常的做法是:

  1. Checkout the code from Apache's SVN (Done in your case).
  2. Modify build.properties in /src/contrib/eclipse-plugin and add : eclipse.home=/path/to/your/eclipse/folder
  3. Download apache forrest 0.8 and sun jdk (Preferably java 6).
  4. Run ant command as "ant clean package -Djava6.home=/usr/lib/jvm/java-6-sun (Change the path according your machine and make sure you are connected to the network)
  5. At this point eclipse plugin should be there in /build/contrib/eclipse-plugin but the jar is not yet ready to work as it misses some required jars.
  6. Add the following jars from your HADOOP_HOME/lib folder to the plugin/lib folder commons-configuration-1.6.jar commons-httpclient-3.0.1.jar commons-lang-2.4.jar jackson-core-asl-1.0.1.jar jackson-mapper-asl-1.0.1.jar
  7. Modify MANIFEST.MF in /META-INF of the jar to include the path of these added jars.
  8. Copy this jar to plugins folder of eclipse
  9. Run "eclipse -clean"

网上也有一些帖子是这样的。看看它们是否适合你:

Link 1

Link 2

关于eclipse - 如何构建 Hadoop eclipse 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17255447/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com