【问题标题】:Error on starting cassandra启动 cassandra 时出错
【发布时间】: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:,但我仍然遇到同样的错误。

我能做什么?

【问题讨论】:

标签: java cassandra


【解决方案1】:

在 /etc/hosts 文件中添加 127.0.1.1 ip-172-30-0-229 修复它。

【讨论】:

    猜你喜欢
    • 2016-08-01
    • 2013-05-25
    • 2017-12-03
    • 2012-09-03
    • 2013-05-26
    • 2012-07-26
    • 2017-05-11
    • 2014-05-22
    • 1970-01-01
    相关资源
    最近更新 更多