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-2.patch
        4 kB
        Daniel Dai
      2. PIG-2543-1.patch
        4 kB
        Daniel Dai

        Activity

        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Daniel Dai made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Assignee Daniel Dai [ daijy ]
        Resolution Fixed [ 1 ]
        Daniel Dai made changes -
        Attachment PIG-2543-2.patch [ 12518134 ]
        Daniel Dai made changes -
        Attachment PIG-2543-1.patch [ 12517483 ]
        Thomas Weise made changes -
        Field Original Value New Value
        Fix Version/s 0.10 [ 12316246 ]
        Vivek Padmanabhan created 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