Answered by:
How to set the user in which a job will run

Question
-
Hi
When I create a new task I see that it runs under a local account of the head node machine and not in a domain account. I am looged in with a domain account but still jobs are running with a local account.
The result is that only compute nodes that runs on the head node machine can exeute the task. Other compute nodes fail with "login failed" error.
How do I set the user in which the job runs ("Run As User" property of a job)
I tried using the power shell command $credential = Get-Credential but it did not help.
Thanks
Manu
Wednesday, April 13, 2011 8:20 PM
Answers
-
Have you tried to clear the HPC credentials? That should at least give you the credential prompt, where hopefully you can use the correct Domain name.
- Marked as answer by manukahn Monday, April 25, 2011 7:13 PM
Thursday, April 21, 2011 2:21 PM
All replies
-
Hi Manu,
Which version of the HPC Pack are you using? Could you share exact steps, which you are performing in order to submit a job?
For 'job submit' command there is a '/user' parameter, which can be used to specify "Run As User" property. Similarly you can do something like this in Powershell:
Submit-HpcJob -Id 123 -Credential (Get-Credential)
However by default "Run As User" property has the same value as "Owner", which is the user who created the job, so I am not sure what's going wrong in your environment.
Best regards,
ŁukaszFriday, April 15, 2011 11:00 PM -
Hi
Thanks for your reply.
I am using the cluster manager to submit jobs. I am working with HPC Pack R2 SP1.
I am logged in using the domain account yet the jobs I create are owned by a local user account of this particular machine.
When I installed the HPC Pack on the machine I was logged with the local user account. Also when I created my first job I was prompted for credentials and gave the local user account credentials. This was an error...
I want to change the owner of the old jobs and to make sure new jobs will be owned by the domain user so they will run as with it but I do not find a way to do that.
What ever I do all my jobs are owned and executed by the local user account and not by the doamin account.
Manu
Saturday, April 16, 2011 7:12 PM -
Have you tried to clear the HPC credentials? That should at least give you the credential prompt, where hopefully you can use the correct Domain name.
- Marked as answer by manukahn Monday, April 25, 2011 7:13 PM
Thursday, April 21, 2011 2:21 PM -
How do you do that?
Manu
Monday, April 25, 2011 6:56 PM -
At the HPC Powershell (which is different from the Windows Powershell I've now found out) run the Remove-HpcJobCredential command (or Remove-HpcSoaCredential or Remove-HpcTestCredential depending on what you're running).
Tuesday, April 26, 2011 12:59 PM