在 dbfs 中存储加密/解密密钥

问题描述

如何将我的加密/解密密钥存储在 databricks dbfs 中?我想弄清楚如何将 .asc 文件保存到 dbfs。我尝试了以下代码来测试这一点,但我不断收到以下错误

string = "Python is interesting."
arr = bytes(string,'utf-8')
open('/tmp/pgp/keys/test.asc','wb').write(bytes(arr))

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pgp/keys/test.asc'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)