You may want to try instantiating a PigServer for each thread via thread local storage.
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/lang/ThreadLocal.html On Wed, Jul 21, 2010 at 7:09 AM, Wouter de Bie <[email protected]> wrote: > Hi all, > > We're building an application that starts multiple pig jobs in parallel by > using PigServer. However, Pig doesn't seem to be thread-safe. And since we're > running a Java application, I'm not sure how to solve this. > > Does anyone have an idea? > > // Wouter >
