4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

elasticsearchの起動時にUnknownHostExceptionが発生した場合の対処方法

Posted at

#現象
elasticsearchの起動時にUnknownHostExceptionが発生する。

/etc/hosts
[vagrant@vagrant-centos65 elasticsearch-1.3.2]$ ./bin/elasticsearch [2014-08-17 17:57:14,963][INFO ][node ] [Karkas] version[1.3.2], pid[1918], build[dee175d/2014-08-13T14:29:30Z] [2014-08-17 17:57:14,963][INFO ][node ] [Karkas] initializing ... [2014-08-17 17:57:14,970][INFO ][plugins ] [Karkas] loaded [], sites [] [2014-08-17 17:57:22,775][WARN ][common.network ] failed to resolve local host, fallback to loopback java.net.UnknownHostException: vagrant-centos65.vagrantup.com: vagrant-centos65.vagrantup.com: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1473)

#原因
自ホスト名が解決ができていない。

#解決方法
/etc/hostsに自ホスト名を追加する。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?