Just another WordPress.com site
I temporarily put aside my quest on Hadoop and dabbled in MongoDB a little this week, just because I wanted something less frustrating.
MongoDB is relatively easy to get into. You download the file, unzip it, created a directory dedicated as the data folder and another for the log folder. You can setup a mongod.cfg file for basic configuration for the MongoD.exe, the services engine listening on the port.
MongoD runs as a Windows service. To install it, open a cmd prompt window, run as Administrator and type
The config file needs to be in absolute path. If not, it needs to be set that way in the registry.
Open a command line prompt. Run Mongo. That’s the client. It present you with a console to write your command. The code is in Java. Will find out whether it supports C#.
Default to test as database.
Instead of table, MongiDb has collections.
Generate data in a loop
Show data with
It will show all the objects in testData. It does by pages. Need to type “it” to go to another page
That’s it so far.