Configuring Network Names

Configuring Network Names

This page is for manual CDH installations only. Cloudera Manager users should disregard. Important: CDH requires IPv4. IPv6 is not supported. Tip: When bonding, use the bond0 IP address as it represents all aggregated links.

Configure each host in the cluster as follows to ensure that all members can communicate with each other:

  1. Set the hostname to a unique name (not localhost).
    sudo hostnamectl set-hostname foo-1.example.com
  2. Edit /etc/hosts with the IP address and fully qualified domain name (FQDN) of each host in the cluster. You can add the unqualified name as well.
    1.1.1.1  foo-1.example.com  foo-1
    2.2.2.2  foo-2.example.com  foo-2
    3.3.3.3  foo-3.example.com  foo-3
    4.4.4.4  foo-4.example.com  foo-4
    Important:
    • The canonical name of each host in /etc/hostsmust be the FQDN (for example myhost-1.mynet.myco.com), not the unqualified hostname (for example myhost-1). The canonical name is the first entry after the IP address.
    • Do not use aliases, either in /etc/hosts or in configuring DNS.
  3. Edit /etc/sysconfig/network with the FQDN of this host only:
    HOSTNAME=foo-1.example.com
  4. Verify that each host consistently identifies to the network:
    1. Run uname -a and check that the hostname matches the output of the hostname command.

转载于:https://www.cnblogs.com/chengjunhao/p/8678732.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值