Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-88

HiveScriptRunner swallows exceptions silently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.0.M1, 1.0.0.M2
    • Fix Version/s: 1.0.0.RC1
    • Component/s: Hive
    • Labels:
      None

      Description

      This block of code in HiveScriptRunner (line 98) swallows exceptions.
      } catch (Exception ex) {
      try

      { hive.clean(); }

      catch (Exception exc) {
      }
      } finally

      { IOUtils.closeStream(reader); }

      When I have a spring-batch workflow running a Hive job as one of the intermediate steps, I'd like the Hive Tasklet to fail out if something goes wrong, and bubble up an exception so that I can get some meaningful error messages in my logs (and prevent dependent steps from even executing)

        Attachments

          Activity

            People

            Assignee:
            costin Costin Leau
            Reporter:
            andrewlook Andrew Look
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0.25d
                0.25d
                Logged:
                Time Spent - Not Specified
                Not Specified