We hope you are doing well.

If you using above mentioned code with the data set provided by the edureka  then it can through error so please use the codes that provided by us.

If the code is stucking somewhere only 2 possibilities are there

1.Resource manager is not running but in this case it seems to be running.

2. Short of memory - clear memory in hdfs by manually deleting the files using below command

hdfs dfs -rmr /directoryName

After deleting all the files switch off the VM and restart.

Restart all the daemons and run the MapReduce Job.

Please try the same steps and let us know if the issue still persist.