Databricks-connect configured with service principal token but unable to retrieve information to local machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 03:49 PM
installed databricks-connect and configured with service principal token, able to start cluster when I use command spark=SparkSession\.builder\.getOrCreate() But when trying to retrieve s3 bucket data to local machine or even i run test command example print(spark.range(100).count())
receiving error message as "invalid token"
py4j.protocol.Py4JJavaError: An error occurred while calling o22.range.
: com.databricks.service.SparkServiceConnectionException: Invalid token
Databricks-connect version is 10.4.18
python -3.8.10
java - openjdk version "1.8.0_352"
it was working fine weeks ago but now it's not working. Double checked token is correct and not expired. Anyone, Please guide me with this?
- Labels:
-
Databricks-connect
-
Local Machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 10:09 PM
Hi @divya08
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!