【发布时间】:2018-02-17 12:20:14
【问题描述】:
我已经在亚马逊实例上下载了 apcahe cassandra 3.11.1。
我在cassandra/bin 运行这个:
sh cassandra
我收到一个错误:
CassandraDaemon.java:706 - Local host name unknown: java.net.UnknownHostException: ip-172-30-0-229: ip-172-30-0-229: Name or service not known
我尝试关注this answer
这是我的/etc/hosts文件的内容:
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
我已经尝试编辑它并在127.0.0.1 localhost 前面添加ip-172-30-0-229:,但我仍然遇到同样的错误。
我能做什么?
【问题讨论】: