CLI jobs create issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-12-2024 04:01 PM
I am trying to create a job using the CLI and getting the below error attached
The command itself was grabbed from the UI so I know it is ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-13-2024 12:31 AM
Hello!
If youโre getting an error while creating a job using the CLI, ensure the command syntax is correct, update the CLI to the latest version, verify your permissions, and use the --debug option for detailed error messages. Also, check that youโre specifying the correct AWS region and endpoint. If the issue persists, please share the specific error message for further assistance.
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ09-13-2024 03:40 AM
Hi @ragonzalez ,
You can try to escape quotation marks and see if that helps. Something similar to below:
{ \"custom_tags.test_tag\": { \"type\": \"fixed\", \"value\": \"test_value\" } }\n"
And you don't have to provide whole request body to command line, you can save json body to a file and then reference it in databricks cli in following way:
databricks jobs create --profile dev --json @your_json_with_rquest_body.json
You can take a look at my answer in similar thread, where escaping quotiaton characters helped:
https://community.databricks.com/t5/data-engineering/how-exactly-to-create-cluster-policy-via-databr...

