Java Hadoop 2.2.0 Eclipse 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20021169/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 22:23:31  来源:igfitidea点击:

Hadoop 2.2.0 Eclipse Plugin

javaeclipsemavenhadoop

提问by user2991640

I have installed hadoop-2.2.0 (single node cluser) and maven3.3.1 on my pc. I want to program MapReduce code in eclipse. So my questions are:

我已经在我的电脑上安装了 hadoop-2.2.0(单节点集群)和 maven3.3.1。我想在 eclipse 中编写 MapReduce 代码。所以我的问题是:

  1. What is the relationship between mapreduce and maven?
  2. How do I debug the code in eclipse? A tutorial says that I should first install a hadoop eclipse plugin in an old version, but it seems there isn't a plugin for the new version hadoop-2.2.0. How can I solve this?
  1. mapreduce 和 maven 是什么关系?
  2. 如何在eclipse中调试代码?一个教程说我应该先在旧版本中安装一个hadoop eclipse插件,但似乎没有新版本hadoop-2.2.0的插件。我该如何解决这个问题?

采纳答案by constantlearner

  1. There is no direct relationship between maven and hadoop

    Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

    And using maven you can download dependencies to develop hadoop/mapreduce project

    http://mvnrepository.com/artifact/org.apache.hadoop/

  2. There is no eclipse plugin for 2.2.0, it's still in development stage but you can try IntelliJ IDEA, which is also a nice development tool for java.

    http://vichargrave.com/intellij-project-for-building-hadoop-the-definitive-guide-examples/

  1. maven和hadoop没有直接关系

    Apache Maven 是一个软件项目管理和理解工具。基于项目对象模型 (POM) 的概念,Maven 可以从一条中央信息中管理项目的构建、报告和文档。

    并且使用 maven 可以下载依赖项来开发 hadoop/mapreduce 项目

    http://mvnrepository.com/artifact/org.apache.hadoop/

  2. 2.2.0没有eclipse插件,还在开发阶段,不过你可以试试IntelliJ IDEA,它也是一个不错的java开发工具。

    http://vichargrave.com/intellij-project-for-building-hadoop-the-definitive-guide-examples/

回答by user3059703

you can download and compile the eclipse plugin for hadoop 2.2.0 from github at https://github.com/winghc/hadoop2x-eclipse-plugin

您可以在https://github.com/winghc/hadoop2x-eclipse-plugin从 github 下载并编译 hadoop 2.2.0 的 eclipse 插件

回答by Abhishek Goel

I have compiled the eclipse plugin from https://github.com/winghc/hadoop2x-eclipse-pluginand uploaded the final jar file on github ( https://github.com/abhishekgoel137/hadoop-eclipse-plugins).

我已经从https://github.com/winghc/hadoop2x-eclipse-plugin编译了 eclipse 插件,并将最终的 jar 文件上传到了 github ( https://github.com/abhishekgoel137/hadoop-eclipse-plugins)。

will save you some time to compile.

将节省您一些时间来编译。

Hope it helps.

希望能帮助到你。