[GE users] Reg: Interactive jobs on windows execution host

manju a manju.kudu at gmail.com
Fri Dec 7 13:27:16 GMT 2007


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi Harald,

Do we need to make any changes in the grid confiuration files to run
this type interactive jobs or display_win_gui=ture variable is enough
to invoke GUI window an windows execution host??

thanks
Manjunath A.



On 12/7/07, manju a <manju.kudu at gmail.com> wrote:
> Hi Harald,
>
> I managed get clear that error, but this GUI window still not coming .
> do you think i am missing some where?? do we need to set any parameter
> from the windows execution point of view other than running N1
> sungrind helper service under system account n( checking box) interact
> wid the desktop???
>
> thanks
> Manjunath A.
>
>
>
> On 12/7/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > manju a wrote:
> > > Hi Harald,
> > >
> > > yes its already been checked "Allow service to interact with desktop"
> > > box but still no luck harald.
> > >
> > > And also another thing i observed here , if the Job is in
> > > (Interactive) Running state n in middle if i restart the N1 Grid
> > > Engine Helper Service, that host queue will go to Temporary unavailble
> > > state. we cant submit any jobs to that host. i restart the sgeexecd
> > > after doing also same issue.
> > >
> > > if i do qstat -f i can see the host queue is in error state!!!!!!
> >
> > That's why you can't submit any jobs to that host.
> >
> > When you restart the Helper Service while a job runs, Grid Engine
> > detects this as an error of the host. The Helper Service is tightly
> > connected to the job, there is no chance for the Helper Service to
> > reconnect to the job once the connection was broken. So if the Helper
> > Service is stopped, the job is lost and it's considered a fault of the
> > host, because there is only one Helper Service per host.
> >
> > Restarting the sge_execd doesn't help, you must clear the error state with
> > # qmod -c <hostname>
> >
> > Regards,
> > Harald
> >
> >
> >
> > >
> > > thanks
> > > Manjunath A.
> > >
> > >
> > >
> > >
> > > On 12/6/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >> Hi Manju,
> > >>
> > >> just to be sure: In the properties dialog the "N1 Grid Engine Helper
> > >> Service", on the "Log On" Tab, is there a check in the "Allow service to
> > >> interact with desktop" box?
> > >>
> > >>
> > >>> i have a strong feeling that job is running fine under background, but
> > >>> GUI window not appearing, how should be the output a normal notepad
> > >>> window should come in a windows user login, one who has submitted that
> > >>> job??
> > >> The GUI opens on the screen of the currently logged on user, no matter
> > >> if it is the same user as the job user. If nobody is logged on
> > >> currently, then the GUI is not visible because the logon screen is a
> > >> special one that allows only the logon dialog to be displayed.
> > >> But I have a problem then with my test host: The login dialog is
> > >> disabled then, nobody can log in locally. I just can select to reboot
> > >> the host. This is a bug, of course. But the job runs in the background.
> > >>
> > >> Regards,
> > >> Harald
> > >>
> > >>
> > >>
> > >>> thanks
> > >>> Manjunath A.
> > >>>
> > >>>
> > >>> On 12/5/07, manju a <manju.kudu at gmail.com> wrote:
> > >>>> Hi Harald,
> > >>>>
> > >>>> yes i can able to telnet without any problem!!!! than i think SGE
> > >>>> helper service working fine!!!!
> > >>>>
> > >>>> thanks
> > >>>> Manjunath A.
> > >>>>
> > >>>>
> > >>>> On 12/5/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >>>>> Hi Manju,
> > >>>>>
> > >>>>> please try this:
> > >>>>> On the Windows execution host, start the Windows registry editor
> > >>>>> (Regedit.exe) and look into the key:
> > >>>>> "\HKEY_LOCAL_MACHINE\SOFTWARE\Sun Microsystems\N1 Grid Engine\Helper
> > >>>>> Service" - there should be a value "Port".
> > >>>>>
> > >>>>> Open a Windows Command prompt and enter
> > >>>>> telnet 127.0.0.1 <Port>
> > >>>>>
> > >>>>> where <Port> is the number from the registry.
> > >>>>>
> > >>>>>
> > >>>>> If the Helper Service works correctly, telnet should be able to
> > >>>>> establish a connection. You can type then, but won't get an echo.
> > >>>>>
> > >>>>> If this is not possible, I'll give you directions to reinstall the
> > >>>>> service. If it is possible, I'm out of ideas.
> > >>>>>
> > >>>>> Regards,
> > >>>>> Harald
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> manju a wrote:
> > >>>>>> Hi Harald,
> > >>>>>>
> > >>>>>> i tired with the below option too,  GUI window not coming but process
> > >>>>>> is running in the backgroud, that i can see in the taskmanager.
> > >>>>>>
> > >>>>>> thanks
> > >>>>>> manjunath A.
> > >>>>>>
> > >>>>>> On 12/4/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >>>>>>> Just set the variable explicitely to false:
> > >>>>>>> # qsub -v SGE_BACKGND_MODE=false ....
> > >>>>>>>
> > >>>>>>> Regards,
> > >>>>>>> Harald
> > >>>>>>>
> > >>>>>>> manju a wrote:
> > >>>>>>>> Hi Harald,
> > >>>>>>>>
> > >>>>>>>> where i can see this variable (SGE_BACKGND_MODE).??? but i can see
> > >>>>>>>> notepad.exe process in the process list on the execution host once i
> > >>>>>>>> submitted.
> > >>>>>>>>
> > >>>>>>>> thanks
> > >>>>>>>> manjunath A.
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> On 12/4/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >>>>>>>>> Hi Manju,
> > >>>>>>>>>
> > >>>>>>>>> one more idea:
> > >>>>>>>>> If there is a "SGE_BACKGND_MODE" environment variable set to "1" or
> > >>>>>>>>> "true" (case-insensitive) in the job environment, the helper service
> > >>>>>>>>> will start the job, but the GUI will not be visible on the execution
> > >>>>>>>>> hosts' screen.
> > >>>>>>>>> Please make sure this isn't set accidentially.
> > >>>>>>>>>
> > >>>>>>>>> Regards,
> > >>>>>>>>> Harald
> > >>>>>>>>>
> > >>>>>>>>> Harald Pollinger wrote:
> > >>>>>>>>>> manju a wrote:
> > >>>>>>>>>>> Hi,
> > >>>>>>>>>>>
> > >>>>>>>>>>> i m using sge6.1u2!!!! sorry that also didnt work. i m not able to see
> > >>>>>>>>>>> any notpad window in windows execution host.
> > >>>>>>>>>> Is the "N1 Grid Engine Helper Service" running on the Windows execution
> > >>>>>>>>>>  host? Is it running under the "Local System" account?
> > >>>>>>>>>>
> > >>>>>>>>>> Did you install a older version previously? Perhaps the wrong version of
> > >>>>>>>>>> the helper service is running.
> > >>>>>>>>>>
> > >>>>>>>>>> Is there anything in the execd messages file about contacting the helper
> > >>>>>>>>>> service?
> > >>>>>>>>>>
> > >>>>>>>>>> Regards,
> > >>>>>>>>>> Harald
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>> thanks
> > >>>>>>>>>>> Manjunath A
> > >>>>>>>>>>>
> > >>>>>>>>>>> On 12/4/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >>>>>>>>>>>> manju a wrote:
> > >>>>>>>>>>>>> Hi Harald,
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> yes i tired this invoking notepad.exe ,if i do qstat it will show like
> > >>>>>>>>>>>>> in below n keep struck at the running mode no output i can see in the
> > >>>>>>>>>>>>> execution host
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> ------------------------------
> > >>>>>>>>>>>>> 2108 0.55500 cmd.exe         user       r     12/03/2007 09:34:30
> > >>>>>>>>>>>>> all.q at testwin
> > >>>>>>>>>>>>> 21                1
> > >>>>>>>>>>>>> 2109 0.55500 cmd.exe    user       r     12/03/2007 09:34:30
> > >>>>>>>>>>>>> all.q at testwin
> > >>>>>>>>>>>>> 21                1
> > >>>>>>>>>>>>> 2113 0.55500 cmd.exe    user     r     12/03/2007 09:38:30
> > >>>>>>>>>>>>> all.q at testwin
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> command i run look like this
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> qsub -l display_win_gui=1 -b yes -shell no -l hostname=testwin -P
> > >>>>>>>>>>>>> testpro
> > >>>>>>>>>>>>> /dev/fs/C/WINDOWS/system32/cmd.exe /c "c:\WINDOWS\notepad.exe"
> > >>>>>>>>>>>> Please try
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> # qsub -l display_win_gui=true -b yes -shell no -l hostname=testwin -P
> > >>>>>>>>>>>> testpro /dev/fs/C/WINDOWS/notepad.exe
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> Does this work?
> > >>>>>>>>>>>> Which version of SGE are you using?
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> Regards,
> > >>>>>>>>>>>> Harald
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>> is it any thing wrong in the above command.i used backslash also.
> > >>>>>>>>>>>>> please let me know if its any thing worng in the command.
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> thanks
> > >>>>>>>>>>>>> Manju
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>                 1
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> On 12/3/07, Harald Pollinger <Harald.Pollinger at sun.com> wrote:
> > >>>>>>>>>>>>>> manju a wrote:
> > >>>>>>>>>>>>>>> Hi Harald,
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> i tried to follow your steps wht u have given but GUI window not
> > >>>>>>>>>>>>>>> coming !!!!
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> i am trying to execute the command like this
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> qsub -l display_win_gui=1 -b yes -shell no -P myproj
> > >>>>>>>>>>>>>>> /dev/fs/C/windows/system32/cmd.exe "c:\\script\myscript.bat"
> > >>>>>>>>>>>>>> I didn't test it, but I think this will fail. "cmd.exe" needs a "/c"
> > >>>>>>>>>>>>>> option, and the path needs double backslashes.
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> myscript.bat looks like this
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> @echo off
> > >>>>>>>>>>>>>>> c:
> > >>>>>>>>>>>>>>> chdir C:\cygwin\bin
> > >>>>>>>>>>>>>>> bash --login -i -c "calc"
> > >>>>>>>>>>>>>>> ;end
> > >>>>>>>>>>>>>> Does this run if started directly from the Windows command prompt?
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> This batch script should invoke calc window but not doing any thing.
> > >>>>>>>>>>>>>>> can u please let us know some sample script that will invoke GUI
> > >>>>>>>>>>>>>>> window an windows execution host, that will helps a lot.
> > >>>>>>>>>>>>>> Use simple batch scripts first, that just start Windows binaries like
> > >>>>>>>>>>>>>> calc.exe or notepad.exe. If this works, go on and try to start Cygwin
> > >>>>>>>>>>>>>> binaries. A sample is:
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> ----------------------------------------------
> > >>>>>>>>>>>>>> C:\Windows\notepad.exe
> > >>>>>>>>>>>>>> ----------------------------------------------
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> Regards,
> > >>>>>>>>>>>>>> Harald
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> thanks for your help n replay's
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Manjunath A.
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> On Dec 3, 2007 12:27 PM, manju a <manju.kudu at gmail.com> wrote:
> > >>>>>>>>>>>>>>>> Hi,
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>> thanks for the replay harald
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>> 1) Is it possible to submit a batch script to windows execution host
> > >>>>>>>>>>>>>>>>>> in which it will invoke the number of  Gui window??
> > >>>>>>>>>>>>>>>>> Sorry, I don't understand this question. You want to submit a
> > >>>>>>>>>>>>>>>>> Windows
> > >>>>>>>>>>>>>>>>> batch script (a .bat file) to the Windows execution host. What
> > >>>>>>>>>>>>>>>>> exactly
> > >>>>>>>>>>>>>>>>> shall this batch script do?
> > >>>>>>>>>>>>>>>> please find it below in detail
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>> " i m submitting a script, that script will open the n number of GUI
> > >>>>>>>>>>>>>>>> window" that type jobs can we submit to windows execution host ? if
> > >>>>>>>>>>>>>>>> possible how we can set the display n options in the qsub option
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>> thanks
> > >>>>>>>>>>>>>>>> manjunath A.
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>> On Nov 30, 2007 6:17 PM, Harald Pollinger
> > >>>>>>>>>>>>>>>> <Harald.Pollinger at sun.com> wrote:
> > >>>>>>>>>>>>>>>>> manju a wrote:
> > >>>>>>>>>>>>>>>>>> Hi,
> > >>>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>> 1) Is it possible to submit a batch script to windows execution
> > >>>>>>>>>>>>>>>>>> host
> > >>>>>>>>>>>>>>>>>> in which it will invoke the number of  Gui window??
> > >>>>>>>>>>>>>>>>> Sorry, I don't understand this question. You want to submit a
> > >>>>>>>>>>>>>>>>> Windows
> > >>>>>>>>>>>>>>>>> batch script (a .bat file) to the Windows execution host. What
> > >>>>>>>>>>>>>>>>> exactly
> > >>>>>>>>>>>>>>>>> shall this batch script do?
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>> 2) is it possible GUI window output should reflect to user one who
> > >>>>>>>>>>>>>>>>>> submitting the job or it should run where that session exists??
> > >>>>>>>>>>>>>>>>> A Windows GUI window can only be opened on the screen of the
> > >>>>>>>>>>>>>>>>> execution
> > >>>>>>>>>>>>>>>>> host. There is no GUI redirection like in Unix' X Window system.
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>> Let me explain why this "show GUI" option was built in SGE:
> > >>>>>>>>>>>>>>>>> It doesn't make sense to submit interactive Windows GUI
> > >>>>>>>>>>>>>>>>> applications to
> > >>>>>>>>>>>>>>>>> SGE, so normally it wouldn't be neccessary to provide a way to
> > >>>>>>>>>>>>>>>>> let a
> > >>>>>>>>>>>>>>>>> Windows application show it's GUI. However, there are Windows
> > >>>>>>>>>>>>>>>>> applications that either run as an interactive GUI application
> > >>>>>>>>>>>>>>>>> or in an
> > >>>>>>>>>>>>>>>>> automated mode, depending on the command line switches. In the
> > >>>>>>>>>>>>>>>>> automated
> > >>>>>>>>>>>>>>>>> mode they just read input files, do their work, write output
> > >>>>>>>>>>>>>>>>> files an
> > >>>>>>>>>>>>>>>>> quit. While they are working, they show in their GUI what they are
> > >>>>>>>>>>>>>>>>> currently doing. They still need to open their GUI and would
> > >>>>>>>>>>>>>>>>> fail if it
> > >>>>>>>>>>>>>>>>> wouldn't be possible to open the GUI.
> > >>>>>>>>>>>>>>>>> That's why I had to write the "SGE Helper Service" that allows
> > >>>>>>>>>>>>>>>>> applications that were started by the background execution
> > >>>>>>>>>>>>>>>>> daemon to
> > >>>>>>>>>>>>>>>>> connect to the (foreground) screen. Opening a GUI in the
> > >>>>>>>>>>>>>>>>> background is
> > >>>>>>>>>>>>>>>>> not possible on Windows.
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>> You could redirect the whole screen of the execution host to the
> > >>>>>>>>>>>>>>>>> user,
> > >>>>>>>>>>>>>>>>> using Windows' Remote Desktop or (IMHO better) a VNC server on the
> > >>>>>>>>>>>>>>>>> execution host. But this is completely independent of SGE.
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>> please let me know if its possible how we can set the display n
> > >>>>>>>>>>>>>>>>>> options in qsub.
> > >>>>>>>>>>>>>>>>> With SGE 6.1 (and higher), if the execd is installed correctly,
> > >>>>>>>>>>>>>>>>> just
> > >>>>>>>>>>>>>>>>> request the resource "display_win_gui=1" when submitting the job:
> > >>>>>>>>>>>>>>>>> # qsub -l display_win_gui=1 -b yes -shell no
> > >>>>>>>>>>>>>>>>> /dev/fs/C/...../app.exe
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>> Regards,
> > >>>>>>>>>>>>>>>>> Harald
> > >>>>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>>>> thanks
> > >>>>>>>>>>>>>>>>>> Manjunath A.
> >
> >
> > --
> > Sun Microsystems GmbH         Harald Pollinger
> > Dr.-Leo-Ritter-Str. 7         N1 Grid Engine Engineering
> > D-93049 Regensburg            Phone: +49 (0)941 3075-209  (x60209)
> > Germany                       Fax: +49 (0)941 3075-222  (x60222)
> > http://www.sun.com/gridware
> > mailto:harald.pollinger at sun.com
> > Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
> > Amtsgericht Muenchen: HRB 161028
> > Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
> > Vorsitzender des Aufsichtsrates: Martin Haering
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> > For additional commands, e-mail: users-help at gridengine.sunsource.net
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list