Good point. This is what I get:
12/04/27 08:58:05 INFO mapred.JobClient: Task Id : attempt_201204100823_2167_m_000000_0, Status : FAILED
java.lang.RuntimeException: Could not retrieve endpoint ranges:
at java.security.AccessController.doPrivileged(Native Method)
So, I guess that this "Caus" in the end is what you are asking about, but for some reason it's truncated. Of course I bet that it's because of my app, but I will have to investigate it a bit.
Anyway, I still think that the exception with a fixed message like this is inappriopriate and misguiding in some way if we can get more detailed Exceptions of many kinds here. I've checked how does it looks like in other classes with authentication and what I found is that i.e. in ColumnFamilyRecordReader.java it's made in the way I proposed (throw new RuntimeException(e). So, I'm not arguing that it's a kind of a must-have thing, but I still think it's a bit more "proper" way of handling this case
However, answering your question - yes, you're right