<?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 Unable to get  mlflow central model registry to work with  dbconnect. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-get-mlflow-central-model-registry-to-work-with/m-p/24837#M17275</link>
    <description>&lt;P&gt;I'm working on setting up tooling to allow team members to easily register and load models from a central mlflow model registry via dbconnect. &lt;/P&gt;&lt;P&gt;However after&lt;A href="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" alt="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" target="_blank"&gt; following the instructions at the public docs &lt;/A&gt;, hitting this error &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;raise _NoDbutilsError
mlflow.utils.databricks_utils._NoDbutilsError &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Looks like&lt;A href="https://github.com/mlflow/mlflow/blob/master/mlflow/utils/databricks_utils.py#L18" alt="https://github.com/mlflow/mlflow/blob/master/mlflow/utils/databricks_utils.py#L18" target="_blank"&gt; _get_dbutils&amp;nbsp;in mlflow expects&lt;/A&gt;&amp;nbsp;a valid instance of&amp;nbsp; ip_shell. Any pointers or workarounds on how to get dbconnect to work with &lt;A href="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" alt="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" target="_blank"&gt;central model registry &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jun 2021 23:48:27 GMT</pubDate>
    <dc:creator>sajith_appukutt</dc:creator>
    <dc:date>2021-06-13T23:48:27Z</dc:date>
    <item>
      <title>Unable to get  mlflow central model registry to work with  dbconnect.</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-get-mlflow-central-model-registry-to-work-with/m-p/24837#M17275</link>
      <description>&lt;P&gt;I'm working on setting up tooling to allow team members to easily register and load models from a central mlflow model registry via dbconnect. &lt;/P&gt;&lt;P&gt;However after&lt;A href="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" alt="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" target="_blank"&gt; following the instructions at the public docs &lt;/A&gt;, hitting this error &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;raise _NoDbutilsError
mlflow.utils.databricks_utils._NoDbutilsError &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Looks like&lt;A href="https://github.com/mlflow/mlflow/blob/master/mlflow/utils/databricks_utils.py#L18" alt="https://github.com/mlflow/mlflow/blob/master/mlflow/utils/databricks_utils.py#L18" target="_blank"&gt; _get_dbutils&amp;nbsp;in mlflow expects&lt;/A&gt;&amp;nbsp;a valid instance of&amp;nbsp; ip_shell. Any pointers or workarounds on how to get dbconnect to work with &lt;A href="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" alt="https://docs.databricks.com/applications/machine-learning/manage-model-lifecycle/multiple-workspaces.html#set-up-the-api-token-for-a-remote-registry" target="_blank"&gt;central model registry &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 23:48:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-get-mlflow-central-model-registry-to-work-with/m-p/24837#M17275</guid>
      <dc:creator>sajith_appukutt</dc:creator>
      <dc:date>2021-06-13T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get  mlflow central model registry to work with  dbconnect.</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-get-mlflow-central-model-registry-to-work-with/m-p/24838#M17276</link>
      <description>&lt;P&gt;You could monkey patch MLFlow's _get_dbutils() with something similar to this to get this working while connecting from dbconnect&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark = SparkSession.builder.getOrCreate()
# monkey-patch MLFlow's _get_dbutils()
def _get_dbutils():
    return DBUtils(spark)
&amp;nbsp;
mlflow.utils.databricks_utils._get_dbutils = _get_dbutils&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:55:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-get-mlflow-central-model-registry-to-work-with/m-p/24838#M17276</guid>
      <dc:creator>sajith_appukutt</dc:creator>
      <dc:date>2021-06-18T20:55:43Z</dc:date>
    </item>
  </channel>
</rss>

