Unable to read file: Invalid argument

I am working with Matlab 2017b and MDCS 2017b. I have a bigger a script but the relevant part goes down to the following:
clear restoredefaultpath;
addpath(genpath('\\irampdevstorage.file.core.windows.net\fileshare\workflow47515'));
folder = '\\irampdevstorage.file.core.windows.net\fileshare\workflow47515';
configurationFile = [folder, '\DATA_CONTAINER1_0000047382.mat'];
spmd
data = load(configurationFile);
end
I am trying to load the file in a remote worker to use it there. If I create a local pool the workers can load the file with no problem. When I work with a remote pool I get the following error:
Error detected on workers 1 2 3 4 5 6 7 8 9 10 11 12.
Caused by:
Unable to read file '\\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat': Invalid argument.
The path is fine and the network shared drive is mapped to the workers VM, so the file is accesible. Any ideas?

2 件のコメント

Raymond Norris
Raymond Norris 2021 年 1 月 25 日
I'm gathering the cluster is running Windows?
Try running the following
spmd
dir \\irampdevstorage.file.core.windows.net
dir \\irampdevstorage.file.core.windows.net\fileshare
dir \\irampdevstorage.file.core.windows.net\fileshare\workflow47515
dir \\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat
end
Let's see how far you can get through each one.
Daniel Rubio
Daniel Rubio 2021 年 1 月 26 日
編集済み: Daniel Rubio 2021 年 1 月 26 日
Yes, the cluster is running on Windows Server 2016. Tried to run the code above. When I do it using the local pool it works fine, when I do it using the remote pool I get:
Lab 1:
'\\irampdevstorage.file.core.windows.net\fileshare' not found.
'\\irampdevstorage.file.core.windows.net\fileshare\workflow47515' not found.
'\\irampdevstorage.file.core.windows.net\fileshare\workflow47515\DATA_CONTAINER1_0000047382.mat' not found.
But the shared drive is indeed mapped and accessible in the VM where the remote workers reside, see screenshot.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCall Web Services from MATLAB Using HTTP についてさらに検索

製品

リリース

R2017b

質問済み:

2021 年 1 月 25 日

編集済み:

2021 年 1 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by