在EC2实例中使用elasticsearch 1.6.1 rpm安装。 我已经安装了cloud-aws插件,该插件在s3中备份索引,重新启动节点,显然它运行良好。
Installed elasticsearch/elasticsearch-cloud-aws/2.6.1 into /usr/share/elasticsearch/plugins/cloud-aws
当我列出已安装的插件时,一切看起来都不错:
elasticsearch/bin/plugin --list
Installed plugins:
- cloud-aws
但是当我尝试使用以下PUT通过API创建快照时,我得到:
curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{
"type": "s3",
"settings": {
"bucket": "elasticsearchbkp",
"region": "sa-east-1"
}
}'
堆栈跟踪:
“error”:“RemoteTransportException [[Whatever Name] [inet [/10.1.1.1.1:9300]] [cluster:admin / repository / put]]; 嵌套:RepositoryException [[my_s3_repository]无法创建 库];嵌套:NoClassSettingsException [无法加载类 有价值的[s3];尝试[s3, org.elasticsearch.repositories.S3RepositoryModule, org.elasticsearch.repositories.s3.S3RepositoryModule, org.elasticsearch.repositories.s3.S3RepositoryModule]];嵌套: ClassNotFoundException的[org.elasticsearch.repositories.s3.S3RepositoryModule]; “,”状态“:500}
奇怪的是,我使用elasticsearch-1.6.1.zip版本。 插件和lib文件夹中的内容:
ls elasticsearch / lib /
antlr-runtime-3.5.jar jna-4.1.0.jar lucene-grouping-4.10.4.jar lucene-queryparser-4.10.4.jar
apache-log4j-extras-1.2.17.jar jts-1.13.jar lucene-highlighter-4.10.4.jar lucene-sandbox-4.10.4.jar
asm-4.1.jar log4j-1.2.17.jar lucene-join-4.10.4.jar lucene-spatial-4.10.4.jar
asm-commons-4.1.jar lucene-analyzers-common-4.10.4.jar lucene-memory-4.10.4.jar lucene-suggest-4.10.4.jar
elasticsearch-1.6.1.jar lucene-core-4.10.4.jar lucene-misc-4.10.4.jar sigar
groovy-all-2.4.4.jar lucene-expressions-4.10.4.jar lucene-queries-4.10.4.jar spatial4j-0.4.1.jar
ls elasticsearch / plugins / cloud-aws /
aws-java-sdk-core-1.10.12.jar aws-java-sdk-s3-1.10.12.jar elasticsearch-cloud-aws-2.6.1.jar jackson-annotations-2.5.0.jar joda-time-2.8.2.jar
aws-java-sdk-ec2-1.10.12.jar commons-codec-1.4.jar httpclient-4.3.5.jar jackson-core-2.5.3.jar
aws-java-sdk-kms-1.10.12.jar commons-logging-1.1.3.jar httpcore-4.3.2.jar jackson-databind-2.5.3.jar
有什么想法吗?谢谢=)