<?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: java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66611#M3209</link>
    <description>&lt;P&gt;Thanks for the reply Kaniz. I was able to recrete the model locally and it worked when I gave it the right jars using spark.config. The catch is that I am trying to do this in mlflow and I have no way or specifying this explicitly there. How can I give these jars in mlflow ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 15:42:56 GMT</pubDate>
    <dc:creator>Shreyash</dc:creator>
    <dc:date>2024-04-18T15:42:56Z</dc:date>
    <item>
      <title>java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler</title>
      <link>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66383#M3200</link>
      <description>&lt;P&gt;I am trying to serve a pyspark model using an endpoint. I was able to load and register the model normally. I could also load that model and perform inference but while serving the model, I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[94fffqts54] ERROR StatusLogger Reconfiguration failed: No configuration found for 'Default' at 'null' in 'null'
[94fffqts54] ERROR StatusLogger Reconfiguration failed: No configuration found for '5ffd2b27' at 'null' in 'null'
[94fffqts54] ERROR StatusLogger Reconfiguration failed: No configuration found for 'Default' at 'null' in 'null'
[94fffqts54] An error occurred while loading the model. An error occurred while calling o63.load.
[94fffqts54] : java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler
[94fffqts54] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My conf file looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;conda_env_conf = {
    "channels": ["defaults"],
    "dependencies": [
        "python=3.9.5",
        "pip",
        {
            "pip": [
                "spark-nlp==5.3.1",
                "pyspark==3.3.2",
                "mlflow==2.9.2"
            ],
            "maven": [
              {"coordinates":"com.johnsnowlabs.nlp:spark-nlp_2.12:5.3.1"},
              {"coordinates":"mx.com.sw:sdk-java18:0.0.1.5"}
            ]
        },
    ],
    "name": "bert_env",
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 18:49:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66383#M3200</guid>
      <dc:creator>Shreyash</dc:creator>
      <dc:date>2024-04-16T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler</title>
      <link>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66493#M3205</link>
      <description>&lt;P&gt;Hey Kaniz,&lt;/P&gt;&lt;P&gt;Thank you for that response. Although I passed in the jars via the conf as mentioned above. I tried passing it in the cluster conf as well. I also checked the version compatibility and it seems to be fine. Still does not work.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:10:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66493#M3205</guid>
      <dc:creator>Shreyash</dc:creator>
      <dc:date>2024-04-17T16:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler</title>
      <link>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66611#M3209</link>
      <description>&lt;P&gt;Thanks for the reply Kaniz. I was able to recrete the model locally and it worked when I gave it the right jars using spark.config. The catch is that I am trying to do this in mlflow and I have no way or specifying this explicitly there. How can I give these jars in mlflow ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 15:42:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/66611#M3209</guid>
      <dc:creator>Shreyash</dc:creator>
      <dc:date>2024-04-18T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: com.johnsnowlabs.nlp.DocumentAssembler</title>
      <link>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/69123#M3270</link>
      <description>&lt;P&gt;I'm having the same problem and have tried various solutions with no luck. I found some potentially relevant information on the following link:&amp;nbsp;&lt;A href="https://www.johnsnowlabs.com/serving-spark-nlp-via-api-3-3-databricks-jobs-and-mlflow-serve-apis/" target="_blank"&gt;https://www.johnsnowlabs.com/serving-spark-nlp-via-api-3-3-databricks-jobs-and-mlflow-serve-apis/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the link I found the following answer:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORTANT&lt;/STRONG&gt;&lt;SPAN&gt;: As of 17/02/2022, there is an issue being studied by the Databricks team, regarding the creation on the fly of job clusters to serve MLFlow models that require configuring the Spark Session with specific jars. This will be fixed in later versions of Databricks. In the meantime, the way to go is using Databricks Jobs API.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Has this already been resolved? Would it be possible to have a hands on task to show how to solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 03:10:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/java-lang-classnotfoundexception-com-johnsnowlabs-nlp/m-p/69123#M3270</guid>
      <dc:creator>Rajora</dc:creator>
      <dc:date>2024-05-16T03:10:08Z</dc:date>
    </item>
  </channel>
</rss>

