Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark 3.0.0 Streaming sink error in Databricks Runtime #445

Open
jdocampo opened this issue Mar 16, 2021 · 0 comments
Open

Spark 3.0.0 Streaming sink error in Databricks Runtime #445

jdocampo opened this issue Mar 16, 2021 · 0 comments

Comments

@jdocampo
Copy link
Member

When executing the code from branch 3.0 in Databricks runtime 8.0 (libraries included here) getting the following error:

org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 11.0 failed 4 times, most recent failure: Lost task 0.3 in stage 11.0 (TID 43) (10.139.64.4 executor 0): java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V at com.microsoft.azure.cosmosdb.internal.directconnectivity.RntbdTransportClient$Options$Builder.requestTimeout(RntbdTransportClient.java:583) at com.microsoft.azure.cosmosdb.internal.directconnectivity.RntbdTransportClient$Options$Builder.<init>(RntbdTransportClient.java:483) at com.microsoft.azure.cosmosdb.internal.directconnectivity.RntbdTransportClient$Options$Builder.<init>(RntbdTransportClient.java:501) at com.microsoft.azure.cosmosdb.internal.directconnectivity.RntbdTransportClient.<init>(RntbdTransportClient.java:96) at com.microsoft.azure.cosmosdb.internal.directconnectivity.StoreClientFactory.<init>(StoreClientFactory.java:57) at com.microsoft.azure.cosmosdb.rx.internal.RxDocumentClientImpl.initializeDirectConnectivity(RxDocumentClientImpl.java:335) at com.microsoft.azure.cosmosdb.rx.internal.RxDocumentClientImpl.init(RxDocumentClientImpl.java:327) at com.microsoft.azure.cosmosdb.rx.AsyncDocumentClient$Builder.build(AsyncDocumentClient.java:231) at com.microsoft.azure.cosmosdb.spark.AsyncCosmosDBConnection$.createClient(AsyncCosmosDBConnection.scala:126) at com.microsoft.azure.cosmosdb.spark.AsyncCosmosDBConnection$$anon$1.apply(AsyncCosmosDBConnection.scala:52) at com.microsoft.azure.cosmosdb.spark.AsyncCosmosDBConnection$$anon$1.apply(AsyncCosmosDBConnection.scala:51) at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) at com.microsoft.azure.cosmosdb.spark.AsyncCosmosDBConnection$.getClient(AsyncCosmosDBConnection.scala:115)

snippet for reference:
cosmos_data.writeStream.outputMode("Update").format("com.microsoft.azure.cosmosdb.spark.streaming.CosmosDBSinkProvider").option("checkpointLocation", "/delta/events/_checkpoints/process-automatic-feeders-test").options(**writeConfig).start()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant