mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
use refactored jar loading for embedded elasticsearch loading
This commit is contained in:
parent
6271cbf8fb
commit
d306b0c1af
1 changed files with 3 additions and 3 deletions
|
@ -241,9 +241,9 @@ class LogStash::Outputs::ElasticSearch < LogStash::Outputs::Base
|
|||
:protocol => @protocol)
|
||||
|
||||
if @embedded
|
||||
if RUBY_PLATFORM != "java"
|
||||
raise LogStash::ConfigurationError, "The 'embedded => true' setting is only valid for the elasticsearch output under JRuby. You are running #{RUBY_DESCRIPTION}"
|
||||
end
|
||||
LogStash::Environment.assess_jruby!(LogStash::ConfigurationError, "The 'embedded => true' setting is only valid for the elasticsearch output under JRuby. You are running #{RUBY_DESCRIPTION}")
|
||||
LogStash::Environment.load_elasticsearch_jars!
|
||||
|
||||
# Default @host with embedded to localhost. This should help avoid
|
||||
# newbies tripping on ubuntu and other distros that have a default
|
||||
# firewall that blocks multicast.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue