DataReferenceConfiguration stops working when mode=mount is used
I have been using DataReferenceConfiguration with 'download' mode to run my AutoML codes. Now I need to mount the data and I have been testing the mode 'mount'. Once I changed 'download' to 'mount' the run faild. The error says that the files don't exist.
Does the path behave differently with 'mount' and 'download'? Anna
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 414eb483-502b-a964-5f81-25073d4914ec
- Version Independent ID: e1c7b21f-2fc2-4f57-66f9-33426b38ae76
- Content: azureml.core.runconfig.DataReferenceConfiguration class - Azure Machine Learning Python
- Content Source: AzureML/docs-ref-autogen/azureml-core/azureml.core.runconfig.DataReferenceConfiguration.yml
- Service: machine-learning
- Sub-service: core
- GitHub Login: @j-martens
- Microsoft Alias: jmartens
I think both should be working similarly. Can you please share a code snippets where you face the issue? Can you also confirm that switching back from download to mount mitigated the issue (just to verify it's not due to data being actually deleted from storage).
Switching back to 'download' works fine. I issued a tickiet and it seems there is a problem with the 'mount' method. At least so far I did not get any information how to solve it.
I am using code as below (here is the 'download' version)
`
Data Store reference
ds = ws.get_default_datastore() dr = DataReferenceConfiguration( datastore_name=ds.name, path_on_datastore='data_comic', path_on_compute='/tmp/azureml_runs', mode='download', # download files from datastore to compute target overwrite=True)
from azureml.core.runconfig import RunConfiguration from azureml.core.conda_dependencies import CondaDependencies
create a new RunConfig object
conda_run_config = RunConfiguration(framework="python")
set the data reference of the run coonfiguration
conda_run_config.data_references = {ds.name: dr} `
Unfortunately, the mount path is nondeterministic right now, unlike download which we have control over where we download the data. The documentation on accessing data can be found here.

Rongduan -
I understand you to say is that Anna should use a path_on_compute argument that is constructed from the $AZUREML_DATAREFERENCE variable.
Is that correct?
Tomas
Hi Tomas,
Anna can just refer to the $AZUREML_DATAREFERENCE_{ds.name} in her get_data.py script to get the mounted path.
Thanks, Rongduan
Anna, did what Rongduan suggested above resolve the issue for you?
It works! Thanks a lot! One thing I found out is that I needed to change additionally the path format I.e. get rid of initial "/". Otherwise, it is exactly what I was looking for.
Regards Anna
On Monday, July 22, 2019, Angela Hu [email protected] wrote:
Anna, did what Rongduan suggested above resolve the issue for you?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Azure/MachineLearningNotebooks/issues/468?email_source=notifications&email_token=ABYQRZKCRIHSCR6TGS4KD33QAYOAXA5CNFSM4H63DEZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2REWUI#issuecomment-513952593, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYQRZKJCFMC43E74RKJOZDQAYOAXANCNFSM4H63DEZA .