Sun, as the others have responded, you should make sure your userids are the same across the cluster. You really must put in the effort to do that.
However - SGE does have a usermapping feature https://linux.die.net/man/5/sge_usermapping I do not know if there is somethig similar in Slurm. On 16 May 2017 at 14:26, E.S. Rosenberg <esr+slurm-...@mail.hebrew.edu> wrote: > On Tue, May 16, 2017 at 11:39 AM, Sun Chenggen <suncheng...@4paradigm.com> > wrote: > >> Yes, user on my cluster synchronized, but I want to submit job on my >> client machine, not on the cluster. >> > So only if you synchronize, for instance by making sure your UID/GID on > your client matches your UID/GID on the cluster. > >> >> 发件人: Felip Moll <lip...@gmail.com> >> 答复: slurm-dev <slurm-dev@schedmd.com> >> 日期: 2017年5月16日 星期二 下午4:25 >> 至: slurm-dev <slurm-dev@schedmd.com> >> 主题: [slurm-dev] Re: Is there anyway to commit job with different user? >> >> It is not possible, at least in a supported way. >> >> The first requirement of the admin guide tells: >> >> 1. Make sure the clocks, users and groups (UIDs and GIDs) are >> synchronized across the cluster. >> >> From: >> >> https://slurm.schedmd.com/quickstart_admin.html >> >> >> >> >> >> >> * -- Felip Moll Marquès* >> Computer Science Engineer >> E-Mail - lip...@gmail.com >> WebPage - http://lipix.ciutadella.es >> >> 2017-05-16 9:24 GMT+02:00 Sun Chenggen <suncheng...@4paradigm.com>: >> >>> Hi everyone: >>> Is there anyway to commit job with different user? My slurm cluster >>> doesn’t have the same user config as my local slurm-client machine. If I >>> commit job on my local machine , it failed with the message “srun: error: >>> Application launch failed: User not found on host”. >>> Do I have to distribute my local /etc/passwd to cluster? I don’t want to >>> do this way. Is there a better way to commit srun job with different user >>> account? >>> >>> Thanks for your help, >>> Sun >>> >> >> >