我编写了以下HTTP请求:
curl -X POST -H "Authorization: Bearer xxxxxxx " -H "Content-Type: application/json" -d file.json 'https://company.xxxxx.databricks.com/api/2.0/clusters/create'
file.json的内容是:
{
"cluster_name": "my-cluster","spark_version": "5.3.x-scala2.11","node_type_id": "i3.xlarge","spark_conf": {
"spark.speculation": true
},"aws_attributes": {
"availability": "SPOT","zone_id": "us-west-2a"
},"num_workers": 25
}
不幸的是,我收到以下错误:
{"error_code":"MALFORMED_REQUEST","message":"Invalid JSON given in the body of the request - failed to parse given JSON"}%
请问如何解决此问题