Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19190

Improve Logging for SemanticException Handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.3.2, 3.0.0
    • None
    • HiveServer2
    • None

    Description

      Please improve the logging for queries that fail with SemanticException. For example, when performing an action on a table that does not exist.  The most common reason why this happens is that someone fat fingers the table/column name.  It is not a system error pe se, but a user validation error. This is not something the cluster administrator should have to worry about. Yet, Hive performs some pretty extreme logging on the matter. I have attached to this JIRA the logging produced by a single submission of the following query:

      select * from madeup;
      

       
      For SemanticException exceptions, please print the Exception getMessage() to the server INFO logging so that the query's life-cycle can be traced, but do not blast ERRORs and stack traces to the log file.

      Attachments

        1. table_not_found_example.txt
          10 kB
          David Mollitor

        Issue Links

          Activity

            People

              afan Alice Fan
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: