intellij idea hadoop mapreduce 开发调试

在idea中的hadoop程序开发(MAC或Linux)

  1. hadoop的安装(自己查)

  2. 新建一个java projectintellij idea hadoop mapreduce 开发调试_第1张图片

    3.配置项目结构与依赖(project structure)intellij idea hadoop mapreduce 开发调试_第2张图片

4.配置构件(artifacts):名称(name),类型(Type),构件时重新编译打包(Build on make),输出目录(Output directory),输出规划(Output Layout),选择当前模块的输出构件

intellij idea hadoop mapreduce 开发调试_第3张图片

5.编写代码(WordCount.java)

intellij idea hadoop mapreduce 开发调试_第4张图片

6.配置调试运行方式intellij idea hadoop mapreduce 开发调试_第5张图片

7.新建一个运行配置Application

intellij idea hadoop mapreduce 开发调试_第6张图片


8.配置运行参数:main函数为RunJar,运行参数为(①wordcount.jar构件的的jar包,②主类,③参数一:输入,④参数二:输出),保存,OK。

intellij idea hadoop mapreduce 开发调试_第7张图片

intellij idea hadoop mapreduce 开发调试_第8张图片

9.用debug运行配置的application,打上断点,进行调试

intellij idea hadoop mapreduce 开发调试_第9张图片

intellij idea hadoop mapreduce 开发调试_第10张图片

10,完成

intellij idea hadoop mapreduce 开发调试_第11张图片


你可能感兴趣的:(hadoop,大数据,调试,idea,idea,intellij)