I am trying to run a Databricks job with notebook parameters within a bash script on a Linux server. I am following instructions from the docs and I have verified that the commands work in terminal.
Here is my script:
#!/bin/bash
### this commands works in terminal but not when running script
databricks jobs run-now --job-id 1 --notebook-params '{"param1":"value1"}'
### this command works fine in terminal and when running script
databricks runs list
The error I get is:
Error: JSONDecodeError: Expecting value: line 1 column 59 (char 58)
What is also interesting is that other databricks-cli
commands work in that do not require a JSON string argument.