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: 

How to resolve "java.lang.ClassNotFoundException: com.databricks.spark.util.RegexBasedAWSSecretKeyRedactor" when running Scala Spark project using databricks-connect ?

Databach
New Contributor

Currently I am learning how to use databricks-connect to develop Scala code using IDE (VS Code) locally. The set-up of the databricks-connect as described here https://docs.microsoft.com/en-us/azure/databricks/dev-tools/databricks-connect was succuesful. I can compile PySpark scripts with no problem. However, I struggle to run the scala example as provided in the Scala demo object. I receive the java.lang.ClassNotFoundException:

imageMy build.sbt follows the suggested pattern:

build.sbtDo you have any suggestion on what I am missing ? The error occurs when building the SparkSession.

val spark = SparkSession.builder.master("local").getOrCreate()

A 'hello world' prints succesfully.

Note: I am using Databricks on Azure

0 REPLIES 0
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!