<?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: Can we pass Databricks output to Azure function body? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28240#M20063</link>
    <description>&lt;P&gt;Thanks @Ivan Ivan Grunev​&amp;nbsp;&amp;amp; @Donatien Tessier​&amp;nbsp; for the help.&lt;/P&gt;&lt;P&gt;I'm jst concerned about using too many resources. I did try putting the JSON output into local using the following command.&lt;/P&gt;&lt;P&gt;" dbutils.fs.put("/FileStore/my-stuff/my-file.json", jsonobject)" &lt;/P&gt;&lt;P&gt;I guess there's a command to overwrite the file too. Wondering if i can access the output from ADF and pass it to body of function.&lt;/P&gt;&lt;P&gt;If this isn't gonna work then i'll have to use blob storage. In that case can i pass the blob data as JSON to function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2019 12:57:09 GMT</pubDate>
    <dc:creator>Yogi</dc:creator>
    <dc:date>2019-04-19T12:57:09Z</dc:date>
    <item>
      <title>Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28229#M20052</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can anyone help me with Databricks and Azure function.&lt;/P&gt;
&lt;P&gt;I'm trying to pass databricks json output to azure function body in ADF job, is it possible? &lt;/P&gt;
&lt;P&gt;If yes, How? &lt;/P&gt;
&lt;P&gt;If No, what other alternative to do the same?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:50:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28229#M20052</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-17T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28230#M20053</link>
      <description>&lt;P&gt;Hi @Yogi​&amp;nbsp; Can you explain what do you mean by Databricks json output? Are you referring to a dataframe output written as json format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 21:33:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28230#M20053</guid>
      <dc:creator>girivaratharaja</dc:creator>
      <dc:date>2019-04-17T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28231#M20054</link>
      <description>&lt;P&gt;Hi @girivaratharajan​&amp;nbsp;, I'm reading data from table and converting to JSON in databricks. The JSON object then has to be passed to function. &lt;/P&gt;&lt;P&gt;I'm trying to achieve this in ADF. Where i'm linking the components and trying to pass Databricks JSON output to function as an argument/function body.&lt;/P&gt;&lt;P&gt;Hope that was clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:54:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28231#M20054</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-18T09:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28232#M20055</link>
      <description>&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt; One way is to write the json with Databricks in a azure storage account:&lt;/P&gt;&lt;P&gt; &lt;A href="https://docs.azuredatabricks.net/spark/latest/data-sources/azure/azure-storage.html" target="test_blank"&gt;https://docs.azuredatabricks.net/spark/latest/data-sources/azure/azure-storage.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Then, in the Azure Function you can access to the storage account:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob" target="test_blank"&gt;https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob&lt;/A&gt;&lt;/P&gt;&lt;P&gt; You can orchestrate this with Azure Data Factory (https://docs.microsoft.com/en-us/azure/data-factory/transform-data-using-databricks-notebook):&lt;/P&gt;&lt;P&gt; 1) Call Databricks activity that will produce the JSON&lt;/P&gt;&lt;P&gt; 2) If first activity is successful, call azure function activity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:55:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28232#M20055</guid>
      <dc:creator>DonatienTessier</dc:creator>
      <dc:date>2019-04-18T12:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28233#M20056</link>
      <description>&lt;P&gt;Thanks for the reply @Donatien Tessier​&amp;nbsp;. Will i be able to pass the value to function body using "dbutils.notebook.exit(return value)"..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:52:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28233#M20056</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-18T13:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28234#M20057</link>
      <description>&lt;P&gt;Hi @Yogi​&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Unfortunately, there is no way to receiving databricks output in Data Factory. We are using Blob/Data Lake storages for it or some database. If there are no a lot of data generated, you can try save data in databricks cluster local database with JDBC connection and then read it with data factory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 06:20:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28234#M20057</guid>
      <dc:creator>IvanIvan_Grunev</dc:creator>
      <dc:date>2019-04-19T06:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28235#M20058</link>
      <description>&lt;P&gt;Thanks @Ivan Ivan Grunev​&amp;nbsp;. Was trying to use "dbutils.notebook.exit(return value)" which outputs json.&lt;/P&gt;&lt;P&gt;Can't it be consumed by function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 07:12:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28235#M20058</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-19T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28236#M20059</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;We've tried to do that, but no luck. We've tried about a few months ago, but something has been changed.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 08:53:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28236#M20059</guid>
      <dc:creator>IvanIvan_Grunev</dc:creator>
      <dc:date>2019-04-19T08:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28237#M20060</link>
      <description>&lt;P&gt;Thanks @Ivan Ivan Grunev​&amp;nbsp;. If i understand it correctly, Databricks processes the data and saves it locally. Using ADF we read the JSON and pass it to the function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:06:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28237#M20060</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-19T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28238#M20061</link>
      <description>&lt;P&gt;@Yogi​&amp;nbsp;, actually you can send it on remote Blob or Data Lake and then read in Data Factory. Data Factory can read different formats I would recommend using Parquet bcz JSON cannot manipulate with all data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:10:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28238#M20061</guid>
      <dc:creator>IvanIvan_Grunev</dc:creator>
      <dc:date>2019-04-19T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28239#M20062</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Databricks FileSystem (DBFS) can handle some files locally or you can mount a point to a blob storage or a Data Lake. If you are using a Data Lake gen2, there are not yet an sdk for using Azure Function.&lt;/P&gt;
&lt;P&gt;First, you will write the content of a dataframe in a blob storage and then you will be able to access to the files with the Azure Functions&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:18:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28239#M20062</guid>
      <dc:creator>DonatienTessier</dc:creator>
      <dc:date>2019-04-19T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28240#M20063</link>
      <description>&lt;P&gt;Thanks @Ivan Ivan Grunev​&amp;nbsp;&amp;amp; @Donatien Tessier​&amp;nbsp; for the help.&lt;/P&gt;&lt;P&gt;I'm jst concerned about using too many resources. I did try putting the JSON output into local using the following command.&lt;/P&gt;&lt;P&gt;" dbutils.fs.put("/FileStore/my-stuff/my-file.json", jsonobject)" &lt;/P&gt;&lt;P&gt;I guess there's a command to overwrite the file too. Wondering if i can access the output from ADF and pass it to body of function.&lt;/P&gt;&lt;P&gt;If this isn't gonna work then i'll have to use blob storage. In that case can i pass the blob data as JSON to function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:57:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28240#M20063</guid>
      <dc:creator>Yogi</dc:creator>
      <dc:date>2019-04-19T12:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28241#M20064</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Finally, I did what you want.&lt;/P&gt;
&lt;P&gt;You just have to write at the end of your notebook:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dbutils.notebook.exit(&amp;lt;json or string content&amp;gt;)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you set up a notebook activity in data factory. And in the azure function activity, you pass a string like this in Body section:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;string(activity('&amp;lt;name of notebook activity&amp;gt;').output.runOutput)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It works well with small data.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 08:24:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28241#M20064</guid>
      <dc:creator>DonatienTessier</dc:creator>
      <dc:date>2019-04-30T08:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28242#M20065</link>
      <description>&lt;P&gt;@Donatien Tessier​&amp;nbsp; Do you know if there a way to pass an output from an embedded notebook (using dbutil.notebook.exit) to the parent notebook, before accessing in Data Factory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:26:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28242#M20065</guid>
      <dc:creator>PaulSimpson</dc:creator>
      <dc:date>2019-08-22T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28243#M20066</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Yes, you can: &lt;/P&gt;
&lt;P&gt;&lt;A target="_blank" href="https://"&gt;https://docs.databricks.com/user-guide/notebooks/notebook-workflows.html#example&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You will get the return value as you will do with a function.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 15:38:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28243#M20066</guid>
      <dc:creator>DonatienTessier</dc:creator>
      <dc:date>2019-09-02T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we pass Databricks output to Azure function body?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28244#M20067</link>
      <description>&lt;P&gt;You can now pass values back to ADF from a notebook.@@Yogi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though there is a size limit, so if you are passing dataset of larger than 2MB then rather write it on storage, and consume it directly with Azure Functions. You can pass the file path/ reference to ADF --&amp;gt; Azure Functions. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 04:02:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-pass-databricks-output-to-azure-function-body/m-p/28244#M20067</guid>
      <dc:creator>AbhishekNarain_</dc:creator>
      <dc:date>2019-09-11T04:02:02Z</dc:date>
    </item>
  </channel>
</rss>

