Not able to view the History log for completed spark jobs

Not able to view the History log for completed spark jobs. Though the jos is sucess but not able to view the associated logs with the job in yarn framework

Link -
http://gw01.itversity.com:18080/history/application_1495691438758_14387/1

When i click on the history url it says - “Description: Connection refused”

See if this URL is some information.

http://rm01.itversity.com:8088/cluster/app/application_1495691438758_14387

Need to check with remaining ports since not all the ports are open due to security issues i guess.

Still getting the same error …whats the other way to access them , as the logs provide us an input into some important debugging info