Use Linux and Hadoop for Distributed Computing

Source: Internet
Author: User
Article Title: use Linux and Hadoop for distributed computing. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

People rely on search engines every day to find specific content from the massive amount of data on the Internet. But have you ever wondered how these searches are executed? One method is Apache Hadoop, which is a software framework that can process massive data in a distributed manner. An Application of Hadoop is to index Internet Web pages in parallel. Hadoop is! Apache projects supported by companies such as Google and IBM. This article will introduce the Hadoop framework and show why it is the most important Linux-based framework? Is one of the distributed computing frameworks.

Hadoop was officially introduced by Apache Software Foundation as part of Lucene's sub-project, Nutch, in the fall of 2005. It was inspired by MapReduce and Google File System first developed by Google Lab. In July March 2006, MapReduce and Nutch Distributed File System (NDFS) were included in a project called Hadoop respectively.

Hadoop is the most popular tool for classifying search keywords on the Internet, but it can also solve many problems requiring great scalability. For example, if you want to grep a 10 TB giant file, what will happen? In traditional systems, this takes a long time. However, Hadoop can greatly improve the efficiency because these problems are taken into account during design.

Prerequisites

Hadoop is a software framework that can process large amounts of data in a distributed manner. However, Hadoop is processed in a reliable, efficient, and scalable manner. Hadoop is reliable because it assumes that computing elements and storage will fail, so it maintains multiple copies of work data to ensure that it can be redistributed for failed nodes. Hadoop is efficient because it works in parallel and accelerates processing through parallel processing. Hadoop is still scalable and can process petabytes of data. In addition, Hadoop depends on Community servers, so it is relatively low cost and can be used by anyone.

You may have thought that Hadoop is ideal for running on the Linux production platform because it comes with Java? Language framework. Applications on Hadoop can also be written in other languages, such as C ++.

Hadoop Architecture

Hadoop has many elements. The bottom is Hadoop Distributed File System (HDFS), which stores files on all storage nodes in the Hadoop cluster. The previous layer of HDFS (for this article) is the MapReduce engine, which consists of JobTrackers and TaskTrackers.

HDFS

For external clients, HDFS is like a traditional hierarchical file system. You can create, delete, move, or rename an object. However, the HDFS architecture is built based on a specific set of nodes (see figure 1), which is determined by its own characteristics. These nodes include NameNode (only one), which provides metadata services within HDFS, and DataNode, which provides storage blocks for HDFS. Since only one NameNode exists, this is a drawback of HDFS (single point of failure ).

Figure 1. Simplified View of Hadoop Cluster

Files stored in HDFS are divided into blocks and copied to multiple computers (DataNode ). This is very different from the traditional RAID architecture. The size of the block (usually 64 MB) and the number of copied blocks are determined by the client when the file is created. NameNode can control all file operations. All communication within HDFS is based on the standard TCP/IP protocol.

[1] [2] [3] [4] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.