[ https://issues.apache.org/jira/browse/HIVE-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003918#comment-13003918 ]
Chinna Rao Lalam commented on HIVE-1976: ---------------------------------------- Ya sorry i missed the behavior change of the CLI scenario. Now i attached one patch with the new solution like instead of throwing the RuntimeExcetion return the CommandProcessorResponse with non zero responseCode. Based on the responseCode of CommandProcessorResponse HiveServer.java(HIVEServer Mode), CliDriver.java(CLI Mode) and HWISessionItem.java(HIVEWebUI mode) will respond. This way the behavior change won't be there. Pls review this and give u r comments. > Exception should be thrown when invalid jar,file,archive is given to add > command > -------------------------------------------------------------------------------- > > Key: HIVE-1976 > URL: https://issues.apache.org/jira/browse/HIVE-1976 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.5.0, 0.7.0 > Environment: Hadoop 0.20.1, Hive0.5.0 and SUSE Linux Enterprise > Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5). > Reporter: Chinna Rao Lalam > Assignee: Chinna Rao Lalam > Attachments: HIVE-1976.2.patch, HIVE-1976.3.patch, HIVE-1976.patch > > > When executed add command with non existing jar it should throw exception > through HiveStatement > Ex: > {noformat} > add jar /root/invalidpath/testjar.jar > {noformat} > Here testjar.jar is not exist so it should throw exception. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira