[
https://issues.apache.org/jira/browse/HADOOP-5201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672457#action_12672457
]
Santhosh Srinivasan commented on HADOOP-5201:
---------------------------------------------
Let me describe the context of the original request. I am a Pig developer and I
need to query exceptions that are thrown by Pig in the runtime envrionment.
Since Hadoop does not support the transmission of exceptions on the wire, I had
to write methods that recursively recreate the entire exception chain based on
the strings sent by Hadoop. It would be far easier if Hadoop can transmit these
exceptions.
I do not agree with Owen's comments that exceptions may not exist in the
context where they are examined. IMHO, Hadoop should take care of publishing
and transmitting the right exceptions making it possible to applications to use
the transmitted exception as is.
> getDiagnostics in TaskReport should return exceptions
> -----------------------------------------------------
>
> Key: HADOOP-5201
> URL: https://issues.apache.org/jira/browse/HADOOP-5201
> Project: Hadoop Core
> Issue Type: Improvement
> Components: mapred
> Reporter: Santhosh Srinivasan
>
> Currently, getDiagnostics() returns Strings. When exceptions are thrown in
> user code and/or Hadoop, it would be cleaner to propagate the exception back
> to the application for better error handling. Hadoop should return the
> exceptions instead of returning string representations that correspond to
> printStackTrace() output.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.