官术网_书友最值得收藏!

Introduction

In this chapter, we will take a look at the storage layer, which is HDFS, and how it can be configured for storing data. It is important to ensure the good health of this distributed filesystem, and make sure that the data it contains is available, even in the case of failures. In this chapter, we will take a look at the replication, quota setup, and balanced distribution of data across nodes, as well as covering recipes on rack awareness and heartbeat for communication with the master.

The recipes in this chapter assume that you already have a running cluster and have completed the steps given in Chapter 1, Hadoop Architecture and Deployment.

Note

While the recipes in this chapter will give you an overview of a typical configuration, we encourage you to adapt this proposal according to your needs. The block size plays an important role in the performance and the amount of data that is worked on by a mapper. It is good practice to set up passphrase less access between nodes, so that the user does not need to enter a password while doing operations across nodes.

Overview of HDFS

Hadoop distributed file system (HDFS)is inspired from the Google File system (GFS). The fundamental idea is to split the files into smaller chunks called blocks and distribute them across nodes in the cluster. HDFS is not the only filesystem used in Hadoop, but there are other filesystems as well such as MapR-FS, ISILON, and so on.

HDFS is a pseudo filesystem that is created on top of other filesystems, such as ext3, ext4, and so on. An important thing to keep in mind is that to store data in Hadoop, we cannot directly write to native filesystems such as ext3, ext4, or xfs. In this chapter, we will cover recipes to configure properties of HDFS.

主站蜘蛛池模板: 阿合奇县| 黎城县| 普兰店市| 察雅县| 札达县| 蕉岭县| 韶山市| 如东县| 耿马| 任丘市| 康乐县| 大冶市| 普宁市| 鄂托克前旗| 镇沅| 龙游县| 噶尔县| 靖州| 益阳市| 修文县| 五峰| 巍山| 六安市| 贞丰县| 霍林郭勒市| 鲁山县| 湖北省| 斗六市| 尚义县| 霍邱县| 金湖县| 华阴市| 探索| 陇西县| 班戈县| 亚东县| 永靖县| 若尔盖县| 南雄市| 德安县| 钦州市|