[ https://issues.apache.org/jira/browse/HIVE-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999374#comment-12999374 ]
Chinna Rao Lalam commented on HIVE-1976: ---------------------------------------- run() method of AddResourceProcessor.java not throwing exception if it is not added the jar successfully .Its better to throw the exception to the client if it is not added successfully. Same thing applicable for "add file" & "add archive" also. > 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 > 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.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