<?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: databricks-connector: Error: Cluster MASKED is in unexpected state Pending. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37118#M26263</link>
    <description>&lt;P&gt;Yes I am using 13.1.0 and the python minor version of cluster and environment are both 3.10.&amp;nbsp; Sorry I should have put that in the question.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 21:32:31 GMT</pubDate>
    <dc:creator>AFox</dc:creator>
    <dc:date>2023-07-06T21:32:31Z</dc:date>
    <item>
      <title>databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37114#M26259</link>
      <description>&lt;P&gt;Is there a way to make databricks-connector wait for cluster to be running?&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;databricks-connector==13.1.0 and the python minor version of cluster and environment are both 3.10&lt;/P&gt;&lt;P&gt;If the cluster is not running this will start it, but any commands after fail because it does not wait for the cluster to be ready:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.connect import DatabricksSession
from databricks.sdk.core import Config
# get spark session using Databricks SDK's Config class:
config = Config(
host=os.environ.get("DATABRICKS_HOST"),
token=os.environ.get("DATABRICKS_TOKEN"),
cluster_id=os.environ.get("DATABRICKS_CLUSTER_ID"),
)
spark = DatabricksSession.builder.sdkConfig(config).getOrCreate()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any commands using `spark` after, fail like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;pyspark.errors.exceptions.connect.SparkConnectGrpcException: &amp;lt;_MultiThreadedRendezvous of RPC that terminated with:
	status = StatusCode.FAILED_PRECONDITION
	details = "INVALID_STATE: Cluster [MASKED] is in unexpected state Pending."
	debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2023-07-06T18:57:01.084365359+00:00", grpc_status:9, grpc_message:"INVALID_STATE: Cluster [MASKED] is in unexpected state Pending."}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Cluster is already running everything works as expected.&lt;/P&gt;&lt;P&gt;I am trying to set up a test CI Job so this is kind of a pain because I have to either manually make sure the cluster is running or restart the job once it is.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 21:44:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37114#M26259</guid>
      <dc:creator>AFox</dc:creator>
      <dc:date>2023-07-06T21:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37116#M26261</link>
      <description>&lt;P&gt;Are you using db-connect 13?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/get-started-discussions/databricks-connect-13-1-0-limitations/td-p/37096" target="_blank"&gt;databricks-connect 13.1.0 limitations - Databricks - 37096&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 21:10:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37116#M26261</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2023-07-06T21:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37117#M26262</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you want to use PySpark UDFs, it’s important that your development machine’s installed minor version of Python match the minor version of Python that is included with Databricks Runtime installed on the cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer to the document and check if your setup meets the required configuration.&amp;nbsp;&lt;A href="https://docs.databricks.com/dev-tools/databricks-connect.html#requirements" target="_blank"&gt;Databricks Connect | Databricks on AWS&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Databricks Runtime 13.0 and higher, Databricks Connect is now built on open-source Spark Connect.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 21:15:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37117#M26262</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2023-07-06T21:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37118#M26263</link>
      <description>&lt;P&gt;Yes I am using 13.1.0 and the python minor version of cluster and environment are both 3.10.&amp;nbsp; Sorry I should have put that in the question.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 21:32:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37118#M26263</guid>
      <dc:creator>AFox</dc:creator>
      <dc:date>2023-07-06T21:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37469#M26366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/29741"&gt;@AFox&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 09:41:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37469#M26366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-12T09:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37517#M26379</link>
      <description>&lt;P&gt;The question has not been answered. databricks-connect does not wait for the selected cluster to start. This needs to be an option or the tool is not nearly as useful.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 16:22:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/37517#M26379</guid>
      <dc:creator>AFox</dc:creator>
      <dc:date>2023-07-12T16:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: databricks-connector: Error: Cluster MASKED is in unexpected state Pending.</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/53392#M29788</link>
      <description>&lt;P&gt;FYI for anyone that finds this:&amp;nbsp; This seems to be resolved in&amp;nbsp;&lt;SPAN&gt;databricks-connector 14+&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:28:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-connector-error-cluster-masked-is-in-unexpected-state/m-p/53392#M29788</guid>
      <dc:creator>AFox</dc:creator>
      <dc:date>2023-11-21T19:28:48Z</dc:date>
    </item>
  </channel>
</rss>

