找不到有效的宝石'logstash-core'

时间:2016-06-25 19:14:01

标签: elasticsearch amazon-dynamodb

我尝试将AWS DynamoDB与ElasticSearch连接起来。我按照那个指示:

https://github.com/awslabs/logstash-input-dynamodb

然而我遇到了问题。调用该代码时出错:

jruby -S gem install --local logstash-input-dynamodb-1.0.0-java.gem

错误:

enter image description here

我的DynamoDB文件:

enter image description here

1 个答案:

答案 0 :(得分:0)

我在Linux上成功安装了https://github.com/awslabs/logstash-input-dynamodb

我按照步骤直到:

jruby -S gem build logstash-input-dynamodb.gemspec

生成“logstash-input-dynamodb.gemspec”文件

logstash-core安装在此文件夹中:

$ /jruby-9.1.6.0/lib/ruby/gems/shared/gems/logstash-core-2.0.0.rc1-java

我用以下内容更新了“logstash-input-dynamodb.gemspec”文件(上面生成的):

s.add_runtime_dependency "logstash-core", '~> 2.0.0rc1', '< 3.0.0'

我再次做了一个构建:

jruby -S gem build logstash-input-dynamodb.gemspec

生成 logstash-input-dynamodb-1.0.0-java.gem

运行此命令后:

jruby -S gem install --local logstash-input-dynamodb-1.0.0-java.gem

它成功安装在: $ /jruby-9.1.6.0/lib/ruby/gems/shared/gems 文件夹

后续步骤:

  1. 我安装了logstash 2.4.1

  2. 我在Gemfile中添加了
  3. gem "logstash-input-dynamodb"

  4. bin / plugin install --no-verify logstash-input-dynamodb

  5. bin / plugin list - 显示已安装logstash-input-dynamodb