[root@localhost software]# cat /etc/yum.repos.d/elasticsearch.repo
[elasticsearch]
name=Elasticsearch
baseurl=http://packages.elastic.co/elasticsearch/1.5/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
[root@localhost software]# rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
error: https://packages.elastic.co/GPG-KEY-elasticsearch: import read failed(-1).
[root@localhost software]# rpm --import http://packages.elastic.co/GPG-KEY-elasticsearch
[root@localhost software]# yum install elasticsearch
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
- base: mirrors.btte.net
- extras: mirrors.sina.cn
- updates: mirrors.sina.cn
elasticsearch | 2.9 kB 00:00
elasticsearch/primary_db | 2.9 kB 00:00
http://packages.elastic.co/elasticsearch/1.5/centos/repodata/53affd1b65c791b1a24b0921d6592fea88fc1391d5cf8659a668234b66c52399-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
elasticsearch/primary_db | 2.9 kB 00:01
http://packages.elastic.co/elasticsearch/1.5/centos/repodata/53affd1b65c791b1a24b0921d6592fea88fc1391d5cf8659a668234b66c52399-primary.sqlite.bz2: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/53affd1b65c791b1a24b0921d6592fea88fc1391d5cf8659a668234b66c52399-primary.sqlite.bz2 from elasticsearch: [Errno 256] No more mirrors to try.