Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
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)
Attachments
Attachments
Issue Links
- links to