Created
December 11, 2020 00:41
-
-
Save anjijava16/5e15a0687830681ff8166ca8b01309d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB : | |
localhost | |
Port:27017 | |
username: admin | |
password: admin | |
Port : 27017 | |
Databasename: meetup | |
collectionName(Table_Name): meetup_rsvp_tbl | |
connect windows | |
> mongo.exe | |
> use meetup_rsvp_db; | |
> db.createCollection("meetup_rsvp_message_details_tbl") | |
http://stream.meetup.com/2/rsvps/ | |
create table meetup_rsvp_tbl ( average_age double,sex varchar(10),batchId long) | |
val mongodb_host_name="localhost"; | |
val mongodb_port="27017"; | |
val mongodb_username="admin"; | |
val mongodb_password="admin"; | |
val mongodb_database="meetup_db"; | |
val mongodb_collection_tbl="meetup_rsvp_message_tbl"; | |
val spark_mongodb_output_uri="mongodb://"+mongodb_username+":"+mongodb_password+"@"+mongodb_host_name+":"+mongodb_port; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment