简体   繁体   English

Hadoop 单节点集群 - 进程未运行

[英]Hadoop Single Node Cluster - Process Not Running

I have this project to do with Hadoop and I have installed Hadoop just as described here: https://www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform我有这个项目与 Hadoop 相关,我已经按照此处所述安装了 Hadoop: https : //www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform
I'm trying to run the same map-reduce job Recipe.java on the dataset recipeitems-latest.json我想对数据集运行相同的map-reduce任务Recipe.java recipeitems,latest.json

I have created a .jar file from this Recipe.java code, and I've started YARN and DFS.我已经从这个 Recipe.java 代码创建了一个 .jar 文件,并且我已经启动了 YARN 和 DFS。 I have also created the directory /in and copied recipeitems-latest.json to it.我还创建了目录 /in 并将 recipeitems-latest.json 复制到它。

Now, I start the job by calling:现在,我通过调用开始工作:

hadoop jar c:\Hwork\Recipe.jar Recipe /in /out

The job starts, says running but no progress is made as you can see here: https://i.stack.imgur.com/QSifC.png作业开始,说正在运行,但没有取得任何进展,如您在此处所见: https : //i.stack.imgur.com/QSifC.png

I tried tracking the job too by clicking on given link, its status is accepted but the progress bar shows nothing.我也尝试通过单击给定链接来跟踪作业,其状态已被接受,但进度条什么也没显示。

I have started using Hadoop only 1 day back and I really don't know what is going wrong.我仅在 1 天前开始使用 Hadoop,我真的不知道出了什么问题。 Why is there no progress in the job I started?为什么我开始的工作没有进展?

The problem is resolved.问题解决了。 Apparently EOL characters in \\sbin\\start-yarn must be changed (as well as in \\bin\\hadoop.cmd) from '\\n' to '\\r\\n' and it worked like a charm!显然,\\sbin\\start-yarn 中的 EOL 字符(以及 \\bin\\hadoop.cmd 中)必须从 '\\n' 更改为 '\\r\\n' ,它就像一个魅力!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM