Skip to content

bguerout/xebia-bigdata-mongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xebia Bigdata Mongo

Import tweets into mongo:

mongorestore -d xebia -c tweets --drop dump/xebia/tweets.bson

Commands to prepare collection (already done in previous dump)

 db.tweets.remove({ coordinates : null })
 db.tweets.ensureIndex({ coordinates : "2dsphere" })
 db.tweets.find({}).forEach(function(doc){ doc.date = new Date(doc.created_at); db.tweets.save(doc);})

Maven stuff

Declare jetty into settings.xml

<pluginGroups>
    <pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>

http://localhost:8080/tweets?lat=48.8754071&lng=2.3111512&start=1372154400000&end=137215

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.2%
  • Java 7.8%