ELK Jackson 升级到 2.10.1
准备工作
附件: jacksonjar.zip
- 下面的操作都是普通用户 isearch 操作的
elasticsearch 升级
# 停止elasticsearch服务
/isearch/bin/elasticsearch.sh stop
# 进入指定目录备份文件
cd /isearch/elasticsearch-7.6.1/modules/ingest-geoip/
mv jackson-annotations-2.8.11.jar jackson-annotations-2.8.11.jar.bak
mv jackson-databind-2.8.11.4.jar jackson-databind-2.8.11.4.jar.bak
升级
## 上传文件到指定目录(文件在zip包中)
/isearch/elasticsearch-7.6.1/modules/ingest-geoip/jackson-annotations-2.10.1.jar
/isearch/elasticsearch-7.6.1/modules/ingest-geoip/jackson-databind-2.10.1.jar
# 启动elasticsearch服务
/isearch/bin/elasticsearch.sh start
恢复
使用 isearch
用户操作下面的命令:
# 停止elasticsearch服务
/isearch/bin/elasticsearch.sh stop
## 删除升级的文件
cd /isearch/elasticsearch-7.6.1/modules/ingest-geoip/
rm -rf jackson-annotations-2.10.1.jar
rm -rf jackson-databind-2.10.1.jar
## 恢复之前的文件
cd /isearch/elasticsearch-7.6.1/modules/ingest-geoip/
mv jackson-annotations-2.8.11.jar.bak jackson-annotations-2.8.11.jar
mv jackson-databind-2.8.11.4.jar.bak jackson-databind-2.8.11.4.jar
# 启动elasticsearch服务
/isearch/bin/elasticsearch.sh start
logstash 升级
# 停止logstash服务
/isearch/bin/logstash.sh stop
# 进入指定目录备份文件
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.9.10/
mv jackson-annotations-2.9.10.jar jackson-annotations-2.9.10.jar.bak
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/
mv jackson-core-2.9.10.jar jackson-core-2.9.10.jar.bak
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/
mv jackson-databind-2.9.10.1.jar jackson-databind-2.9.10.1.jar.bak
升级
## 上传文件到指定目录(文件在zip包中)
/isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.9.10/jackson-annotations-2.10.1.jar
/isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.9.10/jackson-core-2.10.1.jar
/isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.9.10.1/jackson-databind-2.10.1.jar
# 启动logstash服务
/isearch/bin/logstash.sh start
恢复
使用 isearch
用户操作下面的命令:
# 停止logstash服务
/isearch/bin/logstash.sh stop
## 删除升级的文件
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.9.10/
rm -rf jackson-annotations-2.10.1.jar
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/
rm -rf jackson-core-2.10.1.jar
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/
rm -rf jackson-databind-2.10.1.jar
## 恢复之前的文件
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.9.10/
mv jackson-annotations-2.9.10.jar.bak jackson-annotations-2.9.10.jar
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/
mv jackson-core-2.9.10.jar.bak jackson-core-2.9.10.jar
cd /isearch/logstash-7.6.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-6.0.8-java/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/
mv jackson-databind-2.9.10.1.jar.bak jackson-databind-2.9.10.1.jar
# 启动logstash服务
/isearch/bin/logstash.sh start