简体   繁体   中英

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
I'm trying to run the same map-reduce job Recipe.java on the dataset recipeitems-latest.json

I have created a .jar file from this Recipe.java code, and I've started YARN and DFS. I have also created the directory /in and copied recipeitems-latest.json to it.

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

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. 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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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