PigServer or PigRunner? What's better?

I wrote a built-in pig program using the PigServer class. But I find out that we can also execute queries using the PigRunner class.

Can anyone tell which one is better? please explain the reason.

+5
source share
1 answer

PigRunner essentially represents the same interface as the pig command line program, with the advantage that it can be invoked without going to the system shell and returning PigStats objects. Therefore, it is convenient to run full user scripts.

PigServer " ", . PIG.

+3

All Articles