I am trying to read data from Google Cloud Spanner using PySpark JDBC connection. My Spark application is running on a Dataproc cluster. I am using the official Google Cloud Spanner JDBC driver as found here. Below is a snippet of the PySpark code:
project = <<PROJECT_ID>>
instance = <<INSTANCE_ID>>
databases = <<DATABASE_ID>>
spanner_connection_url = 'jdbc:cloudspanner:/projects/' + project + '/instances/' + instance + '/databases/' + databases
df = spark.read \
.format("jdbc") \
.option("url", spanner_connection_url) \
.option("driver", "com.google.cloud.spanner.jdbc.JdbcDriver") \
.option("dbtable", "test_employee") \
.load()
However, my Spark job fails with below error:

This is usually the standard way of setting up JDBC connection from Spark, or for Spanner is there something that needs to be done differently.