MATLAB: Is the MATLAB Parallel Server validation and job submission failing with an error regarding a bad interpreter
MATLAB Parallel Server
When validating my MATLAB Parallel Server profile or submitting a sample batch job, I see the following error:
-bash: /var/spool/PBS/mom_priv/jobs/293558.service0.SC: /bin/bash^M: bad interpreter: No such file or directory
Best Answer
When validation occurs, or a job is submitted, the IndependentJobWrapper or the CommunicatingJobWrapper, depending on the job, is copied from the submitting machine to the headnode of the cluster.
If you are submitting from a Windows machine and have previously viewed the IndependentJobWrapper or the CommunicatingJobWrapper in a text base editor, the headnode, which is most likely Linux, will be unable to correctly read the file.
To workaround this issue, you can run dos2unix on the above scripts on the Linux machine and then bring those scripts to the Windows machine.
NOTE: Starting in R2019a the following name changes occurred:
MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
This enhancement has been incorporated in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
The computers used for distributed computing do not require any pre-existing "clustering" software. The MATLAB Distributed Computing Engine (MDCE) enables computers on the same network to act as a cluster, in that tasks are distributed across several independent machines running the MDCE. An actual "cluster," running cluster management software, is not required to use the product.
However, please note that if you decide to run MATLAB, you will be using up the available resources on the server, which could cause performance issues for other users who will be submitting to the headnode.
NOTE: Starting in R2019a the following name changes occurred:
MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
Best Answer