Sarath, I'm glad that you found you way to solve it. I was just curious, wanted to get it work and here is the solution.
https://github.com/jaoki/hadoop-playground/tree/master/client_java If anyone is curios of my code, there are a few things you have to do (it is a hacky code) 1. mvn install upon oozie-3.3.0 2. set up your hadoop and oozie instance. 3. Change hard code configuration in App.java file. 4. Put oozie-example in hdfs it indeed posted a job to oozie and worked up to the pig job execution. Then failed with "variable [jobTracker] cannot be resolved" message, but it should be just a matter of adding more conf to the java file. On Wed, Jan 9, 2013 at 2:02 AM, Sarath < [email protected]> wrote: > Thanks Jun for the reply. > Tried that but it didn't work. It was throwing me NullPointerException. > > Since I didn't find any solution on the web or mailing lists, I changed my > logic to set the properties directly to the properties instance returned by > the createConfiguration. Rather than trying to make the client instance to > pick up the existing properties file. > > Regards, > Sarath. > > > On Tuesday 08 January 2013 11:47 PM, jun aoki wrote: > >> Hi Sarath, >> >> I haven't tried it by myself but found that >> http://svn.apache.org/viewvc/**oozie/trunk/client/src/main/** >> java/org/apache/oozie/cli/**OozieCLI.java?revision=**1412402&view=markup<http://svn.apache.org/viewvc/oozie/trunk/client/src/main/java/org/apache/oozie/cli/OozieCLI.java?revision=1412402&view=markup> >> >> Line 619. >> >> >> Properties conf = oozieClientInstance.**createConfiguration(); >> File file = new File(configFile); >> conf.load(new FileReader(file)); >> >> Does this work? >> >> >> >> >> On Tue, Jan 8, 2013 at 12:23 AM, Sarath < >> sarathchandra.josyam@**algofusiontech.com<[email protected]>> >> wrote: >> >> Hi, >>> >>> I'm new to Oozie. >>> >>> I'm trying to submit a workflow using OozieClient from a java. >>> But I'm not finding a way to specify the properties file to be used for >>> the submission like we specify using "-config" option from CLI. >>> >>> How can I specify it in OozieClient? >>> >>> Thanks & Regards, >>> Sarath >>> >>> >>>
