Skip to content
Related Articles

Related Articles

Difference Between Hadoop and MongoDB
  • Last Updated : 22 May, 2020

Hadoop: Apache Hadoop is a software programming framework where a large amount of data is stored and used to perform the computation. Its framework is based on Java programming which is similar to C and shell scripts. In other words, we can say that it is a platform that is used to manage data, store data, and process data for various big data applications running under clustered systems. The main component of Hadoop is HDFS, Map Reduce, and YARN.

MongoDB: MongoDB is a cross-platform database program that is document-oriented. It is a NoSQL database program and uses JSON documents (Binary-JSON, to be more specific) with the schema. MongoDB Inc. developed MongoDB and has been licensed under the Server Side Public License also known as SSPL.

Hadoop-vs-MongoDB

Below is a table of differences between Hadoop and MongoDB:

Based onHadoopMongoDB
Fortmat of DataIt can be used with boyh structured or unstructured dataUses only CSV or JSON format
Design purposeIt is primarily designed as a database.It is designed to analyze and process large volume of data.
BuiltIt is a Java based applicationIt is a C++ based application
StrengthHandling of batch processes and lengthy-running ETL jobs is excellently done in Hadoop. It comes very handy while for managing Big DataIt is more robust and flexible as compared to Hadoop
Cost of HardwareAs it is a group of various software, it can cost moreBeing a single product makes it cost effective
FrameworkIt comprises of various software that is responsible for creating a data processing framework.It can be used to query, aggregate, index or replicate data stored. The stored data is in the form of Binary JSON(BJSON) and storing of data is done in collections.
RDBMSIt is not designed to replace a RDBMS system but provides addition support to RDBMS to archive data and also gives it a wide variety of use cases.It is designed for the purpose of replacing or enhancing the RDBMS and giving it a wide variety of use cases.
DrawbacksHighly depends upon ‘NameNode’, that can be a point of failureLow fault-tolerance that leads to loss of data occasionally

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :