<?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-connect version 13.0.0 throws Exception with details = &amp;quot;Missing required field 'UserContext' in the request.&amp;quot; in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5145#M74</link>
    <description>&lt;P&gt;also, i've checked the rest of the requirements and they are all met as far as I see&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 13:02:16 GMT</pubDate>
    <dc:creator>carlafernandez</dc:creator>
    <dc:date>2023-04-27T13:02:16Z</dc:date>
    <item>
      <title>Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5142#M71</link>
      <description>&lt;P&gt;I'm trying to connect to a cluster with Runtime 13.0 and Unity Catalog through databricks-connect version 13.0.0 (for Python). The spark session seems to initialize correctly but anytime I try to use it, I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{SparkConnectGrpcException}&amp;lt;_MultiThreadedRendezvous of RPC that terminated with:
	status = StatusCode.INVALID_ARGUMENT
	details = "Missing required field 'UserContext' in the request."
	debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2023-04-27T09:32:18.370432594+00:00", grpc_status:3, grpc_message:"Missing required field \'UserContext\' in the request."}"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've tried starting the session through a configuration profile, through the SPARK_REMOTE environment variable and through plain code, but all these options return the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 09:40:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5142#M71</guid>
      <dc:creator>carlafernandez</dc:creator>
      <dc:date>2023-04-27T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5143#M72</link>
      <description>&lt;P&gt;@Carla F​&amp;nbsp;what's your python version, did you get a chance to see if any pre-requisites missing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The minor version of your client Python installation must be the same as the minor Python version of your Databricks cluster. Databricks Runtime 13.0 ML and Databricks Runtime 13.0 both use Python &lt;B&gt;3.10&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also please check all requirements met &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/databricks-connect.html" target="test_blank"&gt;https://docs.databricks.com/dev-tools/databricks-connect.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:55:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5143#M72</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-04-27T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5144#M73</link>
      <description>&lt;P&gt;Hi, thanks for the response. I'm using python version 3.10 and runtime 13.0, so that should not be the issue&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:55:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5144#M73</guid>
      <dc:creator>carlafernandez</dc:creator>
      <dc:date>2023-04-27T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5145#M74</link>
      <description>&lt;P&gt;also, i've checked the rest of the requirements and they are all met as far as I see&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:02:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5145#M74</guid>
      <dc:creator>carlafernandez</dc:creator>
      <dc:date>2023-04-27T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5146#M75</link>
      <description>&lt;P&gt;I also experience the same issue with a Windows 10 laptop, running python 3.10.10. See details of the VS Code setup and Windows vesion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/273iCC7D5B5D3EF09C77/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;Python version&lt;/P&gt;&lt;P&gt;Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb&amp;nbsp;7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32&lt;/P&gt;&lt;P&gt;Python libraries&lt;/P&gt;&lt;P&gt;asttokens==2.2.1&lt;/P&gt;&lt;P&gt;backcall==0.2.0&lt;/P&gt;&lt;P&gt;certifi==2022.12.7&lt;/P&gt;&lt;P&gt;charset-normalizer==3.1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;click==8.1.3&lt;/P&gt;&lt;P&gt;colorama==0.4.6&lt;/P&gt;&lt;P&gt;comm==0.1.3&lt;/P&gt;&lt;P&gt;databricks-cli==0.17.6&lt;/P&gt;&lt;P&gt;databricks-connect==13.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;databricks-sdk==0.0.7&lt;/P&gt;&lt;P&gt;debugpy==1.6.7&lt;/P&gt;&lt;P&gt;decorator==5.1.1&lt;/P&gt;&lt;P&gt;executing==1.2.0&lt;/P&gt;&lt;P&gt;googleapis-common-protos==1.59.0&lt;/P&gt;&lt;P&gt;grpcio==1.54.0&lt;/P&gt;&lt;P&gt;grpcio-status==1.54.0&lt;/P&gt;&lt;P&gt;idna==3.4&lt;/P&gt;&lt;P&gt;ipykernel==6.22.0&lt;/P&gt;&lt;P&gt;ipython==8.13.1&lt;/P&gt;&lt;P&gt;jedi==0.18.2&lt;/P&gt;&lt;P&gt;jupyter_client==8.2.0&lt;/P&gt;&lt;P&gt;jupyter_core==5.3.0&lt;/P&gt;&lt;P&gt;matplotlib-inline==0.1.6&lt;/P&gt;&lt;P&gt;nest-asyncio==1.5.6&lt;/P&gt;&lt;P&gt;numpy==1.24.3&lt;/P&gt;&lt;P&gt;oauthlib==3.2.2&lt;/P&gt;&lt;P&gt;packaging==23.1&lt;/P&gt;&lt;P&gt;pandas==2.0.1&lt;/P&gt;&lt;P&gt;parso==0.8.3&lt;/P&gt;&lt;P&gt;pickleshare==0.7.5&lt;/P&gt;&lt;P&gt;platformdirs==3.5.0&lt;/P&gt;&lt;P&gt;prompt-toolkit==3.0.38&lt;/P&gt;&lt;P&gt;protobuf==4.22.3&lt;/P&gt;&lt;P&gt;psutil==5.9.5&lt;/P&gt;&lt;P&gt;pure-eval==0.2.2&lt;/P&gt;&lt;P&gt;py4j==0.10.9.7&lt;/P&gt;&lt;P&gt;pyarrow==11.0.0&lt;/P&gt;&lt;P&gt;Pygments==2.15.1&lt;/P&gt;&lt;P&gt;PyJWT==2.6.0&lt;/P&gt;&lt;P&gt;python-dateutil==2.8.2&lt;/P&gt;&lt;P&gt;pytz==2023.3&lt;/P&gt;&lt;P&gt;pywin32==306&lt;/P&gt;&lt;P&gt;pyzmq==25.0.2&lt;/P&gt;&lt;P&gt;requests==2.29.0&lt;/P&gt;&lt;P&gt;six==1.16.0&lt;/P&gt;&lt;P&gt;stack-data==0.6.2&lt;/P&gt;&lt;P&gt;tabulate==0.9.0&lt;/P&gt;&lt;P&gt;tornado==6.3.1&lt;/P&gt;&lt;P&gt;traitlets==5.9.0&lt;/P&gt;&lt;P&gt;tzdata==2023.3&lt;/P&gt;&lt;P&gt;urllib3==1.26.15&lt;/P&gt;&lt;P&gt;wcwidth==0.2.6&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 10:33:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5146#M75</guid>
      <dc:creator>Achilleas</dc:creator>
      <dc:date>2023-04-30T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5147#M76</link>
      <description>&lt;P&gt;Same issue for me. &amp;nbsp;Databricks Runtime 13.0 , python 3.10.11, single user Access mode&lt;/P&gt;&lt;P&gt;for the cluster, and unity catalog is enabled for the workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 14:45:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5147#M76</guid>
      <dc:creator>EinavBezalel</dc:creator>
      <dc:date>2023-04-30T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5148#M77</link>
      <description>&lt;P&gt;Hello @Achilleas Voutsas​&amp;nbsp;@Einav Bezalel​&amp;nbsp;, I managed to run it by setting an environmental variable called USER to any value before starting the DatabricksSession. That is, in python:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;os.environ["USER"] = "anything"
config = Config(profile="DEFAULT")
spark = DatabricksSession.builder.sdkConfig(config).getOrCreate()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 05:44:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5148#M77</guid>
      <dc:creator>carlafernandez</dc:creator>
      <dc:date>2023-05-03T05:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5149#M78</link>
      <description>&lt;P&gt;I guess there is a bug in the Windows version.. in macOS I do not have this issue. &lt;/P&gt;&lt;P&gt;Many thanks @Carla F​&amp;nbsp;!!!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 11:03:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5149#M78</guid>
      <dc:creator>Achilleas</dc:creator>
      <dc:date>2023-05-03T11:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5150#M79</link>
      <description>&lt;P&gt;Hi all, I had the same issue (on Windows) and managed to get it working by specifying a user id in the spark remote. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's the hard-coded way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from databricks.connect import DatabricksSession&amp;nbsp;
&amp;nbsp;
spark = DatabricksSession.builder.remote( "sc://&amp;lt;workspace-instance-name&amp;gt;:443/;token=&amp;lt;access-token-value&amp;gt;;x-databricks-cluster-id=&amp;lt;cluster-id&amp;gt;;user_id=123123" ).getOrCreate()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or with an environment variable:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;set SPARK_REMOTE=sc://&amp;lt;databricks_workspace_name&amp;gt;:443;token=&amp;lt;token&amp;gt;;x-databricks-cluster-id=&amp;lt;cluster-id&amp;gt;;user_id=123123&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or similar in python. The actual value (123123) of the user_id can be whatever. &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 11:28:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5150#M79</guid>
      <dc:creator>MHeemskerk</dc:creator>
      <dc:date>2023-05-03T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field 'UserContext' in the request."</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5151#M80</link>
      <description>&lt;P&gt;Thanks @Martin Heemskerk​&amp;nbsp;, I think both our options take the same effect. It's a thing in the spark connect session, but it "should" be optional.&lt;/P&gt;&lt;P&gt;Taken from &lt;A href="https://github.com/apache/spark/blob/87a5442f7ed96b11051d8a9333476d080054e5a0/python/pyspark/sql/connect/session.py#L132:" target="test_blank"&gt;https://github.com/apache/spark/blob/87a5442f7ed96b11051d8a9333476d080054e5a0/python/pyspark/sql/connect/session.py#L132:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/266iA049D31028C6F239/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/282iED1DD4CDF0AF680D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;Let's hope they fix it or at least document it&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 11:36:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/5151#M80</guid>
      <dc:creator>carlafernandez</dc:creator>
      <dc:date>2023-05-03T11:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks-connect version 13.0.0 throws Exception with details = "Missing required field '</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/45856#M1263</link>
      <description>&lt;P&gt;I have the same error up to DBR 13.3 LTS. When I upgraded it to 14.0, I was then able to connect with my databricks compute from my local environment.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 15:43:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-connect-version-13-0-0-throws-exception-with-details/m-p/45856#M1263</guid>
      <dc:creator>redperiabras</dc:creator>
      <dc:date>2023-09-23T15:43:45Z</dc:date>
    </item>
  </channel>
</rss>

