Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Pig Progress Notification Listener

$
0
0
Hello
I am trying to use PPNL interface to get Pig job runtime details. For
testing, i am trying to do like this-

*Class implementing PPNL interface- **className - com.A.B*
*@Override*
* public void jobStartedNotification(String scriptId, String
assignedJobId) {*
* // TODO Auto-generated method stub*
* log.info <http://log.info>("#### Custom Log - job started " + scriptId
+ " " + assignedJobId); *
* }*

*Inside Pig script-- script name - test_local.pig*

*SET pig.notification.listener com.A.B;*

*Pig command line run- PigListener.jar is created from PPNL implementing
class com.A.B*

*CLASSPATH=".:/home/xxx/yyy/PigListener.jar" pig.12 test_local.pig*

For testing, I am expecting Pig job run should print above log message.
However, I am not seeing it.
Please let me know what I am doing wrong in it..

Thanks.

Viewing all articles
Browse latest Browse all 5648

Trending Articles