MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

DataReferenceConfiguration stops working when mode=mount is used

Open kubasiak opened this issue 7 years ago • 7 comments

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.

kubasiak avatar Jul 08 '19 12:07 kubasiak

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).

yanrez avatar Jul 08 '19 17:07 yanrez

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} `

kubasiak avatar Jul 09 '19 14:07 kubasiak

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.

image

rongduan-zhu avatar Jul 11 '19 17:07 rongduan-zhu

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

singliar avatar Jul 12 '19 17:07 singliar

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

rongduan-zhu avatar Jul 13 '19 03:07 rongduan-zhu

Anna, did what Rongduan suggested above resolve the issue for you?

ayuwhu avatar Jul 22 '19 21:07 ayuwhu

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 .

kubasiak avatar Jul 22 '19 23:07 kubasiak