In the current implementation a streaming databricks notebook needs to be started based on the configuration passed. Since the rest of databricks notebooks are being invoked by using ADF,it was decided to use ADF for starting these notebooks. Since there are followup activites that needs to be done after the notebook starts, we tried to start the streaming notebook from an ADF pipeline VIA Rest API.The ADF WEB component is being leveraged to call the rest api for running a notebook. However while trying to invoke the notebook we are getting a Malformed URL Exception :-
{"error_code":"MALFORMED_REQUEST","message":"Invalid JSON given in the body of the request - failed to parse given JSON"}
The below JSON Snippet is being passed as the body for the request
{
"tasks": [
{
"task_key": "Match",
"description": "Matches orders with user sessions",
"notebook_task": {
"notebook_path": "/Users/userxxx@xxxxsandbox.com/Demo/RealTimeXXXXXXX",
},
"timeout_seconds": 86400
}
],
"run_name": "A multitask job run",
"git_source": null,
"timeout_seconds": 86400
}
Can somebody guide me on what am I doing wrong here