Unable to fetch large data using DatabricksJDBC42-2.6.25.1044 jar

Ghosh, Sourav (893) 1 Reputation point
2022-05-25T05:56:47.67+00:00

I'm trying to read data using DatabricksJDBC42-2.6.25.1044 jar. it's working perfectly fine with small datasets , however it's failing with the below error for larger datasets. I can observe the failure as soon as the table read completes at databricks cluster (DBR 9.1) side.

Note: Couldn't find relevant documentation related to this error and documents related to JDBC runtime parameters, like fetchSize, queryTimeout and so on. .

Exception in thread "main" java.sql.SQLException: [Databricks]DatabricksJDBCDriver The file <Blob storage URL> has not been downloaded successfully and the driver will not retry due to exceeding of the max retry limit 10, you can increase the max retry limit by setting MaxConsecutiveResultFileDownloadRetries.
at com.databricks.client.spark.jdbc.ResultFileDownloadManager.checkAndHandleDownloadError(Unknown Source)
at com.databricks.client.spark.jdbc.ResultFileDownloadManager.getNextDownloadedFile(Unknown Source)
at com.databricks.client.spark.jdbc.DowloadableFetchClient.fetchNRows(Unknown Source)
at com.databricks.client.hivecommon.api.HS2Client.fetchRows(Unknown Source)
at com.databricks.client.hivecommon.dataengine.BackgroundFetcher.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Caused by: com.databricks.client.support.exceptions.GeneralException: [Databricks]DatabricksJDBCDriver The file <Blob storage URL> has not been downloaded successfully and the driver will not retry due to exceeding of the max retry limit 10, you can increase the max retry limit by setting MaxConsecutiveResultFileDownloadRetries.
... 9 more

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,910 questions
{count} votes