<?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: Problem with Review App in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126146#M1051</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great! Thanks for the info. I’ll give it a shot with Statement Execution API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should unblock. Thanks again!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2025 10:52:07 GMT</pubDate>
    <dc:creator>vishxlrxghxv</dc:creator>
    <dc:date>2025-07-23T10:52:07Z</dc:date>
    <item>
      <title>Problem with Review App</title>
      <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126136#M1047</link>
      <description>&lt;P&gt;I’m trying to deploy a Databricks Review App, but I’m running into the following error.&lt;BR /&gt;Interestingly, the same code works fine when executed from a Databricks Notebook.&lt;BR /&gt;Does anyone know what might be going wrong here? Could this be a bug with the Review App?&lt;/P&gt;&lt;P&gt;PySparkRuntimeError: [JAVA_GATEWAY_EXITED] Java gateway process exited before sending its port number.&lt;/P&gt;&lt;P&gt;Traceback:&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling&lt;BR /&gt;result = func()&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec&lt;BR /&gt;exec(code, module.__dict__)&lt;BR /&gt;File "/app/python/source_code/app.py", line 18, in &amp;lt;module&amp;gt;&lt;BR /&gt;from raw_to_bronze_creation import r2b_main&lt;BR /&gt;File "/app/python/source_code/raw_to_bronze_creation.py", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;spark = SparkSession.builder.appName("Check Database Existence").enableHiveSupport().getOrCreate()&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/pyspark/sql/session.py", line 497, in getOrCreate&lt;BR /&gt;sc = SparkContext.getOrCreate(sparkConf)&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/pyspark/context.py", line 515, in getOrCreate&lt;BR /&gt;SparkContext(conf=conf or SparkConf())&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/pyspark/context.py", line 201, in __init__&lt;BR /&gt;SparkContext._ensure_initialized(self, gateway=gateway, conf=conf)&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/pyspark/context.py", line 436, in _ensure_initialized&lt;BR /&gt;SparkContext._gateway = gateway or launch_gateway(conf)&lt;BR /&gt;File "/app/python/source_code/.venv/lib/python3.11/site-packages/pyspark/java_gateway.py", line 107, in launch_gateway&lt;BR /&gt;raise PySparkRuntimeError(&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:53:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126136#M1047</guid>
      <dc:creator>vishxlrxghxv</dc:creator>
      <dc:date>2025-07-23T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Review App</title>
      <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126137#M1048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_7" href="https://community.databricks.com/t5/user/viewprofilepage/user-id/176251" target="_self" aria-label="View Profile of vishxlrxghxv"&gt;vishxlrxghxv&lt;/A&gt;,&lt;BR /&gt;By any chance, did you&amp;nbsp;&lt;SPAN&gt;attempt to create a&amp;nbsp;SparkSession?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 09:57:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126137#M1048</guid>
      <dc:creator>Amruth_Ashok</dc:creator>
      <dc:date>2025-07-23T09:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Review App</title>
      <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126138#M1049</link>
      <description>&lt;P&gt;Thank you for such a quick response. Yes, I have this in my code:&lt;/P&gt;&lt;P&gt;spark = SparkSession.builder.appName(“SelServeBot-POC”).getOrCreate()&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:03:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126138#M1049</guid>
      <dc:creator>vishxlrxghxv</dc:creator>
      <dc:date>2025-07-23T10:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Review App</title>
      <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126143#M1050</link>
      <description>&lt;P&gt;I recently wrote a&amp;nbsp;&lt;A href="https://kb.databricks.com/machine-learning/streamlit-app-deployed-as-databricks-app-failing-with-java_gateway_exited-error" target="_blank"&gt;KB article&amp;nbsp;&lt;/A&gt;on this. Let me know if this helps!&lt;BR /&gt;&lt;BR /&gt;TLDR:&amp;nbsp;Databricks Apps are lightweight, container-based runtimes designed for UI rendering and light orchestration. They do not ship with an Apache Spark driver, executor, or JVM.&lt;/P&gt;
&lt;P&gt;Any call that instantiates a SparkSession (or lower-level SparkContext) tries to start the Java gateway and fails, producing the&amp;nbsp;&lt;CODE&gt;[JAVA_GATEWAY_EXITED]&lt;/CODE&gt;&amp;nbsp;error.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Databricks Apps should delegate compute to an existing Databricks cluster or to Databricks SQL instead of attempting to create Spark locally.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:24:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126143#M1050</guid>
      <dc:creator>Amruth_Ashok</dc:creator>
      <dc:date>2025-07-23T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Review App</title>
      <link>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126146#M1051</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great! Thanks for the info. I’ll give it a shot with Statement Execution API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should unblock. Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 10:52:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/problem-with-review-app/m-p/126146#M1051</guid>
      <dc:creator>vishxlrxghxv</dc:creator>
      <dc:date>2025-07-23T10:52:07Z</dc:date>
    </item>
  </channel>
</rss>

