将——hosts (-s)中的主机名映射到地址



Guest: Virtual Box (Linux Mint带有2个网卡)

当我尝试像这样创建Vercita的数据库时:

echo "NETWORKING=yes" >> /etc/sysconfig/network
export SHORT_HOSTNAME=$(hostname -s)
expect install_image/vertica.expect

I get error:

Mapping hostnames in --hosts (-s) to addresses...
hplaptop resolved to multiple (2) addresses: (IPv4...) 10.0.2.15, 192.11.12.102 (IPv6...) <none>
Error: Unable to resolve 'hplaptop'
Installation FAILED with errors.

尝试:

echo "NETWORKING=yes" >> /etc/sysconfig/network
export SHORT_HOSTNAME=10.0.2.15 # I assume this is the internal IP add
expect install_image/vertica.expect

如果一个主机名解析为两个IP地址,您必须预料到这种行为。在Vertica集群配置中的IP地址比DNS名称或主机名称更容易使用…

最新更新