<?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: Configuring pip index-url and using artifacts-keyring in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/92694#M38510</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98350"&gt;@ipreston&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In my team right now we are using Databrick Asset Bundle (DAB) and for solving a similar issue which is: &lt;EM&gt;retrieving private libraries hosted in Azure DevOps Artifact Feed&lt;/EM&gt;, we added:&lt;/P&gt;&lt;P&gt;To the databricks.yml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;targets:
  dev:
    mode: development
    default: true
    run_as:
      user_name: oishiiramen@chuushoku.com
    resources:
      jobs:
        our_job:
          job_clusters:
            - job_cluster_key: ${bundle.target}-${bundle.name}-job-cluster
              new_cluster:
                num_workers: 2
                spark_version: "14.3.x-cpu-ml-scala2.12"
                node_type_id: Standard_F8
                spark_env_vars:
                  PIP_EXTRA_INDEX_URL: "{{secrets/our_secret/our_url}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the pyproject.toml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[[tool.poetry.source]]
name = "our_enterprise"
url = "https://our_enterprise.pkgs.visualstudio.com/_packaging/our_enterprise/pypi/simple"
priority = "supplemental"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that I can retrieve the libraries from the artifact feed.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 19:44:03 GMT</pubDate>
    <dc:creator>PabloCSD</dc:creator>
    <dc:date>2024-10-03T19:44:03Z</dc:date>
    <item>
      <title>Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23815#M16514</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the azure artifact feed as my default index-url when doing a pip install on a Databricks cluster.   I understand I can achieve this by updating the pip.conf file with my artifact feed as the index-url.  Does anyone know where in the filesystem I would update that, or has a global init script that achieves that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second question, I would like to have it so users  can pip install from a notebook, while having that exact same notebook work when run in a job by a service principal, so can't authenticate as a user.&lt;/P&gt;&lt;P&gt;I believe that using the artifacts-keyring I should be able to add an environment variable on the jobs cluster that forces it to use a PAT to authenticate to the artifact feed.  Has anyone tried this/has an example of doing similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 10:57:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23815#M16514</guid>
      <dc:creator>Confused</dc:creator>
      <dc:date>2022-04-04T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23816#M16515</link>
      <description>&lt;P&gt;for your first question &lt;A href="https://docs.databricks.com/libraries/index.html#python-environment-management" target="test_blank"&gt;https://docs.databricks.com/libraries/index.html#python-environment-management&lt;/A&gt; and &lt;A href="https://docs.databricks.com/libraries/notebooks-python-libraries.html#manage-libraries-with-pip-commands" target="test_blank"&gt;https://docs.databricks.com/libraries/notebooks-python-libraries.html#manage-libraries-with-pip-commands&lt;/A&gt; this may help. again you can convert this to init script .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 05:51:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23816#M16515</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-05-13T05:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23817#M16516</link>
      <description>&lt;P&gt;Hi @Mathew Walters​,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Do you still need help or Atanu's response helped you to resolved your issue?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 18:12:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/23817#M16516</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-06-07T18:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/91954#M38303</link>
      <description>&lt;P&gt;Reviving this thread as I'm having the same issue. While embedding the PAT would work to install a package directly into my environment, my requirement is to install packages that have libraries hosted in artifact feeds as dependencies. Since the dependency spec is external to databricks in that situation I don't think I can retrieve a PAT from a secret scope to accomplish this. Outside of databricks as described above I'd authenticate to DevOps with somethine like az login and then the credential would be accessible through artifacts keyring. I'm not sure how to reproduce this in databricks though&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 18:40:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/91954#M38303</guid>
      <dc:creator>ipreston</dc:creator>
      <dc:date>2024-09-26T18:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/92694#M38510</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98350"&gt;@ipreston&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In my team right now we are using Databrick Asset Bundle (DAB) and for solving a similar issue which is: &lt;EM&gt;retrieving private libraries hosted in Azure DevOps Artifact Feed&lt;/EM&gt;, we added:&lt;/P&gt;&lt;P&gt;To the databricks.yml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;targets:
  dev:
    mode: development
    default: true
    run_as:
      user_name: oishiiramen@chuushoku.com
    resources:
      jobs:
        our_job:
          job_clusters:
            - job_cluster_key: ${bundle.target}-${bundle.name}-job-cluster
              new_cluster:
                num_workers: 2
                spark_version: "14.3.x-cpu-ml-scala2.12"
                node_type_id: Standard_F8
                spark_env_vars:
                  PIP_EXTRA_INDEX_URL: "{{secrets/our_secret/our_url}}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the pyproject.toml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[[tool.poetry.source]]
name = "our_enterprise"
url = "https://our_enterprise.pkgs.visualstudio.com/_packaging/our_enterprise/pypi/simple"
priority = "supplemental"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that I can retrieve the libraries from the artifact feed.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 19:44:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/92694#M38510</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2024-10-03T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/94403#M38899</link>
      <description>&lt;P&gt;how do you authenticate in this case?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 06:14:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/94403#M38899</guid>
      <dc:creator>SergeyK</dc:creator>
      <dc:date>2024-10-17T06:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring pip index-url and using artifacts-keyring</title>
      <link>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/96053#M39202</link>
      <description>&lt;P&gt;For Authentication you can provide below config on cluster's Spark Environment Variables,&lt;BR /&gt;&lt;SPAN&gt;PIP_EXTRA_INDEX_URL=&lt;A href="https://username:password@pkgs.sample.com/sample/_packaging/artifactory_name/pypi/simple/" target="_blank"&gt;https://username:password@pkgs.sample.com/sample/_packaging/artifactory_name/pypi/simple/&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Also, you can store the value in Databricks secret&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 21:28:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/configuring-pip-index-url-and-using-artifacts-keyring/m-p/96053#M39202</guid>
      <dc:creator>murtazahzaveri</dc:creator>
      <dc:date>2024-10-24T21:28:17Z</dc:date>
    </item>
  </channel>
</rss>

