[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] running python script on Windows execute node



Gordon German <gordon.german@xxxxxxxx> writes:

>> I have a Linux submit and management machine + a WindowsXP execute
>> machine (just one at the moment) and am trying to find the best way to
>> submit a python script to the Windows box for execution.

We have a all Windows Condor pool, and Python (2.3 and 2.4) jobs have
been executed without problems.  I repeat your submission file, DOS
batch file, and simple "Hello, World" Python script, and they work
okay in our pool.

>> my cmd file looks like:
[...]
>> executable	= mypython.bat
>> output		= python_ex.out
>> error		= python_ex.err
>> log		= python_ex.log
>> initialdir = dir.$(Process)
>
>> and the Starter log on the Windows box shows:
[...]
>> 8/25 12:59:16 ** condor_starter (CONDOR_STARTER) STARTING UP
>> 8/25 12:59:16 ** e:\software\condor\bin\condor_starter.exe
>> 8/25 12:59:16 ** $CondorVersion: 6.6.10 Jun 22 2005 $
>> 8/25 12:59:16 ** $CondorPlatform: INTEL-WINNT50 $
>> 8/25 12:59:16 ** PID = 2464
>> 8/25 12:59:16 ******************************************************
[...]
>> 8/25 12:59:18 IWD: e:\software\condor/execute\dir_2464
>> 8/25 12:59:18 Output file: e:\software\condor/execute\dir_2464
>> \python_ex.out
>> 8/25 12:59:18 Error file: e:\software\condor/execute\dir_2464
>> \python_ex.err
>> 8/25 12:59:18 Renice expr "10" evaluated to 10
>> 8/25 12:59:18 About to exec e:\software\condor\execute\dir_2464
>> \condor_exec.exe
>> 8/25 12:59:18 ERROR: e:\software\condor\execute\dir_2464\condor_exec.exe
>> is not a valid Windows executable
>> 8/25 12:59:18 ERROR "Create_Process(e:\software\condor\execute\dir_2464
>> \condor_exec.exe,condor_exec.exe, ...) failed" at line 493 in
>> file ..\src\condor_starter.V6.1\os_proc.C
>> 8/25 12:59:18 ShutdownFast all jobs.

This part is different from the StarterLog we have seen here (we use
Condor 6.6.10).  Here is a snippet of the StarterLog on the execution
machine,

,----
| 8/25 15:22:16 in VanillaProc::StartJob()
| 8/25 15:22:16 Executable is .bat, so running C:\WINDOWS\system32\cmd.exe Args="/Q /C condor_exec.bat "
| 8/25 15:22:16 in OsProc::StartJob()
| 8/25 15:22:16 IWD: C:/Condor/execute\dir_3684
| 8/25 15:22:16 TokenCache contents: 
| CONDOR@INF
| 8/25 15:22:16 Output file: C:/Condor/execute\dir_3684\test_python.condor_out
| 8/25 15:22:16 Error file: C:/Condor/execute\dir_3684\test_python.condor_err
| 8/25 15:22:16 Renice expr "10" evaluated to 10
| 8/25 15:22:16 About to exec C:\WINDOWS\system32\cmd.exe /Q /C condor_exec.bat 
`----

The main difference is that when Condor sees the executable is a .bat
file, it invokes Windows shell.  However, according to your log,
Condor, for some reasons, still tries to run an executable .exe.  You
may want to turn on the debug flag on Starter to see what's going on.