ubuntu - 127.0.0.1 是什么意思? 127.0.0.1 代表在/etc/hosts ubuntu 中吗?

标签 ubuntu hadoop hive

每次我尝试安装一些 apache hadoop、hbase 时。

  127.0.0.1 localhost
    127.0.1.1 ubuntu-host

通常建议您注释 localhost 部分并在/etc/hosts 文件中使用 127.0.0.1 ubuntu-host 。如果我同时使用怎么办

127.0.0.1 本地主机,ubuntu 主机 这有什么问题吗?此外,建议禁用集群中的 ipv6。如果我使用默认主机文件并启用 ipv6 会怎样?这会导致任何问题吗?

最佳答案

浏览一下这个page 。它完美地解释了为什么 HBase 关心/etc/hosts。就 IPv6 而言,IPv6 网络目前不支持 Hadoop。它仅在 IPv4 堆栈上进行了测试和开发。 Hadoop 需要 IPv4 才能工作,并且只有 IPv4 客户端才能与集群通信。如果您的组织仅迁移到 IPv6,您将遇到问题。请参阅this了解更多详情。

HTH

关于ubuntu - 127.0.0.1 是什么意思? 127.0.0.1 代表在/etc/hosts ubuntu 中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17404117/

相关文章:

ubuntu - lib/x86_64-linux-gnu/libc.so.6 : version `GLIBC_2.17' not found (Ubuntu 14. 04)

hadoop - 如何在hadoop mapreduce中使用reducer

hadoop - HBase 伪分布式还是全分布式模式?

Hive - 使用 'select query' 和 'fields terminated by' 命令创建表语句

hadoop - 为什么会有 Pig 和 Hive

mysql - 配置单元(或 MySQL): Finding event of different type with maximum timestamp

ubuntu - ejabberd 域/主机名

Ubuntu 与 cc1plus - 错误未实现

performance - select * from foo (100 000 rows) 需要 4 秒,这正常吗?

hadoop - 在Ubuntu 14上设置Hadoop 2.6.0多节点的问题