Support Questions

Find answers, ask questions, and share your expertise

How to execute pig script from java

New Contributor

How to execute pig script from java class.

I have installed pig on linux system and my java application on windows system.

Thanks

3 REPLIES 3

@Atul Raut,

You can use Embedded pig to do this. Check this example

https://acadgild.com/blog/embedding-pig-java

.

-Aditya

New Contributor

Thank you Aditya,

How to tail PigServer object, where is pig installed?

Thank you

New Contributor

Hello Aditya,

I read the link which you provide to me. So my understanding is Pig should be installed on the machine on which I am going to execute the java program (Correct me if I am wrong). But I need to submit Pig script from my java application to the Pig server (This may be on any remote location) and that Pig server will execute that script and return the result to my java application. Thank you in advanced for your support.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.