Cloudera Interview Question

How to check the reason for failure for a Java App on Linux?