我正在研究azure databricks笔记本。它具有以下逻辑:
try:
mounts3() # Will mount from s3 to DBFS
Method1() # read files from mount path and doing some operation
Method2() # read files from mount path and doing some operation
except Exception as e:
raise(e)
finally:
unmounts3() # Will unmount the files
我通过逻辑应用程序安排了它,创建了ADF以运行笔记本。运行逻辑应用程序时,可以看到mount()
已成功执行。
但是在执行method1()时触发了unmount()
函数,而我遇到的是FileNotFoundException
。因为卸载功能跑了。
我不明白为什么在完成Method1
和Method2