ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitiraj Singh Rathore (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-16428) Hive view : Upload table view throws exception but does not shows what is wrong with the submitted table creation.
Date Tue, 10 May 2016 12:26:12 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-16428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nitiraj Singh Rathore updated AMBARI-16428:
-------------------------------------------
    Description: 
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)

  was:In case of something wrong with table name or column name or column type. Hive throws
error, but UI does not shows this error. 


> 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: 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)

Mime
View raw message