<?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 Error using curl within a job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-using-curl-within-a-job/m-p/79927#M35876</link>
    <description>&lt;P&gt;I have a notebook that, as a first step, needs to download and install some drivers. The actual code is this:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Install gdebi command line tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;apt-get -y install gdebi-core&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Install Posit professional drivers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -LO https://cdn.rstudio.com/drivers/7C152C12/installer/rstudio-drivers_2024.03.0_amd64.deb&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The code works fine in a notebook.&lt;/P&gt;&lt;P&gt;But now I am trying to run this notebook as a job. The problem is that, when run as a job, this curl command cannot download the file, and so the rest of the script fails.&lt;/P&gt;&lt;P&gt;As a debugging step, I set the job to run as me and use the same all-purpose cluster that I was using for interactive development. It still can't download the file.&lt;/P&gt;&lt;P&gt;Is it possible to have this code execute in a job?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 22 Jul 2024 17:13:42 GMT</pubDate>
    <dc:creator>mb1234</dc:creator>
    <dc:date>2024-07-22T17:13:42Z</dc:date>
    <item>
      <title>Error using curl within a job</title>
      <link>https://community.databricks.com/t5/data-engineering/error-using-curl-within-a-job/m-p/79927#M35876</link>
      <description>&lt;P&gt;I have a notebook that, as a first step, needs to download and install some drivers. The actual code is this:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;%sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Install gdebi command line tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;apt-get -y install gdebi-core&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Install Posit professional drivers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -LO https://cdn.rstudio.com/drivers/7C152C12/installer/rstudio-drivers_2024.03.0_amd64.deb&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The code works fine in a notebook.&lt;/P&gt;&lt;P&gt;But now I am trying to run this notebook as a job. The problem is that, when run as a job, this curl command cannot download the file, and so the rest of the script fails.&lt;/P&gt;&lt;P&gt;As a debugging step, I set the job to run as me and use the same all-purpose cluster that I was using for interactive development. It still can't download the file.&lt;/P&gt;&lt;P&gt;Is it possible to have this code execute in a job?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jul 2024 17:13:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-using-curl-within-a-job/m-p/79927#M35876</guid>
      <dc:creator>mb1234</dc:creator>
      <dc:date>2024-07-22T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error using curl within a job</title>
      <link>https://community.databricks.com/t5/data-engineering/error-using-curl-within-a-job/m-p/79941#M35877</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113217"&gt;@mb1234&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What error did you get?&lt;BR /&gt;&lt;BR /&gt;Edit: I've checked and it worked in job&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Slash_0-1721675720471.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9792i9F742AE20B49A44A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Slash_0-1721675720471.png" alt="Slash_0-1721675720471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 19:15:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-using-curl-within-a-job/m-p/79941#M35877</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-07-22T19:15:42Z</dc:date>
    </item>
  </channel>
</rss>

