[
https://issues.apache.org/jira/browse/HIVE-4899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xuefu Zhang updated HIVE-4899:
------------------------------
Attachment: HIVE-4899.patch
Problem found to be that getMessage() returns null from
IllegalArgumentException instance, which is fixed in JDK7. The attached fix
provides a workaround that gets the error msg from the underlying
URISytntaxException.
While the patch isn't elegant, it fixes the problem. The workaround is also
needed to allow the two test cases to pass with both JDK6 and JDK7.
> Hive returns non-meanful error message for ill-formed fs.default.name
> ---------------------------------------------------------------------
>
> Key: HIVE-4899
> URL: https://issues.apache.org/jira/browse/HIVE-4899
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 0.10.0, 0.11.0
> Reporter: Xuefu Zhang
> Assignee: Xuefu Zhang
> Priority: Minor
> Attachments: HIVE-4899.patch
>
>
> For query in test case fs_default_name1.q:
> {code}
> set fs.default.name='http://www.example.com;
> show tables;
> {code}
> The following error message is returned:
> {code}
> FAILED: IllegalArgumentException null
> {code}
> The message is not very meaningful, and has "null" in it.
> It would be better if we can provide detailed error message.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira