How do I configure a MATLAB worker in a cluster to have the security setting of a user who submits the job?

5 次查看(过去 30 天)
I am trying to run a parallel MATLAB job on a cluster. The parallel code writes the results to a folder which requires specific group/user permissions.
When I run code on the workers running locally on my machine, I am able to read or write to/from the folder without any issues since I am a user who has permission to do that folder. However, when I submit the code to the cluster, the workers can not access the folder.

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2020-7-7
By default, on Windows the workers run as a local system user, and on Linux and Mac OS X as root users. These users might have limited access to certain directories and network mounted drives. To change this setting you will need to modify the MDCE_USER property in mdce_def.bat file. You will need to set this property to a user who has read and write permissions to the group folder.
You will need to restart the MDCE daemon for the changes to take effect by executing the following commands:
mdce stop
mdce uninstall
mdce install
mdce start
Additionally, starting with MATLAB R2010b MATLAB Distributed Computing Server allows for a finer level of job security control, where each parallel job can be run as the user who submitted it to the cluster. To enable this, set the SECURITY_LEVEL to 3 in the mdce_def file. For more information on setting the job security level in MATLAB Distributed Computing Server please refer to the following documentation:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Installation 的更多信息

产品


版本

R2010b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by