<?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: Run stored bash in Databricks with %sh in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27459#M19331</link>
    <description>&lt;P&gt;Hi @keunsoop​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to run your code using an init script? I would like to share some docs in case you might have some questions &lt;A href="https://docs.databricks.com/clusters/init-scripts.html" target="test_blank"&gt;https://docs.databricks.com/clusters/init-scripts.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 18:48:35 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2022-04-11T18:48:35Z</dc:date>
    <item>
      <title>Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27451#M19323</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi, I made bash file in databricks and I can see that the file is stored as the following picture.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693f000007OoILAA0"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2500iAE66DB7A3EAB9324/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693f000007OoILAA0" alt="0693f000007OoILAA0" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was supposed to run this bash file through %sh cell, but as you see the following picture, I could not find bash file, which I could find through dbutils.fs.&lt;/P&gt;
&lt;P&gt;Is there any way to run bash file stored in dbutils through the cell? This bash file is for installing packages, and executed as restarting cluster, but I would like to run this one manually so that I do not need to restart cluster whenever package is updated. Thanks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693f000007OoIMAA0"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2504i14095F2A9DF64EA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693f000007OoIMAA0" alt="0693f000007OoIMAA0" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 19:53:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27451#M19323</guid>
      <dc:creator>keunsoop</dc:creator>
      <dc:date>2019-12-03T19:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27452#M19324</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The %sh command runs on the driver, &lt;/P&gt;
&lt;P&gt;The driver has dbfs: mounted under /dbfs&lt;/P&gt;
&lt;P&gt;So paths you might think of as dbfs:/FileStore end up being /dbfs/FileStore&lt;/P&gt;
&lt;P&gt;I was able to execute a shell script by uploading to the FileStore&lt;/P&gt;
&lt;P&gt;Moving to current working directory with a &lt;/P&gt;
&lt;P&gt;%sh mv command&lt;/P&gt;
&lt;P&gt;and then executing with a &lt;/P&gt;
&lt;P&gt;%sh sh myscript.sh&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:15:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27452#M19324</guid>
      <dc:creator>User16857282152</dc:creator>
      <dc:date>2019-12-05T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27453#M19325</link>
      <description>&lt;P&gt;Hello @Tom Hanlon​&amp;nbsp;&lt;/P&gt;&lt;P&gt; Could you please explain in details how it is done,&lt;/P&gt;&lt;P&gt;I am not able to run the .sh file in databricks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:00:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27453#M19325</guid>
      <dc:creator>Lokesh_Vish</dc:creator>
      <dc:date>2020-07-22T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27454#M19326</link>
      <description>&lt;P&gt;@Tom Hanlon​&amp;nbsp; Uploading to FileStore path is to create data. How can we easily access the directory and upload .sh file to run the same in the workspace?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:55:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27454#M19326</guid>
      <dc:creator>jimnaik</dc:creator>
      <dc:date>2022-02-09T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27455#M19327</link>
      <description>&lt;P&gt;@Lokesh_Vish​&amp;nbsp;were you able to execute it?&lt;/P&gt;&lt;P&gt;I am facing similar issue and not able to upload and execute .sh as well as .py file.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:58:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27455#M19327</guid>
      <dc:creator>jimnaik</dc:creator>
      <dc:date>2022-02-09T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27456#M19328</link>
      <description>&lt;P&gt;Hello @Jimit Naik​&amp;nbsp;- My name is Piper, and I'm a Databricks community moderator. Thank you for asking about this. We'll give the community a chance to respond first. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:15:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27456#M19328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27458#M19330</link>
      <description>&lt;P&gt;this can be run through init script I think,@keunsoop​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:59:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27458#M19330</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-08T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run stored bash in Databricks with %sh</title>
      <link>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27459#M19331</link>
      <description>&lt;P&gt;Hi @keunsoop​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to run your code using an init script? I would like to share some docs in case you might have some questions &lt;A href="https://docs.databricks.com/clusters/init-scripts.html" target="test_blank"&gt;https://docs.databricks.com/clusters/init-scripts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:48:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-stored-bash-in-databricks-with-sh/m-p/27459#M19331</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-04-11T18:48:35Z</dc:date>
    </item>
  </channel>
</rss>

