[GE users] DRMAA output redirection oddness

reuti reuti at staff.uni-marburg.de
Fri Dec 10 22:04:24 GMT 2010


Am 08.12.2010 um 13:10 schrieb epistemyscott:

> On 7 Dec 2010, at 19:19, reuti wrote:
> 
>> Am 07.12.2010 um 15:29 schrieb epistemyscott:
>> 
>>> The DRMAA bindings get upset if the output path doesn't start with a ':'. The official format in the Javadoc is "[hostname]:file_path", although I'm not specifying any hostname - I presume this means "leave things as they are", though I may be wrong - I couldn't find any explicit explanation of what happens if you don't specify a host name.
>> 
>> What about using a native specification and -o/-e/-wd for now, are the pseudo variables working there?
> 
> The stuff I'm writing has to work with TORQUE as well (hence the DRMAA), so I'd like to stay away from native specs as much as possible. Nonetheless, I gave this a try, and it doesn't work - using job.setNativeSpecification("-wd ~/SGE-test -o SGE-test.log -e SGE-test.err.log"); and removing the DRMAA lines fails with the familiar message:
> 
> 12/08/2010 11:54:28|worker|host123|W|job 92.1 failed on host host123.epistemy.com general changing into working directory because: 12/08/2010 11:54:27 [1024:14268]: error: can't chdir to /SGE-test: No such file or directory

What I see for now is, that "$drmaa_hd_ph$" is correctly replaced by "$HOME". But it seems, that the replacement takes place at the wrong time. I mean:

job.setErrorPath(":"+"$HOME/SGE-test.err.log");

is working fine, while your:

job.setOutputPath(":"+JobTemplate.WORKING_DIRECTORY+"SGE-test.log");

fails, as it's happening with a direct:

job.setOutputPath(":"+"$drmaa_hd_ph$SGE-test.log");

-- Reuti

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=304075

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list