<?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 How to use GLOW in Databricks Premium on AWS? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-use-glow-in-databricks-premium-on-aws/m-p/110073#M43480</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Have connected workspace to AWS, but when I execute in a new notebook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%python
%pip install glow.py

import glow
from pyspark.sql import SparkSession

# Create a Spark session
spark = (SparkSession.builder
         .appName("Genomics Analysis")
         .getOrCreate())

# Register Glow with the Spark session
glow.register(spark)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TypeCheckError: argument "session" (pyspark.sql.connect.session.SparkSession) is not an instance of pyspark.sql.session.SparkSession
File &amp;lt;command-7248535564102662&amp;gt;, line 10
      5 spark = SparkSession.builder \
      6     .appName("Genomics Analysis") \
      7     .getOrCreate()
      9 # Register Glow with the Spark session
---&amp;gt; 10 glow.register(spark)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how this is supposed to work? AI and googling did not help...&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 05:25:55 GMT</pubDate>
    <dc:creator>kasuskasus1</dc:creator>
    <dc:date>2025-02-13T05:25:55Z</dc:date>
    <item>
      <title>How to use GLOW in Databricks Premium on AWS?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-glow-in-databricks-premium-on-aws/m-p/110073#M43480</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Have connected workspace to AWS, but when I execute in a new notebook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%python
%pip install glow.py

import glow
from pyspark.sql import SparkSession

# Create a Spark session
spark = (SparkSession.builder
         .appName("Genomics Analysis")
         .getOrCreate())

# Register Glow with the Spark session
glow.register(spark)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TypeCheckError: argument "session" (pyspark.sql.connect.session.SparkSession) is not an instance of pyspark.sql.session.SparkSession
File &amp;lt;command-7248535564102662&amp;gt;, line 10
      5 spark = SparkSession.builder \
      6     .appName("Genomics Analysis") \
      7     .getOrCreate()
      9 # Register Glow with the Spark session
---&amp;gt; 10 glow.register(spark)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how this is supposed to work? AI and googling did not help...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 05:25:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-glow-in-databricks-premium-on-aws/m-p/110073#M43480</guid>
      <dc:creator>kasuskasus1</dc:creator>
      <dc:date>2025-02-13T05:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GLOW in Databricks Premium on AWS?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-glow-in-databricks-premium-on-aws/m-p/110431#M43571</link>
      <description>&lt;P&gt;Solved this with the help of colleagues at last. First of all, it won't work with &lt;EM&gt;Serverless&lt;/EM&gt; mode, so a cluster is required. Once the cluster is created in &lt;EM&gt;Compute&lt;/EM&gt; section, on &lt;EM&gt;Library&lt;/EM&gt; tab add those 2 libraries:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-18 at 12.13.41.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14910i92414987792275ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-18 at 12.13.41.png" alt="Screenshot 2025-02-18 at 12.13.41.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then running:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import glow
from pyspark.sql.session import SparkSession

glow.register(spark)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;works just fine!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Feb 2025 23:17:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-glow-in-databricks-premium-on-aws/m-p/110431#M43571</guid>
      <dc:creator>kasuskasus1</dc:creator>
      <dc:date>2025-02-17T23:17:27Z</dc:date>
    </item>
  </channel>
</rss>

