#現象
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に自ホスト名を追加する。