joekiller / logstash-kafka

Kafka plugin for Logstash
Apache License 2.0
206 stars 63 forks source link

install logstash-kafka problems #33

Closed crysisx closed 10 years ago

crysisx commented 10 years ago

use JRuby version 1.7.11, logstash version 1.4.2, kafka version 0.8.1, and scala version 2.8.0

i can not understand Manual Install like this sentence:

From the ./logstash-1.4.0 directory you need to run logstash-kafka's gembag.rb script to install the jruby-kafka library to the logstash's gemset: GEM_HOME=vendor/bundle/jruby/1.9 GEM_PATH= java -jar vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0.4.2/gembag.rb ../logstash-kafka-0.4.2/logstash-kafka.gemspec


first i modify gembag.rb ENV["GEM_HOME"] = target and ENV["GEM_PATH"] = ""

ENV["GEM_HOME"] = vendor/bundle/jruby/1.9 ENV["GEM_PATH"] = java -jar vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0.5.2/gembag.rb ../logstash-kafka-0.5.2/logstash-kafka.gemspec

then run
#chmod +x gembag.rb

./gembag.rb

error

[root@yyx-2 logstash-kafka-0.5.2]# ./gembag.rb ./gembag.rb:7: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '(' ..."GEM_PATH"] = java -jar vendor/jar/jruby-complete-1.7.11.jar... ^ ./gembag.rb:7: no . floating literal anymore; put 0 before dot ...vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka... ^ ./gembag.rb:7: syntax error, unexpected tINTEGER ...ndor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0... ^ ./gembag.rb:7: unknown regexp options - gbag ./gembag.rb:7: syntax error, unexpected tDOT2 ...stash-kafka-0.5.2/gembag.rb ../logstash-kafka-0.5.2/logstash... ^ ./gembag.rb:7: unknown regexp options - lgtah ./gembag.rb:39: syntax error, unexpected kDO_BLOCK, expecting $end deps.each do |dep| ^

why ? how to install the jruby-kafka library to the logstash's gemset?

joekiller commented 10 years ago

Unless you need this for a windows build I strongly suggest you run the make commands mentioned in the readme instead. On Aug 19, 2014 8:33 AM, "crysisx" notifications@github.com wrote:

use JRuby version 1.7.11, logstash version 1.4.2, kafka version 0.8.1, and scala version 2.8.0

i can not understand Manual Install like this sentence:

From the ./logstash-1.4.0 directory you need to run logstash-kafka's gembag.rb script to install the jruby-kafka library to the logstash's gemset: GEM_HOME=vendor/bundle/jruby/1.9 GEM_PATH= java -jar vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0.4.2/gembag.rb

../logstash-kafka-0.4.2/logstash-kafka.gemspec

first i modify gembag.rb ENV["GEM_HOME"] = target and ENV["GEM_PATH"] = ""

ENV["GEM_HOME"] = vendor/bundle/jruby/1.9 ENV["GEM_PATH"] = java -jar vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0.5.2/gembag.rb ../logstash-kafka-0.5.2/logstash-kafka.gemspec

then run

#chmod +x gembag.rb

./gembag.rb

error

[root@yyx-2 logstash-kafka-0.5.2]# ./gembag.rb ./gembag.rb:7: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '(' ..."GEM_PATH"] = java -jar vendor/jar/jruby-complete-1.7.11.jar... ^ ./gembag.rb:7: no . floating literal anymore; put 0 before dot ...vendor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka... ^ ./gembag.rb:7: syntax error, unexpected tINTEGER ...ndor/jar/jruby-complete-1.7.11.jar --1.9 ../logstash-kafka-0... ^ ./gembag.rb:7: unknown regexp options - gbag ./gembag.rb:7: syntax error, unexpected tDOT2 ...stash-kafka-0.5.2/gembag.rb ../logstash-kafka-0.5.2/logstash... ^ ./gembag.rb:7: unknown regexp options - lgtah ./gembag.rb:39: syntax error, unexpected kDO_BLOCK, expecting $end deps.each do |dep| ^

why ? how to install the jruby-kafka library to the logstash's gemset?

— Reply to this email directly or view it on GitHub https://github.com/joekiller/logstash-kafka/issues/33.

AlexRRR commented 10 years ago

@crysisx Did you ever got around this? I have a bunch of Debian servers installed already with logstash, and I wanted to install this manually but hit this wall as well. @joekiller any further advice perhaps?

crysisx commented 10 years ago

you can use puppet to solve, google puppet , puppet can install all The client

joekiller commented 10 years ago

Let me know what version of Debian you are running and I can try to fix the makefile for it. On Oct 28, 2014 7:03 AM, "crysisx" notifications@github.com wrote:

you can use puppet to solve, google puppet , puppet can install all The client

— Reply to this email directly or view it on GitHub https://github.com/joekiller/logstash-kafka/issues/33#issuecomment-60739204 .

AlexRRR commented 10 years ago

@joekiller Thanks for the reply, the packaging would go a long way for our project!

Distributor ID: Debian
Description:    Debian GNU/Linux 7.7 (wheezy)
Release:    7.7
Codename:   wheezy

@crysisx we are already using puppet, which is installing using the elasticsearch created module.Still this needs a package to for it to work. Thanks for the suggestion.