Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.1, 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'