<?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 you access a repo file in an init script? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-you-access-a-repo-file-in-an-init-script/m-p/11171#M6194</link>
    <description>&lt;P&gt;you can install in a cluster&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jan 2023 12:46:57 GMT</pubDate>
    <dc:creator>sher</dc:creator>
    <dc:date>2023-01-22T12:46:57Z</dc:date>
    <item>
      <title>Can you access a repo file in an init script?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-access-a-repo-file-in-an-init-script/m-p/11170#M6193</link>
      <description>&lt;P&gt;I'd like to configure a cluster with python libraries as defined in a requirements file. I have a pip requirements.txt file in a private repo which I have integrated on Databricks (and I can access it through the UI and view it on Databricks). I update this requirements file from time to time with new libraries, which is why I keep in on a repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I uploaded an init script to the DBFS and specified it under Init Scripts for the Cluster. Here is what my file looks like (with the brackets filled in):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
/databricks/python/bin/pip install -r /Repos/&amp;lt;email&amp;gt;/&amp;lt;repo-name&amp;gt;/&amp;lt;folder&amp;gt;/requirements.txt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But initialization of my cluster fails. The error message says only the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Cluster scoped init script dbfs:/FileStore/init_scripts/db_init.sh failed: Script exit status is non-zero
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there something that I am doing wrong, or is this even possible to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 16:32:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-access-a-repo-file-in-an-init-script/m-p/11170#M6193</guid>
      <dc:creator>tatekeller</dc:creator>
      <dc:date>2023-01-19T16:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you access a repo file in an init script?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-you-access-a-repo-file-in-an-init-script/m-p/11171#M6194</link>
      <description>&lt;P&gt;you can install in a cluster&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 12:46:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-you-access-a-repo-file-in-an-init-script/m-p/11171#M6194</guid>
      <dc:creator>sher</dc:creator>
      <dc:date>2023-01-22T12:46:57Z</dc:date>
    </item>
  </channel>
</rss>

