Michael, I believe creating PigServer with ExecType.MAPREDUCE will pick up your hadoop configuration the way you want.
Brian -----Original Message----- From: Michael [mailto:[email protected]] Sent: Friday, January 27, 2012 11:58 AM To: [email protected] Subject: Re: Pig to Java connector \ interface When in embedded use, is it possible to create a PigServer instance which connects to a remote hadoop namenode server? I'm assuming the PigServer created in embedded mode executes job locally by default. Thanks On Jan 28, 2012, at 1:40, Prashant Kommireddi <[email protected]> wrote: > Hi Vlad, > > Please take a look at > http://wiki.apache.org/pig/EmbeddedPig > > Thanks, > Prashant > > Sent from my iPhone > > On Jan 27, 2012, at 8:40 AM, Vlad S <[email protected]> wrote: > >> Hi Folks, >> >> While working with Pig it came to my mind that that currently there's >> no way to call Pig Latin set of commands or a script from Java code >> and receive results directly into Java. Or, maybe there's such way, >> but I missed one - I'm newbie. >> >> I think having such functionality is as natural as having JDBC\ODBC >> drivers to be able to execute SQL from the code and receive results >> in the code. It might be beneficial for some systems that anticipate >> script execution time to be reasonably short and script execution >> outcome to be reasonably concise and predictable. >> >> Anyways, I implemented something relatively simple in a scope >> required for my particular task(s). Let me know if such functionality >> is desired - I'd be happy to contribute. Or, point me to some >> existing functionality of such sort if I missed one. >> >> Regards, >> Vlad. ---------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
