cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks-connect configured with service principal token but unable to retrieve information to local machine

Anonymous
Not applicable

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?

1 REPLY 1

Anonymous
Not applicable

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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group