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

Do Not Print StackTraces to STDERR in DDLTask

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: 4.0.0, 3.2.0
    • Component/s: None
    • Labels:

      Description

      DDLTask.java
              try {
                ret = ToolRunner.run(fss, args.toArray(new String[0]));
              } catch (Exception e) {
                e.printStackTrace();
                throw new HiveException(e);
              }
      

      Don't print the stacktrace to STDERR, deal with handling the error up the call stack by using the HiveException.

        Attachments

        1. HIVE-20236.1.patch
          0.7 kB
          Alice Fan

          Activity

            People

            • Assignee:
              afan Alice Fan
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: