如何使用python将数据附加到databricks中的现有文件中?

2024-06-16 14:41:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用python在DBFS中附加数据,但它抛出了错误,有人能帮我吗

#write a file to DBFS using python i/o apis
with open("/dbfs/tmp/test_dbfs.txt", 'a') as f:
  f.write("Apache Spark is awesome!\n")
  f.write("End of example!")

错误

[Errno 95] Operation not supported

Tags: to数据testtxt错误withopentmp