<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rest API invocation for databricks notebook fails while invoking from ADF pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20494#M13830</link>
    <description>&lt;P&gt;@Prasanth KP​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;remove comma after XXXXXXX",&lt;/LI&gt;&lt;LI&gt;remove "git_source": null&lt;/LI&gt;&lt;LI&gt;in ADF, I had to wrap everything in single quotes&lt;/LI&gt;&lt;LI&gt;Please test your API call with curl or postman first.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'{
  "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",
  "timeout_seconds": 86400
}'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 09:48:06 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-05-17T09:48:06Z</dc:date>
    <item>
      <title>Rest API invocation for databricks notebook fails while invoking from ADF pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20493#M13829</link>
      <description>&lt;P&gt;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 :-&lt;/P&gt;&lt;P&gt;{"error_code":"MALFORMED_REQUEST","message":"Invalid JSON given in the body of the request - failed to parse given JSON"}&lt;/P&gt;&lt;P&gt;The below JSON Snippet is being passed as the body for the request&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
  "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
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can somebody guide me on what am I doing wrong here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:58:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20493#M13829</guid>
      <dc:creator>sparkstreaming</dc:creator>
      <dc:date>2022-05-16T12:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API invocation for databricks notebook fails while invoking from ADF pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20494#M13830</link>
      <description>&lt;P&gt;@Prasanth KP​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;remove comma after XXXXXXX",&lt;/LI&gt;&lt;LI&gt;remove "git_source": null&lt;/LI&gt;&lt;LI&gt;in ADF, I had to wrap everything in single quotes&lt;/LI&gt;&lt;LI&gt;Please test your API call with curl or postman first.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'{
  "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",
  "timeout_seconds": 86400
}'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 09:48:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20494#M13830</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-05-17T09:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API invocation for databricks notebook fails while invoking from ADF pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20495#M13831</link>
      <description>&lt;P&gt;@Prasanth KP​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clearly, the rest call is invalid. What endpoint do you call?&lt;/P&gt;&lt;P&gt;Also do not forget to authenticate.&lt;/P&gt;&lt;P&gt;May I ask why you use the REST API instead of the available notebook functionality of ADF?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 09:54:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20495#M13831</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-05-17T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API invocation for databricks notebook fails while invoking from ADF pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20497#M13833</link>
      <description>Thanks Hubert. This worked.</description>
      <pubDate>Thu, 19 May 2022 05:05:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20497#M13833</guid>
      <dc:creator>sparkstreaming</dc:creator>
      <dc:date>2022-05-19T05:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API invocation for databricks notebook fails while invoking from ADF pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20498#M13834</link>
      <description>Thank you Kaniz. The solution suggested by Hubert worked.</description>
      <pubDate>Thu, 19 May 2022 05:06:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/rest-api-invocation-for-databricks-notebook-fails-while-invoking/m-p/20498#M13834</guid>
      <dc:creator>sparkstreaming</dc:creator>
      <dc:date>2022-05-19T05:06:29Z</dc:date>
    </item>
  </channel>
</rss>

