Hadoop enterprise cluster architecture-DNS Installation
Hadoop enterprise cluster architecture-DNS Installation
1. Configure IP
Vi/etc/sysconfig/network-scripts/ifcfg-eno16777736
Systemctl restart network. service
Ip-4 addr
Ping 192.168.1.1
Vi/etc/hostname
Ddd the following line:
Dns.hadoop.com
Install DNS Software Package
Yum-y install bind-utils bind-chroot
Rpm-qa | grep '^ bind'
Modify/etc/named. conf
Listen-on port 53 {any ;}; # change the original 127.0.0.1 to any
Allow-query {any ;}; # change the original localhost to any
Modify named. rfc1912.zones
Add the following content: (you can also directly write it in/etc/named. conf)
Zone "hadoop.com" IN {
Type master;
File "named.hadoop.com ";
Allow-update {none ;};
};
Zone '1. 168.192.in-addr. arpa "IN {
Type master;
File "named.192.168.1.zone ";
Allow-update {none ;};
};
Configure forward resolution File
Cp named. localhost named.hadoop.com
Add the following content to the file named.hadoop.com:
$ TTL 1D
@ In soa dns.hadoop.com. grid.dns.hadoop.com .(
0; serial
1D; refresh
1 H; retry
1 W; expire
3 H); minimum
NS dns.hadoop.com.
Dns.hadoop.com. in a 192.168.1.230
H1.hadoop.com. in a 192.168.1.231
H2.hadoop.com. in a 192.168.1.20.
H3.hadoop.com. in a 192.168.1.233
H4.hadoop.com. in a 192.168.1.234
H5.hadoop.com. in a 192.168.1.235
H6.hadoop.com. in a 192.168.1.236
H7.hadoop.com. in a 192.168.1.237
H8.hadoop.com. in a 192.168.1.238
Configure reverse resolution File
Cp named. localhost named.192.168.1.zone
Add the following content:
$ TTL 1D
@ In soa dns.hadoop.com. grid.dns.hadoop.com (
0; serial
1D; refresh
1 H; retry
1 W; expire
3 H); minimum
NS dns.hadoop.com.
231 in ptr h1.hadoop.com.
232 in ptr h2.hadoop.com.
233 in ptr h3.hadoop.com.
234 in ptr h4.hadoop.com.
235 in ptr h5.hadoop.com.
236 in ptr h6.hadoop.com.
237 in ptr h7.hadoop.com.
238 in ptr h8.hadoop.com.
View logs
Tail-30/var/log/messages | grep named
Add DNS resolution Server IP Address
(Add DNS1 = 192.168.1.230 to the IP configuration file of the machines on each node)
Start DNS
# Start DNS
Systemctl start named. service
# Set auto-start
Systemctl start named. service
# Viewing DNS status
Systemctl status named. service
Verification test:
You may also like the following articles about Hadoop:
Tutorial on standalone/pseudo-distributed installation and configuration of Hadoop2.4.1 under Ubuntu14.04
Install and configure Hadoop2.2.0 on CentOS
Build a Hadoop environment on Ubuntu 13.04
Cluster configuration for Ubuntu 12.10 + Hadoop 1.2.1
Build a Hadoop environment on Ubuntu (standalone mode + pseudo Distribution Mode)
Configuration of Hadoop environment in Ubuntu
Detailed tutorial on creating a Hadoop environment for standalone Edition