<?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 Issue enabling mosaic in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85161#M9823</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to install mosaic on my cluster, but get the error&amp;nbsp;once I use 'enable_mosaic':&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ImportError: cannot import name '_to_java_column' from 'pyspark.sql.functions' (/databricks/spark/python/pyspark/sql/functions/__init__.py)
File &amp;lt;command-1412689069782833&amp;gt;, line 2
      1 from pyspark.sql.functions import *
----&amp;gt; 2 from mosaic import enable_mosaic
      3 enable_mosaic(spark, dbutils)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/__init__.py:1
----&amp;gt; 1 from .api import *
      2 from .core import MosaicLibraryHandler, MosaicContext
      3 from .utils.display_handler import displayMosaic
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/api/__init__.py:1
----&amp;gt; 1 from .accessors import *
      2 from .aggregators import *
      3 from .constructors import *
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/api/accessors.py:2
      1 from pyspark.sql import Column
----&amp;gt; 2 from pyspark.sql.functions import _to_java_column as pyspark_to_java_column
      4 from mosaic.config import config
      5 from mosaic.utils.types import ColumnOrName&lt;/LI-CODE&gt;&lt;P&gt;The commands I used to import mosaic are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%pip install databricks-mosaic&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;%python
from pyspark.sql.functions import *
from mosaic import enable_mosaic
enable_mosaic(spark, dbutils)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have already verified that I have the dependencies required using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%python pip show databricks-mosaic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which outputs the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name: databricks-mosaic
Version: 0.4.2
Summary: Mosaic: geospatial analytics in python, on Spark
Home-page: https://github.com/databrickslabs/mosaic
Author: Databricks
Author-email: 
License: Databricks License
Location: /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages
Requires: geopandas, h3, ipython, keplergl, pyspark
Required-by: &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My cluster configuration is as follows, with Photon enabled:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;2-5 Workers&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;256-640&amp;nbsp;GB &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Memory&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;64-160&amp;nbsp;Cores&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;1 Driver&lt;/SPAN&gt;&lt;SPAN class=""&gt;128&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GB Memory,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;32&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Cores&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Runtime&lt;/SPAN&gt;&lt;SPAN class=""&gt;14.3.x-scala2.12&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Unity Catalog&lt;/LI&gt;&lt;LI&gt;Photon&lt;/LI&gt;&lt;LI&gt;Standard_D32a_v4&lt;/LI&gt;&lt;LI&gt;36–72&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DBU/h&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I've also tried to restart my cluster to no avail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way I can get mosaic successfully enabled to access the spatial functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 02:07:57 GMT</pubDate>
    <dc:creator>reggie</dc:creator>
    <dc:date>2024-08-28T02:07:57Z</dc:date>
    <item>
      <title>Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85161#M9823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to install mosaic on my cluster, but get the error&amp;nbsp;once I use 'enable_mosaic':&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ImportError: cannot import name '_to_java_column' from 'pyspark.sql.functions' (/databricks/spark/python/pyspark/sql/functions/__init__.py)
File &amp;lt;command-1412689069782833&amp;gt;, line 2
      1 from pyspark.sql.functions import *
----&amp;gt; 2 from mosaic import enable_mosaic
      3 enable_mosaic(spark, dbutils)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/__init__.py:1
----&amp;gt; 1 from .api import *
      2 from .core import MosaicLibraryHandler, MosaicContext
      3 from .utils.display_handler import displayMosaic
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/api/__init__.py:1
----&amp;gt; 1 from .accessors import *
      2 from .aggregators import *
      3 from .constructors import *
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages/mosaic/api/accessors.py:2
      1 from pyspark.sql import Column
----&amp;gt; 2 from pyspark.sql.functions import _to_java_column as pyspark_to_java_column
      4 from mosaic.config import config
      5 from mosaic.utils.types import ColumnOrName&lt;/LI-CODE&gt;&lt;P&gt;The commands I used to import mosaic are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%pip install databricks-mosaic&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;%python
from pyspark.sql.functions import *
from mosaic import enable_mosaic
enable_mosaic(spark, dbutils)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have already verified that I have the dependencies required using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%python pip show databricks-mosaic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which outputs the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name: databricks-mosaic
Version: 0.4.2
Summary: Mosaic: geospatial analytics in python, on Spark
Home-page: https://github.com/databrickslabs/mosaic
Author: Databricks
Author-email: 
License: Databricks License
Location: /local_disk0/.ephemeral_nfs/envs/pythonEnv-d2578267-976a-48ca-ae64-6686226a93e0/lib/python3.10/site-packages
Requires: geopandas, h3, ipython, keplergl, pyspark
Required-by: &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My cluster configuration is as follows, with Photon enabled:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;2-5 Workers&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;256-640&amp;nbsp;GB &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Memory&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;64-160&amp;nbsp;Cores&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;1 Driver&lt;/SPAN&gt;&lt;SPAN class=""&gt;128&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GB Memory,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;32&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Cores&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Runtime&lt;/SPAN&gt;&lt;SPAN class=""&gt;14.3.x-scala2.12&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Unity Catalog&lt;/LI&gt;&lt;LI&gt;Photon&lt;/LI&gt;&lt;LI&gt;Standard_D32a_v4&lt;/LI&gt;&lt;LI&gt;36–72&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DBU/h&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I've also tried to restart my cluster to no avail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way I can get mosaic successfully enabled to access the spatial functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 02:07:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85161#M9823</guid>
      <dc:creator>reggie</dc:creator>
      <dc:date>2024-08-28T02:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85763#M9824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117788"&gt;@reggie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You're using wrong runtime.&amp;nbsp;&lt;SPAN&gt;Mosaic 0.4.x series only supports DBR 13.x DBRs. Look at below documentation and make sure that you meet with all reqeuirements:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://databrickslabs.github.io/mosaic/usage/installation.html" target="_blank"&gt;Installation guide — Mosaic (databrickslabs.github.io)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 10:32:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85763#M9824</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-28T10:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85765#M9825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117788"&gt;@reggie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You're using wrong runtime.&amp;nbsp;&lt;SPAN&gt;Mosaic 0.4.x series only supports DBR 13.x DBRs. Look at below documentation and make sure that you meet all requirements:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://databrickslabs.github.io/mosaic/usage/installation.html" target="_blank"&gt;Installation guide — Mosaic (databrickslabs.github.io)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 10:34:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/85765#M9825</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-28T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/87666#M9826</link>
      <description>&lt;P&gt;Thank you, I thought mosaic requires a DBR at least 13.x since I didn't get a version error, but this fixed my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 00:46:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/87666#M9826</guid>
      <dc:creator>reggie</dc:creator>
      <dc:date>2024-09-03T00:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/110148#M9827</link>
      <description>&lt;P&gt;Thanks, I had the same issue and I was able to fix it&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 20:43:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/110148#M9827</guid>
      <dc:creator>JuanRomero</dc:creator>
      <dc:date>2025-02-13T20:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue enabling mosaic</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/123566#M10272</link>
      <description>&lt;P&gt;Hello all, do we know when databricks-mosaic will get an update support the latest spark/scala runtime?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 00:47:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-enabling-mosaic/m-p/123566#M10272</guid>
      <dc:creator>KyleL</dc:creator>
      <dc:date>2025-07-02T00:47:13Z</dc:date>
    </item>
  </channel>
</rss>

