dataproc-spark-connect 0.7.1__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/PKG-INFO +1 -1
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/dataproc_spark_connect.egg-info/PKG-INFO +1 -1
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/session.py +9 -7
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/setup.py +1 -1
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/LICENSE +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/README.md +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/dataproc_spark_connect.egg-info/SOURCES.txt +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/dataproc_spark_connect.egg-info/dependency_links.txt +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/dataproc_spark_connect.egg-info/requires.txt +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/dataproc_spark_connect.egg-info/top_level.txt +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/__init__.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/client/__init__.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/client/core.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/client/proxy.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/exceptions.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/google/cloud/dataproc_spark_connect/pypi_artifacts.py +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/pyproject.toml +0 -0
- {dataproc_spark_connect-0.7.1 → dataproc_spark_connect-0.7.3}/setup.cfg +0 -0
|
@@ -67,7 +67,7 @@ class DataprocSparkSession(SparkSession):
|
|
|
67
67
|
... ) # doctest: +SKIP
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
|
-
_DEFAULT_RUNTIME_VERSION = "2.
|
|
70
|
+
_DEFAULT_RUNTIME_VERSION = "2.3"
|
|
71
71
|
|
|
72
72
|
_active_s8s_session_uuid: ClassVar[Optional[str]] = None
|
|
73
73
|
_project_id = None
|
|
@@ -198,7 +198,7 @@ class DataprocSparkSession(SparkSession):
|
|
|
198
198
|
DataprocSparkSession._active_s8s_session_id = session_id
|
|
199
199
|
s8s_creation_start_time = time.time()
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
stop_create_session_pbar_event = threading.Event()
|
|
202
202
|
|
|
203
203
|
def create_session_pbar():
|
|
204
204
|
iterations = 150
|
|
@@ -208,12 +208,12 @@ class DataprocSparkSession(SparkSession):
|
|
|
208
208
|
ncols=80,
|
|
209
209
|
)
|
|
210
210
|
for i in pbar:
|
|
211
|
-
if
|
|
211
|
+
if stop_create_session_pbar_event.is_set():
|
|
212
212
|
break
|
|
213
213
|
# Last iteration
|
|
214
214
|
if i >= iterations - 1:
|
|
215
215
|
# Sleep until session created
|
|
216
|
-
while not
|
|
216
|
+
while not stop_create_session_pbar_event.is_set():
|
|
217
217
|
time.sleep(1)
|
|
218
218
|
else:
|
|
219
219
|
time.sleep(1)
|
|
@@ -258,7 +258,7 @@ class DataprocSparkSession(SparkSession):
|
|
|
258
258
|
timeout=600, # seconds
|
|
259
259
|
)
|
|
260
260
|
)
|
|
261
|
-
|
|
261
|
+
stop_create_session_pbar_event.set()
|
|
262
262
|
create_session_pbar_thread.join()
|
|
263
263
|
print("Dataproc Session was successfully created")
|
|
264
264
|
file_path = (
|
|
@@ -280,7 +280,7 @@ class DataprocSparkSession(SparkSession):
|
|
|
280
280
|
f"Exception while writing active session to file {file_path}, {e}"
|
|
281
281
|
)
|
|
282
282
|
except (InvalidArgument, PermissionDenied) as e:
|
|
283
|
-
|
|
283
|
+
stop_create_session_pbar_event.set()
|
|
284
284
|
if create_session_pbar_thread.is_alive():
|
|
285
285
|
create_session_pbar_thread.join()
|
|
286
286
|
DataprocSparkSession._active_s8s_session_id = None
|
|
@@ -288,13 +288,15 @@ class DataprocSparkSession(SparkSession):
|
|
|
288
288
|
f"Error while creating Dataproc Session: {e.message}"
|
|
289
289
|
)
|
|
290
290
|
except Exception as e:
|
|
291
|
-
|
|
291
|
+
stop_create_session_pbar_event.set()
|
|
292
292
|
if create_session_pbar_thread.is_alive():
|
|
293
293
|
create_session_pbar_thread.join()
|
|
294
294
|
DataprocSparkSession._active_s8s_session_id = None
|
|
295
295
|
raise RuntimeError(
|
|
296
296
|
f"Error while creating Dataproc Session"
|
|
297
297
|
) from e
|
|
298
|
+
finally:
|
|
299
|
+
stop_create_session_pbar_event.set()
|
|
298
300
|
|
|
299
301
|
logger.debug(
|
|
300
302
|
f"Dataproc Session created: {session_id} in {int(time.time() - s8s_creation_start_time)} seconds"
|
|
@@ -20,7 +20,7 @@ long_description = (this_directory / "README.md").read_text()
|
|
|
20
20
|
|
|
21
21
|
setup(
|
|
22
22
|
name="dataproc-spark-connect",
|
|
23
|
-
version="0.7.
|
|
23
|
+
version="0.7.3",
|
|
24
24
|
description="Dataproc client library for Spark Connect",
|
|
25
25
|
long_description=long_description,
|
|
26
26
|
author="Google LLC",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|