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: 

Write streaming output to DynamoDB

sudhanshu1
New Contributor III

Hi All,

I am trying to write a streaming DF into dynamoDB with below code.

tumbling_df.writeStream \

  .format("org.apache.spark.sql.execution.streaming.sinks.DynamoDBSinkProvider") \

  .option("region", "eu-west-2") \

  .option("tableName", "PythonForeachTest") \

  .outputMode("update") \

  .start()

However i get an error

Py4JJavaError: An error occurred while calling o3880.start.

: java.lang.ClassNotFoundException:

Failed to find data source: org.apache.spark.sql.execution.streaming.sinks.DynamoDBSinkProvider. Please find packages at

http://spark.apache.org/third-party-projects.html

Could you please help me to find this package and how to import it please?

1 REPLY 1

LandanG
Databricks Employee
Databricks Employee

Hi @SUDHANSHU RAJ​ ,

I can't seem to find much on the "DynamoDBSinkProvider" source. Have you checked out the link for the streaming to DynamoDB documentation?

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