Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19318 Improve Hive logging
  3. HIVE-19328

Some error messages like "table not found" are printing to STDERR

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None

      Description

      In Driver class, we are printing the exceptions to the log file and to the console through LogHelper. https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/Driver.java#L730

      I can see the following exceptions in the stderr.
      FAILED: SemanticException [Error 10001]: Table not found default.sample_07

      If it's from HiveCli, that makes sense to print to console, while if it's beeline talking to HS2, then such log should go to HS2 log and beeline console. So we should differentiate these two scenarios.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aihuaxu Aihua Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: