dataproc-spark-connect 1.0.0rc7__tar.gz → 1.0.2__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-1.0.0rc7 → dataproc_spark_connect-1.0.2}/PKG-INFO +2 -2
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/dataproc_spark_connect.egg-info/PKG-INFO +2 -2
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/dataproc_spark_connect.egg-info/requires.txt +1 -1
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/session.py +20 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/setup.py +2 -2
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/LICENSE +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/README.md +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/dataproc_spark_connect.egg-info/SOURCES.txt +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/dataproc_spark_connect.egg-info/dependency_links.txt +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/dataproc_spark_connect.egg-info/top_level.txt +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/__init__.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/client/__init__.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/client/core.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/client/proxy.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/environment.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/exceptions.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/google/cloud/dataproc_spark_connect/pypi_artifacts.py +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/pyproject.toml +0 -0
- {dataproc_spark_connect-1.0.0rc7 → dataproc_spark_connect-1.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataproc-spark-connect
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Dataproc client library for Spark Connect
|
|
5
5
|
Home-page: https://github.com/GoogleCloudDataproc/dataproc-spark-connect-python
|
|
6
6
|
Author: Google LLC
|
|
@@ -10,7 +10,7 @@ License-File: LICENSE
|
|
|
10
10
|
Requires-Dist: google-api-core>=2.19
|
|
11
11
|
Requires-Dist: google-cloud-dataproc>=5.18
|
|
12
12
|
Requires-Dist: packaging>=20.0
|
|
13
|
-
Requires-Dist: pyspark
|
|
13
|
+
Requires-Dist: pyspark[connect]~=4.0.0
|
|
14
14
|
Requires-Dist: tqdm>=4.67
|
|
15
15
|
Requires-Dist: websockets>=14.0
|
|
16
16
|
Dynamic: author
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataproc-spark-connect
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Dataproc client library for Spark Connect
|
|
5
5
|
Home-page: https://github.com/GoogleCloudDataproc/dataproc-spark-connect-python
|
|
6
6
|
Author: Google LLC
|
|
@@ -10,7 +10,7 @@ License-File: LICENSE
|
|
|
10
10
|
Requires-Dist: google-api-core>=2.19
|
|
11
11
|
Requires-Dist: google-cloud-dataproc>=5.18
|
|
12
12
|
Requires-Dist: packaging>=20.0
|
|
13
|
-
Requires-Dist: pyspark
|
|
13
|
+
Requires-Dist: pyspark[connect]~=4.0.0
|
|
14
14
|
Requires-Dist: tqdm>=4.67
|
|
15
15
|
Requires-Dist: websockets>=14.0
|
|
16
16
|
Dynamic: author
|
|
@@ -39,6 +39,7 @@ from google.api_core.exceptions import (
|
|
|
39
39
|
PermissionDenied,
|
|
40
40
|
)
|
|
41
41
|
from google.api_core.future.polling import POLLING_PREDICATE
|
|
42
|
+
from google.auth.exceptions import DefaultCredentialsError
|
|
42
43
|
from google.cloud.dataproc_spark_connect.client import DataprocChannelBuilder
|
|
43
44
|
from google.cloud.dataproc_spark_connect.exceptions import DataprocSparkConnectException
|
|
44
45
|
from google.cloud.dataproc_spark_connect.pypi_artifacts import PyPiArtifacts
|
|
@@ -456,6 +457,15 @@ class DataprocSparkSession(SparkSession):
|
|
|
456
457
|
raise DataprocSparkConnectException(
|
|
457
458
|
f"Error while creating Dataproc Session: {e.message}"
|
|
458
459
|
)
|
|
460
|
+
except DefaultCredentialsError as e:
|
|
461
|
+
stop_create_session_pbar_event.set()
|
|
462
|
+
if create_session_pbar_thread.is_alive():
|
|
463
|
+
create_session_pbar_thread.join()
|
|
464
|
+
DataprocSparkSession._active_s8s_session_id = None
|
|
465
|
+
DataprocSparkSession._active_session_uses_custom_id = False
|
|
466
|
+
raise DataprocSparkConnectException(
|
|
467
|
+
"Credentials error while creating Dataproc Session (see https://docs.cloud.google.com/docs/authentication/provide-credentials-adc for more info)"
|
|
468
|
+
) from e
|
|
459
469
|
except Exception as e:
|
|
460
470
|
stop_create_session_pbar_event.set()
|
|
461
471
|
if create_session_pbar_thread.is_alive():
|
|
@@ -592,6 +602,16 @@ class DataprocSparkSession(SparkSession):
|
|
|
592
602
|
session = PySparkSQLSession.builder.getOrCreate()
|
|
593
603
|
return session # type: ignore
|
|
594
604
|
|
|
605
|
+
if self._project_id is None:
|
|
606
|
+
raise DataprocSparkConnectException(
|
|
607
|
+
f"Error while creating Dataproc Session: project ID is not set"
|
|
608
|
+
)
|
|
609
|
+
|
|
610
|
+
if self._region is None:
|
|
611
|
+
raise DataprocSparkConnectException(
|
|
612
|
+
f"Error while creating Dataproc Session: location is not set"
|
|
613
|
+
)
|
|
614
|
+
|
|
595
615
|
# Handle custom session ID by setting it early and letting existing logic handle it
|
|
596
616
|
if self._custom_session_id:
|
|
597
617
|
self._handle_custom_session_id()
|
|
@@ -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="1.0.
|
|
23
|
+
version="1.0.2",
|
|
24
24
|
description="Dataproc client library for Spark Connect",
|
|
25
25
|
long_description=long_description,
|
|
26
26
|
author="Google LLC",
|
|
@@ -31,7 +31,7 @@ setup(
|
|
|
31
31
|
"google-api-core>=2.19",
|
|
32
32
|
"google-cloud-dataproc>=5.18",
|
|
33
33
|
"packaging>=20.0",
|
|
34
|
-
"pyspark
|
|
34
|
+
"pyspark[connect]~=4.0.0",
|
|
35
35
|
"tqdm>=4.67",
|
|
36
36
|
"websockets>=14.0",
|
|
37
37
|
],
|
|
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
|