<?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: how to pass arguments and variables to databricks python activity from azure data factory in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27963#M19801</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm afraid I do not have experience with that, just passing parameters through widgets in notebooks.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 12:44:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-23T12:44:50Z</dc:date>
    <item>
      <title>how to pass arguments and variables to databricks python activity from azure data factory</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27960#M19798</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;how to pass arguments and variables to databricks python activity from azure data factory&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:45:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27960#M19798</guid>
      <dc:creator>MallikSunkara</dc:creator>
      <dc:date>2019-07-22T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass arguments and variables to databricks python activity from azure data factory</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27961#M19799</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I do something like this...&lt;/P&gt;
&lt;P&gt;In DBrix notebook:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.text("runDateYYYYMMDD", "")
runDate = dbutils.widgets.get("runDateYYYYMMDD")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In Data Factory:&lt;/P&gt;
&lt;P&gt;&lt;B&gt; Pipeline &amp;gt; Parameters tab &amp;gt; New Parameter:&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Name: RunDate, Type:String, Default Value:&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Data Bricks Notebook Activity &amp;gt; Settings tab &amp;gt; New Base Parameter:&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Name=runDateYYYYMMDD, Value=pipeline().parameters.RunDate&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:31:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27961#M19799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-22T15:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass arguments and variables to databricks python activity from azure data factory</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27962#M19800</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Timkracht,&lt;/P&gt;
&lt;P&gt;thanks for your reply.&lt;/P&gt;
&lt;P&gt; is there any way to directly to read those parameters without using widgets. what we need is from azure data factory we are triggering python activity as python program file is stored in dbfs, now i need to access those variables in that python program.&lt;/P&gt;
&lt;P&gt; what we need is which python files are being executed by which pipeline and activity of azure data factory.&lt;/P&gt;
&lt;P&gt;thanks in advance.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 06:01:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27962#M19800</guid>
      <dc:creator>MallikSunkara</dc:creator>
      <dc:date>2019-07-23T06:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass arguments and variables to databricks python activity from azure data factory</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27963#M19801</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm afraid I do not have experience with that, just passing parameters through widgets in notebooks.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 12:44:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27963#M19801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass arguments and variables to databricks python activity from azure data factory</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27964#M19802</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;try importing argv from sys. Then if you have the parameter added correctly in DataFactory you could get it in your python script typing argv[1] (index 0 is the file path). &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:43:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-arguments-and-variables-to-databricks-python/m-p/27964#M19802</guid>
      <dc:creator>CristianIspan</dc:creator>
      <dc:date>2021-05-27T13:43:58Z</dc:date>
    </item>
  </channel>
</rss>

