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

Add Java MongoDB read/write pipelines #46

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

Amar3tto
Copy link
Contributor

@Amar3tto Amar3tto commented Feb 16, 2024

Pipelines added:

  1. Write to MongoDB
    IO: MongoDB IO
    SDK Language: Java
    Run instruction:
  • Start MongoDB
  • Create collection and fill with test data
  • run java WriteMongoDB --runner="DataflowRunner" --project="your-project" --region="your-region" uri="your-uri" --dbName="your-db-name" --collection="your-collection"
  1. Read from MongoDB
    IO: MongoDB IO
    SDK Language: Java
    Run instruction:
  • Start MongoDB
  • Create collection and fill with test data
  • run java ReadMongoDB --runner="DataflowRunner" --project="your-project" --region="your-region" uri="your-uri" --dbName="your-db-name" --collection="your-collection"

@liferoad liferoad requested a review from Abacn February 16, 2024 14:09
Copy link
Collaborator

@Abacn Abacn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add bson and beam-io-mongodb to pom.xml as dependency. Currently it works because beam-sdks-java-extensions-sql depends on beam-sdks-java-io-mongodb. But in general we should explicitly add the dependency that directly used.

@Amar3tto Amar3tto requested a review from Abacn February 21, 2024 10:11
@Abacn Abacn merged commit 5d0585b into GoogleCloudPlatform:main Feb 21, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants