Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] [Birdbath Related] Basics
- Date: Tue, 28 Feb 2006 09:22:43 -0600
- From: Matthew Farrellee <matt@xxxxxxxxxxx>
- Subject: Re: [Condor-users] [Birdbath Related] Basics
On Feb 25, 2006, at 10:59 AM, Afrasyab Bashir wrote:
Hi,
I am trying to submit a java job to UniverseType.JAVA. However, I
am facing some problems in understanding the arguments to
submitjobhelper in the birdbath example file. Could you please
explain the arguments of SubmitJobHelper function. My queries are:
i. String cmd: What does String cmd specifies in my case when
I am submitting a java class file to be executed? Should I write
"java" here as this should be the command, apparantly. What's the
difference between cmd in helperfunction's argument and
'executable' in xx.sub file, which is submitted at command line:
xx.sub is a hypothetical name ?
I believe the "cmd" and the "executable" are the same thing -- it
says that in the code if I remember correctly. So, your "cmd" would
be the main class of your application, for the Java universe [1].
ii. FilestoSend: when I want to execute a file d:\test
\TestJob.class on my computer then should I mention it in
filestosend argument of submitJob.java as absolute path?
Yes, always use absolute paths otherwise it is difficult to find the
files you want (or in this case need) to send.
(the example file on birdbath webpage. It is also attached to this
email with bit of amendments due to version changes).
Thanks. I hope you didn't have to make too many changes.
At the moment I am getting two types of errors 1- Error Declaring
File 2- Job Submission Error. Both don't occur together. Frankly I
don't know whether or not I should transfer this file, i.e.
TestJob.class, that I want to be executed. Please explain a bit
which files need to be transferred. I understand that all files
that the executable file is depending upon are needed tobe
transferred and logically the executable should itself be
transferred. However, I'm clueless about it, for sure. So please
tell me how and which files to be delcared and which path type
absolute or what should be used?
You need to specify all files with an absolute path. The executable
(TestJob.class) needs to be specified, and all the files that it
needs, as you mentioned, must as well.
I think the problem you are seeing is coming from sendFileHelper() in
the SOAPScheddApiHelper.java you sent. In there you will find the
line "int index = filenameWithPath.lastIndexOf('/');" that will not
give you a correct response because your paths use '\'s instead of
'/'s. Try changing the '/' to a '\' and see what happens. This is
likely a broken assumption that was made in the helper api, sorry.
iii. ClassAdAttr: Is it detailed in manual ? what if I mention
null within arguements at its place?
Are you talking about for the "newAttr" argument, that can definitely
be null without worry. If you mean somewhere else let me know.
Sorry about the slow response on this, and thanks for mentioning
Birdbath in the subject!
matt
[1] http://www.cs.wisc.edu/condor/manual/
v6.6.10/2_8Java_Applications.html#SECTION00381000000000000000