I've gone through the documentation for configuring databricks-connect but still get the error below when running databricks-connect test
Errors From Terminal
java.lang.NoSuchMethodError: org.apache.spark.internal.config.package$.STRING_REDACTION_PATTERN()Lorg/apache/spark/internal/config/ConfigEntry;
error: not found: value spark import spark.implicits._
error: not found: value spark import spark.sql
error: not found: value spark spark.range(100).reduce(_ + _)
Scala command failed to produce correct result
Steps Used to Setup Databricks Connect
spark.databricks.service.server.enabled true (Restarted)2.7.15pip uninstall pysparkpip install -U databricks-connect==5.3.*databricks-connect configure
https://<account>.cloud.databricks.com<secret_token><cluster_token><left_blank>15001What is causing this error and is there a possible fix?
Used Resources
After further investigation, I found another StackOverflow post that discusses how the Java error hints to a version mismatch. I downgraded my Databricks cluster runtime to 5.1 and updated databricks-connect by running:
pip install -U databricks-connect==5.1.*
To validate, I ran:
databricks-connect test
Important items to remember:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With