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

PigStats.isSuccessful returns false if embedded pig script has sh commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1, 0.10.0
    • 0.10.0
    • None
    • None
    • Reviewed

    Description

      For the below script even though the command is successful, result.isSuccessful() returns false and hence raise exception

      #!/usr/bin/python
      from org.apache.pig.scripting import Pig
      Q = Pig.compile("sh echo mymessage")
      result = Q.bind().runSingle()
      if result.isSuccessful() :
          print 'Pig job succeeded'
      else :
          raise 'Cant run sh command'
      

      Attachments

        1. PIG-2543-2.patch
          4 kB
          Daniel Dai
        2. PIG-2543-1.patch
          4 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            vivekp Vivek Padmanabhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: