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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1, 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: