DEV Community

Discussion on: Automating Databricks with Bash

Collapse
 
sivakumark profile image
Siva

JOB_ID=$(databricks jobs list --output JSON | jq -r --arg I "$JOB_NAME" '.jobs[] | select (.settings.name == $I) | .job_id')
while running above line, it throwing error for me like jq: error (at :371): Cannot index array with string "jobs"

could you please help me here , I have the similar kind of requirement