Pig
  1. Pig
  2. PIG-2543

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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'
      
      1. PIG-2543-1.patch
        4 kB
        Daniel Dai
      2. PIG-2543-2.patch
        4 kB
        Daniel Dai

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development