Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10234

"hadoop.cmd jar" does not propagate exit code.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: scripts
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Running "hadoop.cmd jar" does not always propagate the exit code to the caller. In interactive use, it works fine. However, in some usages (notably Hive), it gets called through Shell#getRunScriptCommand, which needs to do an intermediate "cmd /c" to execute the script. In that case, the last exit code is getting dropped, so Hive can't detect job failures.

        Attachments

        1. HADOOP-10234.1.patch
          0.5 kB
          Chris Nauroth

          Activity

            People

            • Assignee:
              cnauroth Chris Nauroth
              Reporter:
              cnauroth Chris Nauroth
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: