[ 
https://issues.apache.org/jira/browse/AMBARI-16428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304297#comment-15304297
 ] 

Hudson commented on AMBARI-16428:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4941 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/4941/])
AMBARI-16428 : passing the error from hive to the hive view UI properly 
(pallav.kul: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2552fee8a9a205c059399ceed8a117ffdb962c6a])
* contrib/views/hive/src/main/resources/ui/hive-web/app/services/job.js
* 
contrib/views/hive/src/main/resources/ui/hive-web/app/controllers/upload-table.js
* 
contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/uploads/UploadService.java


> Hive view : Upload table view throws exception but does not shows what is 
> wrong with the submitted table creation.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-16428
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16428
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-views
>    Affects Versions: 2.2.2
>            Reporter: Nitiraj Singh Rathore
>            Assignee: Nitiraj Singh Rathore
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-16428_branch-2.4.patch, Screen Shot 2016-04-18 at 
> 2.52.37 PM.png, Screen Shot 2016-04-18 at 2.53.08 PM.png
>
>
> For the following validation errors, Upload table view shows 
> HiveClientFormattedException
> 1. Column datatype is set to char, but precision is not set.
> 2. Table name is not valid (has characters like '-')
> 3. Creating a table with duplicate table name.
> 4. When column name is missing in xml tag
> No validation error is shown in this case. 
> PFA screenshot.
> For #3, When creating a table with duplicate name on hive query tab shows 
> proper error "Error while processing statement: FAILED: Execution Error, 
> return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. 
> AlreadyExistsException(message:Table data3 already exists)"
> The same on Upload Table just shows "HiveClientFormattedException"
> For#4 When column name is missing in the xml, hive view log shows exception " 
> java.lang.IllegalArgumentException: Missing name attribute in col 
> tag.java.lang.IllegalArgumentException: Missing name attribute in col tag." 
> But Upload table UI shows :
> org.apache.ambari.view.hive.utils.ServiceFormattedException
> at 
> org.apache.ambari.view.hive.resources.uploads.UploadService.uploadIntoTable(UploadService.java:282)
> at 
> org.apache.ambari.view.hive.resources.uploads.UploadService.uploadFileFromStream(UploadService.java:401)
> at 
> org.apache.ambari.view.hive.resources.uploads.UploadService.uploadFile(UploadService.java:212)
> at sun.reflect.GeneratedMethodAccessor1233.invoke(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to