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
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 <
[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