You can view application logs for the current issue.
To do this, you can open the namenode web interface at namenode_ip: 50070
Here you can see the viewing option, click on it.
In the submenu, select the logs.
Now select your custom log.
Here you can see the list of applications that you launched.
Open the application_1491779488590_0002 link for your above task inside, you can see the logs for each map and reduce the task. Open the map / unlink the work log.
Inside it you can see: sys, error, stdout files. From these log files, you can get the actual error and fix it.
Or you see these logs in $ HADOOP_HOME / logs / userlogs / application_id.
Application error 2 times, because if for some reason the application wizard failed, by default it will try to run the application again. The AM retry property can be set to 1 to avoid this.
Rahul source share