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
- Created a cluster on Databricks with Runtime of 5.3 and Python 2
- Set Spark Config to
spark.databricks.service.server.enabled true(Restarted) - Created Python project using Pyenv and Python
2.7.15 - Removed pyspark
pip uninstall pyspark - Installed Databricks Connect
pip install -U databricks-connect==5.3.* - Configured databricks connect
databricks-connect configure- Databricks Host:
https://<account>.cloud.databricks.com - Databricks Token:
<secret_token> - Cluster ID:
<cluster_token> - Org ID:
<left_blank> - Port:
15001
- Databricks Host:
What is causing this error and is there a possible fix?
Used Resources