我对 terraform databricks 实验室提供商有疑问,下面的代码给我一个错误 “状态 400:来自服务器的错误响应 {“error_code”:“INVALID_PARAMETER_VALUE”,“message”:“路径必须是绝对路径:databricks”} ” 文档中没有关于路径参数的内容,我尝试不使用“dbfs:”位,但它也不喜欢它? 欢迎任何帮助。
resource "databricks_dbfs_file" "log4j_files" {
content = filebase64("${path.module}/log.txt")
path = "dbfs://databricks/spark-log"
overwrite = true
mkdirs = true
validate_remote_file = true
}
最佳答案
请确保使用最新版本。错误消息的格式表明您使用的是 0.2.3 版本之前的版本。
请务必使用dbfs文件资源的source
语法,如图this example for integration tests :
resource "databricks_dbfs_file" "show_variables" {
source = "${path.module}/log.txt"
path = "dbfs:/path/to/log.txt"
}
关于azure - Terraform databricks 实验室提供商,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64010530/