In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The network configuration tutorial is as follows.
1. Modify the network configuration file
[root@master ~] # vi / etc/sysconfig/network-scripts/ifcfg-eth0
Configure the IP address, gateway, mask, DNS, and so on, as follows:
Take master as an example, other slave node configuration is the same step, only need to change the corresponding IP.
DEVICE=eth0
HWADDR=00:0C:29:33:85:27
TYPE=Ethernet
UUID=0099dc9f-a67a-4af5-a2c2-0b96e95ffe5d
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=202.118.86.11
NETMASK=255.255.255.224
GATEWAY=202.118.86.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no
CDH installation system environment preparation-virtual machine network configuration
In slave1, the network profile is as follows:
DEVICE=eth0
HWADDR=00:0C:29:2E:73:5E
TYPE=Ethernet
UUID=6488cec5-24fe-487e-b2f6-83e1de889292
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=202.118.86.12
NETMASK=255.255.255.224
GATEWAY=202.118.86.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no
CDH installation system environment preparation-virtual machine network configuration
Similarly, the same is true of the configuration files on other slave nodes, which only need to be changed to the corresponding IP.
2 、
Test the ping network (each server) to make sure the network is available
[root@master ~] # ping master
[root@master] # ping-c 3 slave1
[root@master] # ping-c 3 slave2
[root@master] # ping-c 3 slave3
[root@master] # ping-c 3 slave4
CDH installation system environment preparation-virtual machine network configuration
At this point, the cluster virtual machine network configuration is complete ~
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 216
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.