i1zhuxian 发表于 2016-9-2 17:37:02

Elasticsearch appears to be unreachable or down

elasticsearch-2.4.0kibana-4.6.0-linux-x86_64 是直接下载官网的tar解压后启动。并未做设么配置
logstash-2.4.0 的配置如下:

input {
      file {
                path => ["/usr/ADH/zookeeper/log/*.out"]
                start_position => beginning
                type => "hadoop1.com_zookeeper.out"
      }
}

output {
      elasticsearch {
                hosts => ['127.0.0.1']
      }
}


启动是ok的,但将 hosts => ['127.0.0.1'] ,修改为 hosts => ['hadoop1.com'] 或者hosts => ['192.168.182.11']
都会报类似如下的错误:
Settings: Default pipeline workers: 1
Connection refused {:class=>"Manticore::SocketException", :level=>:error}
Pipeline main started
Attempted to send a bulk request to Elasticsearch configured at '["http://192.168.182.11:9200"]', but Elasticsearch appears to be unreachable or down! {:error_message=>"Connection refused", :class=>"Manticore::SocketException", :level=>:error}


Elasticsearch 是启动正常的啊。
# netstat -nltp | grep 9200
tcp      0      0 ::1:9200                  :::*                        LISTEN      34203/java
tcp      0      0 ::ffff:127.0.0.1:9200       :::*                        LISTEN      34203/java


想问下有人遇到同样的问题么? 这个可能是哪方面出问题了呢?

页: [1]
查看完整版本: Elasticsearch appears to be unreachable or down