FIX: Fail to access openmpi path when running rx jobs in parallel mode with Revo package in Linux SQL Server 2019

Applies to: SQL Server 2019 on Linux

Symptoms


When running R or Python scripts with rx functions inparallel mode with RevoScaleR/revoscalepy packages in Linux SQL Server 2019, you notice that the mpi logic may be triggered. It requires you to access the path /opt/microsoft-openmpi-3.0.0_* to start mpiexec, but by default the path is not in the allowed list. Therefore, the R or Python scripts may fail to run the rx functions.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. 

Resolution


This issue is fixed in the following cumulative update for SQL Server:
About cumulative updates for SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Workaround


To work around the issue, you can edit /var/opt/mssql/mssql.conf asfollows to allow accessing the path:
[extensibility]
datadirectories = /opt/microsoft-openmpi-3.0.0-x86_64:/opt/microsoft-openmpi-3.0.0-amd64

References


Learn about the terminology that Microsoft uses to describe software updates.