Hi,
Today when i run my program appears an error, for the first time, last
week there's no error.
Error says impossible to connect. I don't understand why today and not
last week, more than i can't execute my job now because cannot
connect.
Script code :
#!/usr/bin/perl
use strict;
use warnings;
use ElasticSearch;
my $es = ElasticSearch->new(
transport => 'http',
servers => 'localhost:9200'
);
$es->cluster_health( wait_for_status => 'yellow' );
Error
[ERROR] ** ElasticSearch::Error::NoServers at /Library/Perl/5.10.0/
ElasticSearch/Transport.pm line 256 :
Could not retrieve a list of active servers:
[ERROR] ** ElasticSearch::Error::Connection at /Library/Perl/
5.10.0/ElasticSearch/Transport/HTTP.pm line 60 :
Can't connect to localhost:9200 (connect: Connection refused)
(500)
With vars:{
'request' => {
'qs' => {},
'cmd' => '/_cluster/nodes',
'method' => 'GET'
},
'status_code' => 500,
'server' => 'localhost:9200',
'status_msg' => 'Can\'t connect to localhost:9200 (connect:
Connection refused)'
}
With vars:{
'servers' => [
'localhost:9200'
]
}
Thanks