I'm trying to make oozie work with NFS rather than HDFS, but find it hard to set the Oozie temporary runtime directory into the NFS mount point. I'm using the java api and lauching a simple oozie job through OozieClient, the code is like below:
OozieClient wc = new OozieClient("http://dev001:8080/oozie");
Properties conf = wc.createConfiguration();
String jobId = wc.run(conf);
System.out.println("Workflow job submitted");
In my environment the JT is on dev001 and TT is on dev002, and with the above codes, the Oozie temporary runtime directory is generated under "/home/tester/oozie-test" on dev001, so the job failed because there's no such directory on dev002.
If only I could set the temporary dicectory into some dir under "/mnt/nfs" the problem could be resolved, but I've looked through the OozieClient javadoc, and there seemed to be no property to set the temporary runtime directory. I also looked through the oozie-default.xml, failed to find such setting, either.