您的位置:首页 > 其它

logstash 安装WARNING: SSLSocket#session= is not supported

2016-11-02 17:32 573 查看
logstash官方提供的插件安装方法是:

bin/plugin install logstash-output-webhdfs按照此方法,不出意料肯定会出现以下错误:

[ec2-user@ip-xxx-xxx-xxx-xxx logstash-2.3.0]$ bin/plugin install --no-verify logstash-output-webhdfs
The use of bin/plugin is deprecated and will be removed in a feature release. Please use bin/logstash-plugin.
Installing logstash-output-webhdfs
Error Bundler::InstallError, retrying 1/10
An error occurred while installing snappy (0.0.12), and Bundler cannot continue.
Make sure that `gem install snappy -v '0.0.12'` succeeds before bundling.
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported原因是:GFW墙掉了logstash的默认gem source(类似于CentOS的yum source);

[ec2-user@ip-xxx-xxx-xxx-xxx logstash-2.3.0]$ cat Gemfile | grep source
source "https://rubygems.org"需要将gem source修改为国内的源,

[ec2-user@ip-xxx-xxx-xxx-xxx logstash-2.3.0]$ vim Gemfile

# This is a Logstash generated Gemfile.
# If you modify this file manually all comments and formatting will be lost.

#source "https://rubygems.org"
source "https://ruby.taobao.org/"
......执行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐