<?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 DNS_Analytics Notebook Problems in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dns-analytics-notebook-problems/m-p/16238#M10444</link>
    <description>&lt;P&gt;Hello everyone! First post on the forums, been stuck at this for awhile now and cannot seem to understand why this is happening. Basically, I have been using a seems to be premade Databricks notebook from Databricks themselves for a DNS Analytics example that uses MLflow and more(&amp;nbsp;Here's the Notebook). I even set this notebook to run in a community edition variant of it as I am using the community edition of Databricks. No matter what I keep getting the same error throwing on command 32 which is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RestException: RESOURCE_DOES_NOT_EXIST: No file or directory exists on path /FileStore/tables/model.
---------------------------------------------------------------------------
RestException                             Traceback (most recent call last)
&amp;lt;command-168210906724122&amp;gt; in &amp;lt;module&amp;gt;
      4 
      5 model_path = 'dbfs:/FileStore/tables/model'
----&amp;gt; 6 loaded_model = mlflow.pyfunc.load_model(model_path)
      7 spark.udf.register("ioc_detect", loaded_model.predict)
/local_disk0/.ephemeral_nfs/envs/pythonEnv-528b26da-5f61-435c-b5a3-3adc5ab7c638/lib/python3.8/site-packages/mlflow/pyfunc/__init__.py in load_model(model_uri, suppress_warnings)
    637                               messages will be emitted.
    638     """
--&amp;gt; 639     local_path = _download_artifact_from_uri(artifact_uri=model_uri)
    640     model_meta = Model.load(os.path.join(local_path, MLMODEL_FILE_NAME))
    641 
/local_disk0/.ephemeral_nfs/envs/pythonEnv-528b26da-5f61-435c-b5a3-3adc5ab7c638/lib/python3.8/site-packages/mlflow/tracking/artifact_utils.py in _download_artifact_from_uri(artifact_uri, output_path)
     77         root_uri = prefix + urllib.parse.urlunparse(parsed_uri)
     78 
---&amp;gt; 79     return get_artifact_repository(artifact_uri=root_uri).download_artifacts(
     80         artifact_path=artifact_path, dst_path=output_path
     81     )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any recommendations or fixes or some direction would be appreciated thank you!&lt;/P&gt;&lt;P&gt;The code that throws this error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;#Load the DGA model. This is a pre-trained model that we will use to enrich our incoming DNS events. You will see how to train this model in a later step.
import mlflow
import mlflow.pyfunc
model_path = 'dbfs:/FileStore/tables/model'
loaded_model = mlflow.pyfunc.load_model(model_path)
spark.udf.register("ioc_detect", loaded_model.predict)&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 12:22:41 GMT</pubDate>
    <dc:creator>NickGoodfella</dc:creator>
    <dc:date>2021-08-20T12:22:41Z</dc:date>
    <item>
      <title>DNS_Analytics Notebook Problems</title>
      <link>https://community.databricks.com/t5/data-engineering/dns-analytics-notebook-problems/m-p/16238#M10444</link>
      <description>&lt;P&gt;Hello everyone! First post on the forums, been stuck at this for awhile now and cannot seem to understand why this is happening. Basically, I have been using a seems to be premade Databricks notebook from Databricks themselves for a DNS Analytics example that uses MLflow and more(&amp;nbsp;Here's the Notebook). I even set this notebook to run in a community edition variant of it as I am using the community edition of Databricks. No matter what I keep getting the same error throwing on command 32 which is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RestException: RESOURCE_DOES_NOT_EXIST: No file or directory exists on path /FileStore/tables/model.
---------------------------------------------------------------------------
RestException                             Traceback (most recent call last)
&amp;lt;command-168210906724122&amp;gt; in &amp;lt;module&amp;gt;
      4 
      5 model_path = 'dbfs:/FileStore/tables/model'
----&amp;gt; 6 loaded_model = mlflow.pyfunc.load_model(model_path)
      7 spark.udf.register("ioc_detect", loaded_model.predict)
/local_disk0/.ephemeral_nfs/envs/pythonEnv-528b26da-5f61-435c-b5a3-3adc5ab7c638/lib/python3.8/site-packages/mlflow/pyfunc/__init__.py in load_model(model_uri, suppress_warnings)
    637                               messages will be emitted.
    638     """
--&amp;gt; 639     local_path = _download_artifact_from_uri(artifact_uri=model_uri)
    640     model_meta = Model.load(os.path.join(local_path, MLMODEL_FILE_NAME))
    641 
/local_disk0/.ephemeral_nfs/envs/pythonEnv-528b26da-5f61-435c-b5a3-3adc5ab7c638/lib/python3.8/site-packages/mlflow/tracking/artifact_utils.py in _download_artifact_from_uri(artifact_uri, output_path)
     77         root_uri = prefix + urllib.parse.urlunparse(parsed_uri)
     78 
---&amp;gt; 79     return get_artifact_repository(artifact_uri=root_uri).download_artifacts(
     80         artifact_path=artifact_path, dst_path=output_path
     81     )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any recommendations or fixes or some direction would be appreciated thank you!&lt;/P&gt;&lt;P&gt;The code that throws this error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;#Load the DGA model. This is a pre-trained model that we will use to enrich our incoming DNS events. You will see how to train this model in a later step.
import mlflow
import mlflow.pyfunc
model_path = 'dbfs:/FileStore/tables/model'
loaded_model = mlflow.pyfunc.load_model(model_path)
spark.udf.register("ioc_detect", loaded_model.predict)&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:22:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dns-analytics-notebook-problems/m-p/16238#M10444</guid>
      <dc:creator>NickGoodfella</dc:creator>
      <dc:date>2021-08-20T12:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: DNS_Analytics Notebook Problems</title>
      <link>https://community.databricks.com/t5/data-engineering/dns-analytics-notebook-problems/m-p/16239#M10445</link>
      <description>&lt;P&gt;@NickGoodfella​&amp;nbsp;, What's the notebook you're looking at, this one? &lt;A href="https://databricks.com/notebooks/dns-analytics.html" alt="https://databricks.com/notebooks/dns-analytics.html" target="_blank"&gt;https://databricks.com/notebooks/dns-analytics.html&lt;/A&gt; Are you sure all the previous cells executed? this is suggesting there isn't a model at the path that's expected. You can take a look with %fs ls ... to see what's actually there&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 17:42:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dns-analytics-notebook-problems/m-p/16239#M10445</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2021-09-01T17:42:04Z</dc:date>
    </item>
  </channel>
</rss>

