Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5349

Log stderr output when shell command fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.18.0
    • None
    • None
    • Reviewed

    Description

      For a script likeĀ 

      %declare abc `/bin/bash doesnotexist.sh`
      

      Pig currently fails with the message

      2018-07-12 13:21:28,364 [main] INFO  org.apache.pig.tools.parameters.PreprocessorContext - Executing command : /bin/bash doesnotexist.sh
      2018-07-12 13:21:28,399 [main] ERROR org.apache.pig.Main - ERROR 2999: Unexpected internal error. Error executing shell command: /bin/bash doesnotexist.sh. Command exit with exit code of 127
      

      It'll be nice if we can show the error message from the script.

      Attachments

        1. pig-5349-v1.patch
          1 kB
          Koji Noguchi
        2. pig-5349-v2.patch
          1 kB
          Koji Noguchi

        Activity

          People

            knoguchi Koji Noguchi
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: