[英]How to append data to an existing file in databricks with python?
我正在嘗試使用 python 對 DBFS 中的 append 數據進行處理,但它會拋出錯誤,有人可以幫忙嗎
#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
基於 Databricks 中有關本地文件 API 的文檔:
運行時 6.0 有一個限制:它不支持隨機寫入
請參考文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.