MATLAB Answers

Why does the MATLAB Parallel Server status in the Admin Center show as unavailable after I have started the MATLAB Parallel Server services?

22 views (last 30 days)
Why does the MATLAB Parallel Server status in the Admin Center show as unavailable after I have started the MATLAB Parallel Server services?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Dec 2019
Edited: MathWorks Support Team on 6 Dec 2019
This is most likely caused by a DNS issue where the Hostname is not getting resolved. When a connection test is performed an error similar to the one below will be displayed :
"java.net.UnknownHostException: The Hostname (BGL-RPADIYAT.ad.mathworks.com) could not be resolved. Set the Hostname manually in the mjs_def file and restart the mjs service"
To resolve this issue, please follow the below steps: # Stop the MJS Services. You can do so in the Windows Services or use the following commands in a Terminal for non-Windows machines
cd $MATLAB\toolbox\parallel\bin
./mjs stop
  1. Navigate to the mjs_def file.
  2. To locate the mjs_def file navigate to $MATLAB/toolbox/parallel/bin (where $MATLAB represents the folder where MATLAB is installed).
  3. Open this file with a text editor and modify the field "set HOSTNAME=%strHostname%.%strDomain%"
  4. Replace the default value with the Hostname,
  5. Restart the MATLAB Parallel Server services. You can do so in the Windows Services or use the following commands in a Terminal for non-Windows machines
cd $MATLAB\toolbox\parallel\bin
./mjs start
  1. Update the Admin Center.
This should resolve the issue.
NOTE: Starting in R2019a the following name changes occurred:
  • MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
  • mdce_def was renamed to mjs_def
  • mdce binary was renamed to mjs
  • mjs scripts are in $MATLAB/R20XXx/toolbox/distcomp/bin for R2019a and earlier

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

No tags entered yet.