The following code works well in a normal Databricks cluster, where it passes a null JSON and retrieves content from the web link.
However, in a Unity cluster, it produces the following error: 'FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/mnt/raw/processing/facts/acc/dataacc.json
import requests
data1 = requests.post('https://weblink', json={})
with open('/dbfs/mnt/raw/processing/facts/acc/dataacc.json', mode='wb') as dataFile:
dataFile.write(data1.content)
why does it create a write error when using unity cluster?