Open ianks opened 9 years ago
cc: @CSCI-4830-002-2014/students
Thanks Ian! This is great. Also I just used
$ mongo 198.199.113.194
to access it, the -h flag brought up help for my windows machine.
Good call! Updating post now.
It was working moments ago just as mongo 198.199.113.194
, but now it won't work at all. I get the error:
MongoDB shell version: 2.6.5
connecting to: 198.199.113.194/test
2014-11-14T13:51:32.511-0700 warning: Failed to connect to 198.199.113.194:27017, reason: errno:61 Connection refused
2014-11-14T13:51:32.511-0700 Error: couldn't connect to server 198.199.113.194:27017
(198.199.113.194), connection attempt failed at src/mongo/shell/mongo.js:148
exception: connect failed
I think the update must have changed something. Are you sure the IP stayed the same?
I just upgraded mongo, for some reason the Debian package was at 2.0, now we at 2.6. Should be good now. Can you confirm it works?
:+1: Thanks!
Awesome stuff!
you da best
Thank you!
:+1:
Can't...
> db.reddit.find({},{}).sort({ups:1})
error: {
"$err" : "Runner error: Overflow sort stage buffered data usage of 33555127 bytes exceeds internal limit of 33554432 bytes",
"code" : 17144
"code" : 17144
}
@dawsonbotsford Try throwing a .limit(10)
on there.
You could always limit it to comments from one particular day in the dataset. This'll add potential biases that you can think about and find ways to get around (maybe redo the calculation for different days and check that the conclusions are approximately the same)
Where do I find the weather data on this server?
I don't believe anyone had uploaded that yet. Feel free to do so in a new collection, though.
Peyman added it in JSON format in collection weather
How are we supposed to convert the csv to json? Peyman and I are dead in the water
Import it as CSV using --type CSV and --headerline On Nov 16, 2014 6:58 PM, "Dawson Botsford" notifications@github.com wrote:
How are we supposed to convert the csv to json? Peyman and I are dead in the water
— Reply to this email directly or view it on GitHub https://github.com/CSCI-4830-002-2014/challenge-week-12/issues/3#issuecomment-63251551 .
Do we need to build our own headerline?
If you look at the file, the first line is a header...
http://docs.mongodb.org/manual/reference/program/mongoimport/
is what I referenced.
So I ended up booting an instance with 32CPUs and 32GB of memory to deal with these queries....
$ mongo --host 104.236.191.166
Due to the size of the data in this challenge, I figured some people would have some issues getting it indexed/hosted in Mongo in a reasonable time. I went ahead and started a Mongo server with all of the data hosted.
You can access it like so:
$ mongo --host 198.199.113.194