For the first scenario, I see that error is a known issue with a particular version of fuse. Please see this bug report.
You can try to install the latest version of fuse as mentioned in the note of the documentation.
For the second scenario, I can see only one dataset is supported with relative path to the source files. Please see the reference and samples here. I think in your case the first datastore was mounted.
If an answer is helpful, please click on or upvote
which might help other community members reading this thread.
@romungi-MSFT Thanks a lot for answering the question. Your method worked perfectly.
Also can I mount the dataset to a specific folder ?#1
There is some warning while I mounted the dataset that points to two different datastores but worked fine#2 - Is it correct , can I ignore the warning or is it some kind of error ?
Access datastores
az_datastore = Datastore.get(ws,'external')
meta_datastore = Datastore.get(ws,'meta')
1 Wanted to mount dataset to a specific folder that I created
dataset_one = Dataset.File.from_files([(az_datastore,r"all_img/**/*")])
dataset_one.register(workspace=ws,name='test_d2_1',description='Testing purpose only')
ML Workspace/studio:
os.mkdir('data')
DATA_DIR = os.path.abspath("data")
mount_context = dataset.mount(mount_point=DATA_DIR)
mount_context.start()
output:
fusermount: mounting over filesystem type 0xfe534d42 is forbidden
PyFuseError: MountPointCreationError(Some(1))
2 Created dataset pointing to two different datastores : az_datastore,meta_datastore
dataset_two = Dataset.File.from_files([(az_datastore,r"all_img/day_one_image/**/*"),(meta_datastore,r"img_label.csv")])
dataset_two.register(workspace=ws,name='test_d2_2',description='Testing purpose only')
ML Workspace:
mounted_path = tempfile.mkdtemp()
mount_context = dataset.mount(mounted_path)
mount_context.start()
print(os.listdir(mounted_path))
print (mounted_path)
output:
Not mounting as a volume: Volume mount only supports datasets with exactly one datastore path, actual: 2.
Falling back to dataflow mount.
['external', 'meta']
/tmp/tmpojzekdud