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

For script option hod should exit with distinguishable exit codes for script code and hod exit code.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16.0
    • 0.17.0
    • contrib/hod
    • None
    • Reviewed
    • Hide
      A provision to reliably detect a failing script's exit code was added. In case the hod script option returned a non-zero exit code, users can now look for a 'script.exitcode' file written to the HOD cluster directory. If this file is present, it means the script failed with the returned exit code.
      Show
      A provision to reliably detect a failing script's exit code was added. In case the hod script option returned a non-zero exit code, users can now look for a 'script.exitcode' file written to the HOD cluster directory. If this file is present, it means the script failed with the returned exit code.

    Description

      For hod script option, the exit code should distinguishable between hod exit code and script exit code.
      e.g.
      If script command contains the streaming command at end and that fails due to input path not found, its value exit cod will 5 which overlaps with hod exit code 5 which means "job execution failure"
      It would hod throws some distinguishable exit codes
      e.g
      For above examples 64 +5 =69 and we should this to get exact exit code of hod script command user should subtract 64 from exit code

      Attachments

        1. 2796.patch
          4 kB
          Hemanth Yamijala
        2. 2796.1.patch
          6 kB
          Hemanth Yamijala

        Activity

          People

            yhemanth Hemanth Yamijala
            karams Karam Singh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: