cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.