logstash[5.6.2] 日志报错HttpClientBuilder not found[HELP]
Logstash | 作者 joowingelk | 发布于2017年09月30日 | 阅读数:4113
logstash5.6.2版本
启动之后,有如下报错,查了好久查不出来原因
[2017-09-30T17:35:37,723][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apa
che/configuration"}
[2017-09-30T17:35:44,280][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/
configuration"}
[2017-09-30T17:35:44,286][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apa
che/configuration"}
[2017-09-30T17:35:44,564][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x58d972ab @namespaced_metric=#
<LogStash::Instrument::NamespacedMetric:0x373413b4 @metric=#<LogStash::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed8
8 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x750897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structur
ed_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines,
:main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\"]>, @metric=#<LogStash::Instrument::NamespacedMetric:0x6219776e @metric=#<LogStas
h::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed88 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x75
0897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:
0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x5
65cedc @logger=#<Java::OrgApacheLoggingLog4jCore::Logger:0x617bc413>>, @out_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipel
ines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: out value: 0, @in_counter=LogStash::Instrument::MetricType:
:Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: in value: 0, @strateg
y=#<LogStash::OutputDelegatorStrategies::Shared:0x69eca5f1 @output=<LogStash::Outputs::ElasticSearch hosts=>[//192.168.10.243:9200], index=>\"joowing-pomelo-production-%{+YYYY.MM.dd}\", document_type=>\"file\", id=>\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_a4baa4ed-f85b-45b8-96f8-b3c49d21a7eb\", enable_metric=>true, charset=>\"UTF-8\">, workers=>1, manage_template=>true, template_name=>\"logstash\", template_overwrite=>false, idle_flush_time=>1, doc_as_upsert=>false, script_type=>\"inline\", script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>\"index\", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>>, @id=\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", @time_metric=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: duration_in_millis value: 0, @metric_events=#<LogStash::Instrument::NamespacedMetric:0x4254853e @metric=#<LogStash::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed88 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x750897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"HttpClientBuilder not found in packages org.apache.http.client.methods, org.apache.http.client.entity, org.apache.http.client.config, org.apache.http.config, org.apache.http.conn.socket, org.apache.http.impl, org.apache.http.impl.client, org.apache.http.impl.conn, org.apache.http.impl.auth, org.apache.http.entity, org.apache.http.message, org.apache.http.params, org.apache.http.protocol, org.apache.http.auth, java.util.concurrent, org.apache.http.client.protocol, org.apache.http.conn.ssl, java.security.cert, java.security.spec, java.security, org.apache.http.client.utils; last error: cannot load Java class org.apache.http.client.utils.HttpClientBuilder"}
启动之后,有如下报错,查了好久查不出来原因
[2017-09-30T17:35:37,723][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apa
che/configuration"}
[2017-09-30T17:35:44,280][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/
configuration"}
[2017-09-30T17:35:44,286][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apa
che/configuration"}
[2017-09-30T17:35:44,564][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x58d972ab @namespaced_metric=#
<LogStash::Instrument::NamespacedMetric:0x373413b4 @metric=#<LogStash::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed8
8 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x750897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structur
ed_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines,
:main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\"]>, @metric=#<LogStash::Instrument::NamespacedMetric:0x6219776e @metric=#<LogStas
h::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed88 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x75
0897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:
0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x5
65cedc @logger=#<Java::OrgApacheLoggingLog4jCore::Logger:0x617bc413>>, @out_counter=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipel
ines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: out value: 0, @in_counter=LogStash::Instrument::MetricType:
:Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: in value: 0, @strateg
y=#<LogStash::OutputDelegatorStrategies::Shared:0x69eca5f1 @output=<LogStash::Outputs::ElasticSearch hosts=>[//192.168.10.243:9200], index=>\"joowing-pomelo-production-%{+YYYY.MM.dd}\", document_type=>\"file\", id=>\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_a4baa4ed-f85b-45b8-96f8-b3c49d21a7eb\", enable_metric=>true, charset=>\"UTF-8\">, workers=>1, manage_template=>true, template_name=>\"logstash\", template_overwrite=>false, idle_flush_time=>1, doc_as_upsert=>false, script_type=>\"inline\", script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>\"index\", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>>, @id=\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", @time_metric=LogStash::Instrument::MetricType::Counter - namespaces: [:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events] key: duration_in_millis value: 0, @metric_events=#<LogStash::Instrument::NamespacedMetric:0x4254853e @metric=#<LogStash::Instrument::Metric:0x207f2d6a @collector=#<LogStash::Instrument::Collector:0x6657ed88 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x750897c3 @store=#<Concurrent::Map:0x00000000064470 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0x62b69365>, @fast_lookup=#<Concurrent::Map:0x00000000064474 entries=57 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"4b8aedac4b1e16647504fe0dfcde3d12b7a9a5d2-3\", :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"HttpClientBuilder not found in packages org.apache.http.client.methods, org.apache.http.client.entity, org.apache.http.client.config, org.apache.http.config, org.apache.http.conn.socket, org.apache.http.impl, org.apache.http.impl.client, org.apache.http.impl.conn, org.apache.http.impl.auth, org.apache.http.entity, org.apache.http.message, org.apache.http.params, org.apache.http.protocol, org.apache.http.auth, java.util.concurrent, org.apache.http.client.protocol, org.apache.http.conn.ssl, java.security.cert, java.security.spec, java.security, org.apache.http.client.utils; last error: cannot load Java class org.apache.http.client.utils.HttpClientBuilder"}
0 个回复