How do I start MongoDB

If MongoDB installed successfully through RPM installation/any other process, you’ll usually see the below Mongo binaries in the bin (eg. */opt/mongodb/bin*) folder which will be useful to start the Mongo processes (mongod&mongos). [user@hostname bin]$ pwd /opt/mongodb/bin [user@hostname bin]$ ls -lthr…

Introduction to MongoDB world

MongoDB is an opensource , schema less , nosql database. It uses a form of JSON to store and manipulate its data. Datais actully stored in BSON format which is acronym of binary Json. BSON comes with some utilities on…

MongoDB ONLINE FREE COURSES

M101J: MongoDB for Java Developers Introductory Learn basic installation of MongoDB, JSON, schema design, querying, insertion of data, indexing and working with language drivers. The course project involves building a blogging platform with MongoDB. Code examples will be in Java….

Bulk inserts to MongoDB Collection with a for loop

[user@hostname bin]$ ./mongo hostname:37017/admin -u admin_mongodb -p –ssl MongoDB shell version: 2.4.5 Enter password: connecting to: hostname:37017/admin Welcome to the MongoDB shell. For interactive help, type “help”. For more comprehensive documentation, see http://docs.mongodb.org/ Questions? Try the support group http://groups.google.com/group/mongodb-user rs1:PRIMARY>…

MongoDB Job trends from INDEED.COM (http://www.indeed.com/)

MongoDB Job trends from INDEED.COM (http://www.indeed.com/)

    Here’s a look at the current, trending NoSQL jobs. This is a clear indicator that MongoDB® jobs are the hottest NoSQL jobs in town.      MongoDB® has significant adoption among the Fortune 500 and Global 500 companies. Companies like eBay, The New York…

MongoDB with SSL, KeyFile & Kerberos Authentication

It is recommended that MongoDB uses SSL to ensure any sensitive information is transmitted securely between clients and MongoDB. By default the MongoDB configuration file contains 3 entries for SSL communication. To enable MongoDB to start up using SSL requires…

Enabling MongoDB authentication with –keyFile option.

Create a keyFile as below and change it’s permissions & owner as below [root@host-name bin]$ cat /srv/mongodb/keyfile SrinivasMutyalakeyFileforTesting [root@host-name bin]$ chown root:mongod /srv/mongodb/keyfile [root@host-name bin]$ chmod 700 /srv/mongodb/keyfile [root@host-name bin]$ [root@host-name bin]$ ls -lhtr /srv/mongodb/keyfile -rwx—— 1 root mongod 33…

How do I stop Replication within Replica-set in MongoDB

Is there any single command/short process to stop/pause the Replication within a Replica Set (Not Shard enabled) instead following the below long process. 1. PRIMARY> rs.remove(secondary.host.name:port); 2. restart secondary without –replSet 3. do your activity 4. restart secondary with –replSet,…