Logstash6.4.2 中 jackson-databind 升级到 2.10.5 说明文档

1 准备工作

jackson-databind2.9.10 升级到 2.10.5 说明文档
jackson2105.zip

1、备份logstash整个目录
cp-r /isearch/logstash-6.4.2 /isearch/logstash-6.4.2_bak

2 升级

1、修改/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/jrjackson_jars.rb

2、把2.9.5改为2.10.5(jackson-module-afterburner的版本不改)

3、创建六个目录(注意用非root账号):
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-core/2.10.5
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-databind/2.10.5
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-annotations/2.10.5
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.10.5
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.10.5
mkdir -p /test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.10.5

4、把最新的jackson的对饮包拷贝进去(注意用非root账号)
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-core/2.10.5/jackson-core-2.10.5.jar
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-databind/2.10.5/jackson-databind-2.10.5.jar
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.6-java/lib/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.10.5/jackson-core-2.10.5.jar
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.10.5/jackson-databind-2.10.5.jar
/test/logstash-6.4.2/vendor/bundle/jruby/2.3.0/gems/logstash-input-beats-5.1.6-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar

5、把所有6个路径下的2.9.5这个目录移走

6、移走/test/logstash-6.4.2/logstash-core/lib/jars/下面的三个旧版本文件,把新版本文件放入
/test/logstash-6.4.2/logstash-core/lib/jars/jackson-core-2.10.5.jar
/test/logstash-6.4.2/logstash-core/lib/jars/jackson-databind-2.10.5.jar
/test/logstash-6.4.2/logstash-core/lib/jars/jackson-annotations-2.10.5.jar

7、修改/test/logstash-6.4.2/logstash-core/versions-gem-copy.yml,把jackson: 2.9.5改为 jackson:2.10.5

6、重启logstash。

3 还原

1、删除当前logstash

2、还原备份
cp-r /isearch/logstash-6.4.2_bak /isearch/logstash-6.4.2