Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16428

Hive view : Upload table view throws exception but does not shows what is wrong with the submitted table creation.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.4.0
    • ambari-views
    • 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

        1. AMBARI-16428_branch-2.4.patch
          22 kB
          Nitiraj Singh Rathore
        2. Screen Shot 2016-04-18 at 2.52.37 PM.png
          189 kB
          Nitiraj Singh Rathore
        3. Screen Shot 2016-04-18 at 2.53.08 PM.png
          354 kB
          Nitiraj Singh Rathore

        Issue Links

          Activity

            People

              nitiraj.rathore Nitiraj Singh Rathore
              nitiraj.rathore Nitiraj Singh Rathore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: