我尝试将AWS DynamoDB与ElasticSearch连接起来。我按照那个指示:
https://github.com/awslabs/logstash-input-dynamodb
然而我遇到了问题。调用该代码时出错:
jruby -S gem install --local logstash-input-dynamodb-1.0.0-java.gem
错误:
我的DynamoDB文件:
答案 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 文件夹
后续步骤:
我安装了logstash 2.4.1
:gem "logstash-input-dynamodb"
bin / plugin install --no-verify logstash-input-dynamodb
bin / plugin list - 显示已安装logstash-input-dynamodb