Troubleshooting Databricks Connect for Scala
Note
This article covers Databricks Connect for Databricks Runtime 13.3 LTS and above.
This article provides troubleshooting information for Databricks Connect for Scala. Databricks Connect enables you to connect popular IDEs, notebook servers, and custom applications to Databricks clusters. See What is Databricks Connect?. For the Python version of this article, see Troubleshooting Databricks Connect for Python.
The filename, directory name, or volume label syntax is incorrect on Windows
Issue: You are using Databricks Connect on Windows and see:
The filename, directory name, or volume label syntax is incorrect.
Cause: Databricks Connect was installed into a directory with a space in your path.
Solution: You can work around this by either installing into a directory path without spaces, or configuring your path using the short name form.
Error: Failed to initialize MemoryUtil
Issue: When you try to build a DatabricksSession
, it returns an error Failed to initialize MemoryUtil
.
Cause: Apache Arrow is a dependency of the Databricks Connect client, and it is trying to access a private Java method using reflection, which is by default blocked in Java 17 because of security considerations.
Solution:
Set the following JVM field prior to JVM initialization:
--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED
For more information, see Apache Arrow Java Compatibility.
Tip
To set Java options in IntelliJ, see IntelliJ Run/debug configuration.