<?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: Accessing Workspace / Repo file works in notebook, but not from job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102661#M41197</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100535"&gt;@dollyb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you please share some sample command which you are running in the init.sh file ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 13:33:59 GMT</pubDate>
    <dc:creator>ameet9257</dc:creator>
    <dc:date>2024-12-19T13:33:59Z</dc:date>
    <item>
      <title>Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102653#M41194</link>
      <description>&lt;P&gt;In a notebook attached to.a normal personal cluster I can successfully do this:&lt;/P&gt;&lt;P&gt;%fs ls &lt;A target="_blank" rel="noopener"&gt;file:/Workspace/Repos/$userName/$repoName/$folderName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I run an init-script on a UC volume that the does the same thing, I'm getting this error:&lt;/P&gt;&lt;P&gt;ls: cannot access '&lt;A target="_blank" rel="noopener"&gt;file:/Workspace/Repos/$userName/$repoName/$folderName&lt;/A&gt;': No such file or director&lt;/P&gt;&lt;P&gt;Both are run by the same user.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 12:07:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102653#M41194</guid>
      <dc:creator>dollyb</dc:creator>
      <dc:date>2024-12-19T12:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102656#M41196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100535"&gt;@dollyb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Within your init script are you doing %fs ls or unix command "ls" only? Looks like variables referenced on the path are not picking up! Have you tried adding some debug debug logic on your code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can DIM your init script I can have a look at it.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 12:52:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102656#M41196</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-19T12:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102661#M41197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100535"&gt;@dollyb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you please share some sample command which you are running in the init.sh file ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 13:33:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102661#M41197</guid>
      <dc:creator>ameet9257</dc:creator>
      <dc:date>2024-12-19T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102693#M41201</link>
      <description>&lt;P&gt;It's simply the statement I listed in my post. There are no variables, I just wrote it like that to not post the exact values. So it's something like this in the script and that's it:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ls&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;file:/Workspace/Repos/my_user_name@company.com/my_repo_name/my_folder_name&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By the way I'm on Azure Databricks. Sometimes it seems this variant doesn't support all the features the AWS/GCP variants do.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 16:28:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102693#M41201</guid>
      <dc:creator>dollyb</dc:creator>
      <dc:date>2024-12-19T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102719#M41208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100535"&gt;@dollyb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you try with just "&lt;SPAN&gt;ls&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;/Workspace/Repos/my_user_name@company.com/my_repo_name/my_folder_name"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm not sure dbutils will be useful in an init script, I will try to test it out&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 19:23:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102719#M41208</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-19T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Workspace / Repo file works in notebook, but not from job</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102745#M41223</link>
      <description>&lt;P&gt;I'm not using dbutils in my init-script, just the unix ls command.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 06:00:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-workspace-repo-file-works-in-notebook-but-not-from-job/m-p/102745#M41223</guid>
      <dc:creator>dollyb</dc:creator>
      <dc:date>2024-12-20T06:00:19Z</dc:date>
    </item>
  </channel>
</rss>

