- Hadoop 2.x Administration Cookbook
- Gurmukh Singh
- 293字
- 2021-07-09 20:10:25
Setting up host resolution
Before we start with the installations, it is important to make sure that the host resolution is configured and working properly.
Getting ready
Choose any appropriate hostnames the user wants for his or her Linux machines. For example, the hostnames could be master1.cluster.com
or rt1.cyrus.com
or host1.example.com
. The important thing is that the hostnames must resolve.
This resolution can be done using a DNS server or by configuring the/etc/hosts
file on each node we use for our cluster setup.
The following steps will show you how to set up the resolution in the/etc/hosts
file.
How to do it...
- Connect to the Linux machine and change the hostname to
master1.cyrus.com
in the file as follows: - Edit the
/etc/hosts
file as follows: - Make sure the resolution returns an IP address:
# getent hosts master1.cyrus.com
- The other preferred method is to set up the DNS resolution so that we do not have to populate the
hosts
file on each node. In the example resolution shown here, the user can see that the DNS server is configured to answer the domaincyrus.com
:# nslookup master1.cyrus.com Server: 10.0.0.2 Address: 10.0.0.2#53 Non-authoritative answer: Name: master1.cyrus.com Address: 10.0.0.104
How it works...
Each Linux host has a resolver library that helps it resolve any hostname that is asked for. It contacts the DNS server, and if it is not found there, it contacts the hosts
file. Users who are not Linux administrators can simply use the hosts
files as a workaround to set up a Hadoop cluster. There are many resources available online that could help you to set up a DNS quickly if needed.
Once the resolution is in place, we will start with the installation of Hadoop on a single-node and then progress to multiple nodes.
- Mastering Proxmox(Third Edition)
- 計(jì)算機(jī)應(yīng)用
- Drupal 7 Multilingual Sites
- Dreamweaver CS3網(wǎng)頁設(shè)計(jì)50例
- Apache Hive Essentials
- Photoshop CS3圖層、通道、蒙版深度剖析寶典
- 悟透AutoCAD 2009完全自學(xué)手冊(cè)
- 氣動(dòng)系統(tǒng)裝調(diào)與PLC控制
- Dreamweaver CS6中文版多功能教材
- Bayesian Analysis with Python
- R Machine Learning Projects
- Visual Studio 2010 (C#) Windows數(shù)據(jù)庫項(xiàng)目開發(fā)
- Cortex-M3嵌入式處理器原理與應(yīng)用
- 30天學(xué)通Java Web項(xiàng)目案例開發(fā)
- Microsoft System Center Data Protection Manager Cookbook