我試圖連接到一個集群通過databricks-connect版本與13.0運行時,統一編目13.0.0 (Python)。似乎引發會話初始化正確但每當我嚐試使用它,我得到以下錯誤:
{SparkConnectGrpcException} < _MultiThreadedRendezvous終止的RPC: = StatusCode地位。INVALID_ARGUMENT細節= "失蹤必需字段UserContext請求。”debug_error_string =“無名:錯誤收到對等{created_time:“2023 - 04 - 27 t09:32:18.370432594 + 00:00”, grpc_status: 3, grpc_message:“失蹤必需字段\“UserContext \”請求。“}”
我試著通過配置概要文件啟動會話,通過SPARK_REMOTE環境變量和簡單的代碼,但所有這些選項返回相同的結果。
任何想法都是讚賞
你好@Achilleas Voutsas @Einav比撒列,我設法運行它通過設置一個環境變量稱為用戶在開始DatabricksSession之前的任何值。也就是說,在python中:
操作係統。環境(“用戶”)= "任何" config =配置(profile =“默認”)火花= DatabricksSession.builder.sdkConfig(配置).getOrCreate ()
10我也經曆同樣的問題與Windows筆記本電腦,運行python 3.10.10。看到的細節和代碼設置和Windows版本。
Python版本
Python 3.10.10(標簽/ v3.10.10: aad5f6a, 2023年2月7日,17:20:36)(MSC v。在win32 1929 64位(AMD64)]
Python庫
asttokens = = 2.2.1
backcall = = 0.2.0
certifi = = 2022.12.7
charset-normalizer = = 3.1.0
單擊= = 8.1.3
彩色光= = 0.4.6
通訊= = 0.1.3
databricks-cli = = 0.17.6
databricks-connect = = 13.0.0
databricks-sdk = = 0.0.7
debugpy = = 1.6.7
修飾符= = 5.1.1
執行= = 1.2.0
googleapis-common-protos = = 1.59.0
grpcio = = 1.54.0
grpcio-status = = 1.54.0
idna = = 3.4
ipykernel = = 6.22.0
ipython = = 8.13.1
絕地= = 0.18.2
jupyter_client = = 8.2.0
jupyter_core = = 5.3.0
matplotlib-inline = = 0.1.6
nest-asyncio = = 1.5.6
numpy = = 1.24.3
oauthlib = = 3.2.2
包裝= = 23.1
熊貓= = 2.0.1
parso = = 0.8.3
pickleshare = = 0.7.5
Beplay体育安卓版本platformdirs = = 3.5.0
prompt-toolkit = = 3.0.38
protobuf = = 4.22.3
psutil = = 5.9.5
pure-eval = = 0.2.2
py4j = = 0.10.9.7
pyarrow = = 11.0.0
Pygments = = 2.15.1
PyJWT = = 2.6.0
python-dateutil = = 2.8.2
pytz = = 2023.3
pywin32 = = 306
pyzmq = = 25.0.2
請求= = 2.29.0
6 = = 1.16.0
堆棧數據= = 0.6.2
彙總= = 0.9.0
龍卷風= = 6.3.1
traitlets = = 5.9.0
tzdata = = 2023.3
urllib3 = = 1.26.15
wcwidth = = 0.2.6雖然隻是