Skip to content

[BEAM-12266] Adds a connector that streams data from twitter - #14531

Merged
pabloem merged 7 commits into
apache:masterfrom
usingh83:std_twitter_conn
May 18, 2021
Merged

[BEAM-12266] Adds a connector that streams data from twitter#14531
pabloem merged 7 commits into
apache:masterfrom
usingh83:std_twitter_conn

Conversation

@usingh83

@usingh83usingh83 commented Apr 14, 2021

Copy link
Copy Markdown
Contributor

using a Standard Twitter app.

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • [ @pabloem ] Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

LangSDKULRDataflowFlinkSamzaSparkTwister2
GoBuild Status---Build StatusBuild Status---Build Status---
JavaBuild StatusBuild StatusBuild Status
Build Status
Build Status
Build Status
Build StatusBuild Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build StatusBuild Status
Build Status
Build Status
Build Status
PythonBuild Status
Build Status
Build Status
---Build Status
Build Status
Build Status
Build Status
Build Status
---Build Status---
XLangBuild Status---Build StatusBuild Status---Build Status---

Pre-Commit Tests Status (on master branch)

---JavaPythonGoWebsiteWhitespaceTypescript
Non-portableBuild Status
Build Status
Build Status
Build Status
Build Status
Build StatusBuild StatusBuild StatusBuild Status
Portable---Build StatusBuild Status---------

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@pabloempabloem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it may be best if you move your connector into the examples/java directory, so that you get all of the build configurations provided by the examples dir (see: https://github.com/apache/beam/blob/master/examples/java/build.gradle)

the RAT Precommit failure is because every file needs to include an Apache License header (see for example: https://github.com/apache/beam/blob/master/examples/java/build.gradle#L1-L17)

could you create a JIRA issue for it and assign it to yourself?

Also, I think your classes have Tweeter but the product/company is called Twitter so maybe rename those? : )

Comment threadexamples/twitter-beam-java/src/main/java/ReadFromTweeterDoFn.java Outdated
Comment threadexamples/twitter-beam-java/src/main/java/ReadFromTweeterDoFn.java Outdated
Comment threadexamples/twitter-beam-java/src/main/java/TweeterStream.java Outdated
Comment threadexamples/twitter-beam-java/src/main/java/ReadFromTweeterDoFn.java Outdated
Comment threadexamples/twitter-beam-java/src/main/java/ReadFromTweeterDoFn.java Outdated
@pabloem
pabloem self-requested a review April 14, 2021 23:29
@aaltay

Copy link
Copy Markdown
Member

What is the next step for this PR?

@usingh83

Copy link
Copy Markdown
ContributorAuthor

I think it may be best if you move your connector into the examples/java directory, so that you get all of the build configurations provided by the examples dir (see: https://github.com/apache/beam/blob/master/examples/java/build.gradle)

the RAT Precommit failure is because every file needs to include an Apache License header (see for example: https://github.com/apache/beam/blob/master/examples/java/build.gradle#L1-L17)

could you create a JIRA issue for it and assign it to yourself?

Also, I think your classes have Tweeter but the product/company is called Twitter so maybe rename those? : )

Hi Pablo, I created the issue, but I am not able to assign it to myself - https://issues.apache.org/jira/browse/BEAM-12266! Do you know what might be wrong?

I will take care of the rest.

@pabloem

Copy link
Copy Markdown
Member

you needed to request contributor permissions in the Beam dev@ list - I've granted thejm to you and assigned the but to you

@usingh83

Copy link
Copy Markdown
ContributorAuthor

What is the next step for this PR?

Working on it :)

Comment threadexamples/twitter-beam-java/build.gradle Outdated
Comment threadexamples/java/build.gradle Outdated
Comment threadexamples/java/build.gradle Outdated
@usingh83usingh83 changed the title Added a connector that streams data from twitter using a Standard Twi…[BEAM-12266] Added a connector that streams data from twitter using a Standard Twi…May 5, 2021
# This is the 1st commit message:
Java PreCommit failure fix
spotless failure fix
Java PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit refix
Java_Examples_Dataflow PreCommit fix
build failure corrected
Spotless check
Spotless check
reorganizing pipeline
delete the unused folder
Revert "Delete build.gradle"
This reverts commit c39a4e44
Delete build.gradle
don't need this file
adding comments and java docs, and removing unneeded dependencies.
Linting the project and making some stuff private
Reorganized and redefined to logic as per standard beam IO structure.
Lint the files.
Added changes for making the implementation more streamlined and understandable
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
# This is a combination of 15 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly

@pabloempabloem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is looking great. Thanks Uday! just added a couple comments

# This is the 1st commit message:
# This is a combination of 2 commits.
# This is the 1st commit message:
Java PreCommit failure fix
spotless failure fix
Java PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit refix
Java_Examples_Dataflow PreCommit fix
build failure corrected
Spotless check
Spotless check
reorganizing pipeline
delete the unused folder
Revert "Delete build.gradle"
This reverts commit c39a4e44
Delete build.gradle
don't need this file
adding comments and java docs, and removing unneeded dependencies.
Linting the project and making some stuff private
Reorganized and redefined to logic as per standard beam IO structure.
Lint the files.
Added changes for making the implementation more streamlined and understandable
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
# This is a combination of 15 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#2:
# This is a combination of 3 commits.
# This is the 1st commit message:
Java PreCommit failure fix
spotless failure fix
Java PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit refix
Java_Examples_Dataflow PreCommit fix
build failure corrected
Spotless check
Spotless check
reorganizing pipeline
delete the unused folder
Revert "Delete build.gradle"
This reverts commit c39a4e44
Delete build.gradle
don't need this file
adding comments and java docs, and removing unneeded dependencies.
Linting the project and making some stuff private
Reorganized and redefined to logic as per standard beam IO structure.
Lint the files.
Added changes for making the implementation more streamlined and understandable
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
# This is a combination of 15 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#3:
# This is a combination of 16 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#16:
Java PreCommit assign nullable correctly
Java PreCommit assign nullable correctly
spotless failure fix
Java PreCommit failure fix
correcting the if checks
cleaning up and adding readme
spotless fixed
readme fixed and compileJava
fix
compileJava fix
compileJava fix now
spotless fix now
Java PreCommi fix
Java PreCommit fix
# This is a combination of 16 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#16:
Java PreCommit assign nullable correctly
Java PreCommit assign nullable correctly
spotless failure fix
Java PreCommit failure fix
correcting the if checks
cleaning up and adding readme
spotless fixed
readme fixed and compileJava
fix
compileJava fix
compileJava fix now
spotless fix now
Java PreCommi fix
Java PreCommit fix
# This is a combination of 3 commits.
# This is the 1st commit message:
Java PreCommit failure fix
spotless failure fix
Java PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit assign nullable correctly
Java_Examples_Dataflow PreCommit refix
Java_Examples_Dataflow PreCommit fix
build failure corrected
Spotless check
Spotless check
reorganizing pipeline
delete the unused folder
Revert "Delete build.gradle"
This reverts commit c39a4e44
Delete build.gradle
don't need this file
adding comments and java docs, and removing unneeded dependencies.
Linting the project and making some stuff private
Reorganized and redefined to logic as per standard beam IO structure.
Lint the files.
Added changes for making the implementation more streamlined and understandable
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
# This is a combination of 15 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#3:
# This is a combination of 16 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#16:
Java PreCommit assign nullable correctly
Java PreCommit assign nullable correctly
spotless failure fix
Java PreCommit failure fix
correcting the if checks
cleaning up and adding readme
spotless fixed
readme fixed and compileJava
fix
compileJava fix
compileJava fix now
spotless fix now
Java PreCommi fix
Java PreCommit fix
# This is a combination of 16 commits.
# This is the 1st commit message:
Added a connector that streams data from twitter using a Standard Twitter app.
# This is the commit message apache#2:
Added changes for making the implementation more streamlined and understandable
# This is the commit message apache#3:
Lint the files.
# This is the commit message apache#4:
Reorganized and redefined to logic as per standard beam IO structure.
# This is the commit message apache#5:
Linting the project and making some stuff private
# This is the commit message apache#6:
adding comments and java docs, and removing unneeded dependencies.
# This is the commit message apache#7:
delete the unused folder
# This is the commit message apache#8:
reorganizing pipeline
# This is the commit message apache#9:
Spotless check
# This is the commit message apache#10:
Spotless check
# This is the commit message apache#11:
build failure corrected
# This is the commit message apache#12:
Java_Examples_Dataflow PreCommit fix
# This is the commit message apache#13:
Java_Examples_Dataflow PreCommit refix
# This is the commit message apache#14:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#15:
Java_Examples_Dataflow PreCommit assign nullable correctly
# This is the commit message apache#16:
Java PreCommit assign nullable correctly
Java PreCommit assign nullable correctly
spotless failure fix
Java PreCommit failure fix
correcting the if checks
cleaning up and adding readme
spotless fixed
readme fixed and compileJava
fix
compileJava fix
compileJava fix now
spotless fix now
Java PreCommi fix
Java PreCommit fix
Final Commit with all changes
Added unit test
adding examples for usage
usage for TwitterIO added and Java PreCommit failure fix
Spotless PreCommit failure fix
@usingh83usingh83 changed the title [BEAM-12266] Added a connector that streams data from twitter using a Standard Twi…[BEAM-12266] Adds a connector that streams data from twitter using a Standard Twi…May 11, 2021
@usingh83usingh83 changed the title [BEAM-12266] Adds a connector that streams data from twitter using a Standard Twi…[BEAM-12266] Adds a connector that streams data from twitterMay 14, 2021
@pabloem
pabloem merged commit 4fcf7be into apache:masterMay 18, 2021
@pabloem

Copy link
Copy Markdown
Member

thanks @usingh83 ! This is great. If you'd like, it may be cool to add this change to CHANGES.md in another PR so other users know that they can use it for demos / playing around with Beam.

Sign up for freeto 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.

3 participants

@usingh83@aaltay@pabloem