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

Save data to DocumentDB #11

Closed
dennyglee opened this issue Mar 11, 2017 · 2 comments
Closed

Save data to DocumentDB #11

dennyglee opened this issue Mar 11, 2017 · 2 comments

Comments

@dennyglee
Copy link
Contributor

The 0.0.1 version of azure-documentdb-spark can read from DocumentDB; we also need to save data from Apache Spark back to DocumentDB.

@khdang
Copy link
Member

khdang commented Mar 11, 2017

We've already done this. To save data to DocumentDB we can do: rdd.toDF().write.documentDB() or rdd.saveToDocumentDB(). Some sample codes are available in DocumentDBRDD and DataFrameWriter unit tests.

@khdang khdang closed this as completed Mar 11, 2017
@dennyglee
Copy link
Contributor Author

Got it, I'll create a new issue to document samples for this.

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

2 participants