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: 

Errors when querying Azure DataBricks through DBeaver on macos

GeorgeP
New Contributor II

Configured DBeaver to work with either databricks latest driver or simba. I can connect and see databases, schemas, tables and columns. However, when a select statement is executed 30-40 seconds go by before I get the following error message:

SQL Error [500540] [HY000]: [Databricks][DatabricksJDBCDriver](500540) Error caught in BackgroundFetcher. Foreground thread ID: 44. Background thread ID: 51. Error caught: sun.misc.Unsafe or java.nio.DirectByteBuffer.<init>(long, int) not available.

Any ideas ? Was this behavior encountered by others?

2 REPLIES 2

User16764241763
Honored Contributor

Hello @George Petrou​ 

Could you please try setting the below Spark configuration on the cluster?

spark.driver.extraJavaOptions -Dio.netty.tryReflectionSetAccessible=true

spark.executor.extraJavaOptions -Dio.netty.tryReflectionSetAccessible=true

sage5616
Valued Contributor

Has this issue been resolved? @aravhish solution did not help me. Any other options?

I am experiencing the exact same issue with the same configuration on a Mac. Much help would be appreciated.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now