编译安装 logstash-output-jdbc
环境 mac
https://github.com/theangryangel/logstash-output-jdbc
logstash-plugin install logstash-output-jdbc
直接安装失败
自已编译本地包
logstash实际应用的是jruby,但mac默认的ruby不是jruby环境
先安装jruby
1 安装rvm https://rvm.io/
curl -sSL https://get.rvm.io | bash -s stable
2 安装 jruby
rvm install jruby
3 应用 jruby
rvm use jruby
之后执行报错
bjdeMacBook-Pro:logstash-output-jdbc cclient$ bundle install
/usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4./rubygems.rb::in `find_spec_for_exe': can't find gem bundler (>= .a) (Gem::GemNotFoundException)
from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4./rubygems.rb::in `activate_bin_path'
from /usr/local/bin/bundle::in `<main>'
bjdeMacBook-Pro:logstash-output-jdbc cclient$ gem install bundler
Fetching: bundler-1.16..gem (%)
因类jruby需要另外单独安装bundle,和原ruby的bundle不通用
gem install bundler
环境准备好了安装依赖
git clone https://github.com/theangryangel/logstash-output-jdbc
cd logstash-output-jdbc
bundle install
日志
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies........
Using rake 12.3.
Fetching ast 2.4.
Installing ast 2.4.
Using bundler 1.16.
Fetching numerizer 0.1.
Installing numerizer 0.1.
Fetching chronic_duration 0.10.
Installing chronic_duration 0.10.
Fetching clamp 0.6.
Installing clamp 0.6.
Fetching coderay 1.1.
Installing coderay 1.1.
Fetching concurrent-ruby 1.0. (java)
Installing concurrent-ruby 1.0. (java)
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching multi_json 1.13.
Installing multi_json 1.13.
Fetching elasticsearch-api 5.0.
Installing elasticsearch-api 5.0.
Fetching multipart-post 2.0.
Installing multipart-post 2.0.
Fetching faraday 0.15.
Installing faraday 0.15.
Fetching elasticsearch-transport 5.0.
Installing elasticsearch-transport 5.0.
Fetching elasticsearch 5.0.
Installing elasticsearch 5.0.
Fetching ffi 1.9. (java)
Installing ffi 1.9. (java)
Fetching filesize 0.0.
Installing filesize 0.0.
Fetching fivemat 1.3.
Installing fivemat 1.3.
Fetching gem_publisher 1.5.
Installing gem_publisher 1.5.
Fetching gems 0.8.
Installing gems 0.8.
Fetching i18n 0.6.
Installing i18n 0.6.
Fetching insist 1.0.
Installing insist 1.0.
Fetching jar-dependencies 0.3.
Installing jar-dependencies 0.3.
Fetching jrjackson 0.4. (java)
Installing jrjackson 0.4. (java)
Fetching jruby-openssl 0.9. (java)
Installing jruby-openssl 0.9. (java)
Fetching kramdown 1.14.
Installing kramdown 1.14.
Fetching manticore 0.6. (java)
Installing manticore 0.6. (java)
Fetching minitar 0.5.
Installing minitar 0.5.
Fetching method_source 0.8.
Installing method_source 0.8.
Fetching slop 3.6.
Installing slop 3.6.
Fetching spoon 0.0.
Installing spoon 0.0.
Fetching pry 0.10. (java)
Installing pry 0.10. (java)
Fetching puma 2.16. (java)
Installing puma 2.16. (java)
Fetching rack 1.6.
Installing rack 1.6.
Fetching ruby-maven-libs 3.3.
Installing ruby-maven-libs 3.3.
Fetching ruby-maven 3.3.
Installing ruby-maven 3.3.
Fetching rubyzip 1.1.
Installing rubyzip 1.1.
Fetching rack-protection 1.5.
Installing rack-protection 1.5.
Fetching tilt 2.0.
Installing tilt 2.0.
Fetching sinatra 1.4.
Installing sinatra 1.4.
Fetching stud 0.0.
Installing stud 0.0.
Fetching thread_safe 0.3. (java)
Installing thread_safe 0.3. (java)
Fetching polyglot 0.3.
Installing polyglot 0.3.
Fetching treetop 1.4.
Installing treetop 1.4.
Fetching logstash-core 5.6. (java)
Installing logstash-core 5.6. (java)
jar dependencies for logstash-core-5.6.-java.gemspec . . .
org.apache.logging.log4j:log4j-slf4j-impl:2.6.:compile
org.apache.logging.log4j:log4j-api:2.6.:compile
org.apache.logging.log4j:log4j-core:2.6.:compile
com.fasterxml.jackson.core:jackson-core:2.9.:compile
com.fasterxml.jackson.core:jackson-databind:2.9.:compile
com.fasterxml.jackson.core:jackson-annotations:2.9.:compile
com.fasterxml.jackson.module:jackson-module-afterburner:2.9.:compile
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.:compile
Fetching logstash-core-plugin-api 2.1. (java)
Installing logstash-core-plugin-api 2.1. (java)
Fetching logstash-codec-plain 3.0.
Installing logstash-codec-plain 3.0.
Fetching rspec-support 3.7.
Installing rspec-support 3.7.
Fetching rspec-core 3.7.
Installing rspec-core 3.7.
Fetching rspec-expectations 3.7.
Installing rspec-expectations 3.7.
Fetching rspec-mocks 3.7.
Installing rspec-mocks 3.7.
Fetching rspec 3.7.
Installing rspec 3.7.
Fetching rspec-wait 0.0.
Installing rspec-wait 0.0.
Fetching logstash-devutils 1.3. (java)
Installing logstash-devutils 1.3. (java)
Using logstash-output-jdbc 5.3. (java) from source at `.`
Fetching parser 2.5.1.0
Installing parser 2.5.1.0
Fetching powerpack 0.1.
Installing powerpack 0.1.
Fetching rainbow 2.2.
Installing rainbow 2.2. with native extensions
Fetching ruby-progressbar 1.9.
Installing ruby-progressbar 1.9.
Fetching unicode-display_width 1.4.
Installing unicode-display_width 1.4.
Fetching rubocop 0.41.
Installing rubocop 0.41.
Bundle complete! Gemfile dependencies, gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from jar-dependencies: if you want to use the executable lock_jars then install ruby-maven gem before using lock_jars $ gem install ruby-maven -v '~> 3.3.11' or add it as a development dependency to your Gemfile gem 'ruby-maven', '~> 3.3.11' if you want to use the executable lock_jars then install ruby-maven gem before using lock_jars $ gem install ruby-maven -v '~> 3.3.11' or add it as a development dependency to your Gemfile gem 'ruby-maven', '~> 3.3.11'
剩下的按官方发布过程来
bundle exec rake install_jars
bundle exec rake pre_release_checks
gem build logstash-output-jdbc.gemspec
日志
bundle exec rake install_jars
jar dependencies for logstash-output-jdbc-5.3.-java.gemspec . . .
com.zaxxer:HikariCP:2.7.:compile
org.apache.logging.log4j:log4j-slf4j-impl:2.6.:compile
bjdeMacBook-Pro:logstash-output-jdbc cclient$ bundle exec rake pre_release_checks
rake aborted!
Don't know how to build task 'pre_release_checks' (see --tasks)
/Users/cclient/.rvm/gems/jruby-9.1.13.0@global/gems/rake-12.3./exe/rake::in `<main>'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli/exec.rb::in `(root)'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli/exec.rb::in `kernel_load'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli/exec.rb::in `run'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli.rb::in `exec'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/vendor/thor/lib/thor/command.rb::in `run'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/vendor/thor/lib/thor/invocation.rb::in `invoke_command'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/vendor/thor/lib/thor.rb::in `dispatch'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli.rb::in `dispatch'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/vendor/thor/lib/thor/base.rb::in `block in start'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/cli.rb::in `start'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./exe/bundle::in `<main>'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/gems/bundler-1.16./lib/bundler/friendly_errors.rb::in `<eval>'
/Users/cclient/.rvm/gems/jruby-9.1.13.0/bin/jruby_executable_hooks::in `<main>'
(See full trace by running task with --trace)
bjdeMacBook-Pro:logstash-output-jdbc cclient$
bjdeMacBook-Pro:logstash-output-jdbc cclient$ gem build logstash-output-jdbc.gemspec
WARNING: license value 'Apache License (2.0)' is invalid. Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
Did you mean 'Apache-2.0'?
WARNING: open-ended dependency on stud (>= ) is not recommended
if stud is semantically versioned, use:
add_runtime_dependency 'stud', '~> 0'
WARNING: open-ended dependency on logstash-codec-plain (>= ) is not recommended
if logstash-codec-plain is semantically versioned, use:
add_runtime_dependency 'logstash-codec-plain', '~> 0'
WARNING: open-ended dependency on jar-dependencies (>= , development) is not recommended
if jar-dependencies is semantically versioned, use:
add_development_dependency 'jar-dependencies', '~> 0'
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: logstash-output-jdbc
Version: 5.3.
File: logstash-output-jdbc-5.3.-java.gem
logstash-output-jdbc-5.3.0-java.gem 便是我们要的
logstash-plugin install logstash-output-jdbc-5.3.0-java.gem
安装完成
编译安装 logstash-output-jdbc的更多相关文章
- 安装logstash+kibana+elasticsearch+redis搭建集中式日志分析平台
安装logstash+kibana+elasticsearch+redis搭建集中式日志分析平台 2014-01-16 19:40:57| 分类: logstash | 标签:logstash ...
- 1、Linux下源码编译安装PostgreSQL
操作系统:Centos7 说明:postgresql必须在postgres用户下初始化数据库和启动,否则报错. PostgreSQL的特性 PostgreSQL是一种几乎可以运行在各种平台上的免费的开 ...
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7. ...
- centos 7.0 编译安装php 7.0.3
php下载页面 http://cn2.php.net/downloads.php 7.0.3多地区下载页面 http://cn2.php.net/get/php-7.0.3.tar.gz/from/a ...
- Redhat环境下编译安装Google Bazel
Redhat环境下编译安装bazel 作者:Jack47 目前Google Bazel没有提供各个操作系统下的二进制安装包,只提供源代码,需要我们自己编译安装,详情可以见我翻译的中文版Google B ...
- centos 7.0 编译安装php 5.6.7
编译安装php参考资料 MySQL PHP API http://dev.mysql.com/doc/apis-php/en/index.html nginx + php +mysql 最简单安装 官 ...
- 记 Mac Pro 系统升级后,编译安装 PHP-5.6.28 / PHP-7.0 报错修复过程
买 Mac Pro 的时候,系统为 OS X 10.11.5,编译 PHP-5.6.21 的时候,也遇到一些坑,安装过程记录如下: Mac Pro 编译安装 PHP 5.6.21 及 问题汇总 后来, ...
- CentOS 7.2.1511编译安装Nginx1.10.1+MySQL5.7.14+PHP7.0.11
准备篇 一.防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.se ...
- CentOS 7.2.1511编译安装Nginx1.10.1+MySQL5.6.33+PHP5.6.26
准备篇 一.防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.se ...
- CentOS 6.6编译安装Nginx1.6.2+MySQL5.6.21+PHP5.6.3
http://www.osyunwei.com/archives/8867.html 一.配置防火墙,开启80端口.3306端口 vi /etc/sysconfig/iptables #编辑防火墙配置 ...
随机推荐
- [极客大挑战 2019]FinalSQL
0x00 知识点 盲注 0x01 解题 根据题目提示盲注,随便点几下找到注入点 发现我们输入^符号成功跳转页面,证明存在注入 1^(ord(substr((select(group_concat(sc ...
- 新iPhone上市会让富士康迎来新一轮的“用工荒”吗?
新iPhone上市,在接下来的几个月内,中国制造会迎来一段非常忙碌或者说忙乱的日子,之所以说忙碌,是在于苹果的订单量常常大得吓人,而之所以说忙乱,则在于连同富士康.和硕.绿点科技等制造业巨头都可能遭遇 ...
- Java执行js加密算法
Java执行js加密算法 今日需求:在后端执行一段加密算法,算法是js写的 明白需求以后疯狂百度.最后发现JDK提供了各种脚本的支持(怪笔者学艺不精,第一次见识到这个库,留下不学无术的泪水),正题开始 ...
- ZOJ 3765 Lights (zju March I)伸展树Splay
ZJU 三月月赛题,当时见这个题目没辙,没学过splay,敲了个链表TLE了,所以回来好好学了下Splay,这道题目是伸展树的第二题,对于伸展树的各项操作有了更多的理解,这题不同于上一题的用指针表示整 ...
- Linux CMD 笔记 & 正则表达式
一.linux bash 1. 进程名查找kill ps -ef | grep xxxx| grep -v grep| cut -c 9-15 | xargs kill -9 2.端口号kill 占用 ...
- 学生信息管理系统java测试报告
package studentinformation; /**姓名 胡海靖 * 学号 20183609 * 班级 信1805-2 */ class ScoreInformation { private ...
- Kafka学习(学习过程记录)
Apache kafka 这,仅是我学习过程中记录的笔记.确定了一个待研究的主题,对这个主题进行全方面的剖析.笔记是用来方便我回顾与学习的,欢迎大家与我进行交流沟通,共同成长.不止是技术. Kafka ...
- RAC,ReactiveSwift
1.创建信号 // 1.通过信号发生器创建(冷信号) let producer = SignalProducer<String, NoError>.init { (observer, _) ...
- 乳草的侵占(BFS)
armer John一直努力让他的草地充满鲜美多汁的而又健康的牧草.可惜天不从人愿,他在植物大战人类中败下阵来.邪恶的乳草已经在他的农场的西北部份占领了一片立足之地. 草地像往常一样,被分割成一个高度 ...
- UVA-10074 最大子矩阵 DP
求出大矩阵里面全为0的最大子矩阵 我自己用的个挫DP写的,感觉写的不是很好,其实可以再优化,DP想法就是以 0 0 到当前 i j 为整体矩阵考虑,当前 i j就是从 i-1 j或者 i,j-1那里最 ...