Create Hadoop project in IDEA Intellij and Commit project to Hadoop platform
来源:互联网 发布:李小龙格斗数据 编辑:程序博客网 时间:2024/04/29 09:42
1.First ,we should set up Java ,Hadoop,and IDEA Intellij-2016.3 . I have Installed Java-1.8 , Hadoop-2.7.3 and IDEA Intellij-2016.3
2.Start-up HDFS ,YARN
3.We create new Maven Project, then click next
4.Input GroupId and ArtifactId,Then selectnext
5.Input Project name and location and click finish
6.Set Run Configuration with the optionRun ->Edit Configurations,SetProgram argumentswithinput file pathand output file path(It can be in HDFS).Then click OK.
7.Select File -> Project Structure to add hadoop jars,Which are common , yarn , mapreduce , hdfs coming from ~hadoop home/share/hadoop . Click OK.
8.Then you can run your MapReduce program in local.
9.If you want commit project to Hadoop platform, you must setartifacts to createProject Jar. In this step, you should selectFile -> Project Structureto add artifacts.Click" + " and write Name .Then Click"+ " , which is underOutput Layout. Finally modificationMain Class, which is your project' s main class.ClickOK.
10.Build artifact. Select Build ->Build Artifacts ...->MatrixMultiply (which is created by yourself in previous step).
11.Commit project to Hadoop platform. You should add code in your project as :
conf.set("mapred.jar", "./out/artifacts/MatrixMultiply/MatrixMultiply.jar");conf.set("mapreduce.framework.name", "yarn");12.Look at the result:According to the log , we can get that the job have committed to hadoop platform.
13.We can view the job' s information at http://localhost:8088.
- Create Hadoop project in IDEA Intellij and Commit project to Hadoop platform
- IntelliJ IDEA import and reimport a project
- IntelliJ IDEA 切换 project
- Maven - Unable to import maven project in IntelliJ IDEA on Mac
- Steps to Create Setup and Deployment Project in Dot Net VS 2008
- Configure First SpringMVC project in IntelliJ IDEA(fail)
- Attaching sources in IntelliJ IDEA for scala project 源码
- Intellij IDEA Maven:Generating Project in Batch mode 卡住问题
- Intellij idea 修改recent project
- Intellij Idea导入maven project
- IntelliJ IDEA 删除项目Project
- Intellij Idea导入maven project
- Intellij IDEA project structure设置
- 【intellij idea】Project Structure 讲解
- IntelliJ IDEA 的project structure
- hadoop---->Project Voldemort
- idea创建maven项目失败, Failed to create a Maven project:'D:/xxx' already exists in VFS
- Intellij idea Hadoop 开发
- 短时傅里叶变换
- 全栈必备MySQL性能调优
- 日常补
- 关于“$M.Ajax的请求是异步的还是同步的”的回答
- shell脚本中的一些符号
- Create Hadoop project in IDEA Intellij and Commit project to Hadoop platform
- 20个常用的正则表达式
- extjs使用、总结、感悟
- Windows 调色板
- tcpdump 基于mac地址抓取数据包
- dialog自定义圆角对框
- vector初步:初始化和显示数值
- Hadoop常用命令汇总
- unity 圆形滑动条slider 弧形滑动条效果及代码分析