hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aihua Xu (JIRA)" <>
Subject [jira] [Updated] (HIVE-14186) Display the UDF exception message in MapReduce in beeline console
Date Fri, 16 Sep 2016 16:12:21 GMT


Aihua Xu updated HIVE-14186:
    Status: Patch Available  (was: Open)

Patch-1: When we call the UDF and UDF throws the exception, the UDF invoke rethrows a new
exception with new message. If the --verbose=true is turned on, actually we should be able
to see the details on the client. Made the small change in the patch-1 to add the real exception
for InvocationTargetException so the user can see the meaningful exception even without the
verbose mode.

Here is result to run a UDF. 
Error: Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 1:7
Wrong arguments ''test'': org.apache.hadoop.hive.ql.metadata.HiveException: Unable to execute
method public SampleUDF.evaluate( throws
org.apache.hadoop.hive.ql.metadata.HiveException with arguments {test}: Some exception from
UDF (state=42000,code=10014)

Unfortunately I don't see a way to add a unit test.

> Display the UDF exception message in MapReduce in beeline console 
> ------------------------------------------------------------------
>                 Key: HIVE-14186
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>          Components: Beeline
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-14186.1.patch
> Currently when Mapper or Reducer fails, the beeline console will print the following
> Error: Error while processing statement: FAILED: Execution Error, return code 2 from (state=08S01,code=2) 
> It would be helpful if we can print the exceptions from the mapreduce to the beeline
console directly so you don't need to dig into the MR log to find it.

This message was sent by Atlassian JIRA

View raw message