Hi,
I have configured webhdfs output as show below. I'm getting error that says I don't have gssapi conf webhdfs output.
Pipeline:
input {
beats {
port => 5044
}
}filter {
}output {
webhdfs {
host => "hdfsserver"
port => 8020
path => "/user/hadoop/elktest/helloworld.log"
user => "hadoop"
use_kerberos_auth => true
kerberos_keytab => "/opt/hadoop/hadoop.keytab"
}
}
Error:
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | [2019-07-29T07:15:23,530][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, >"pipeline.batch.delay"=>50}
hdfs_logstash.1.ggkrawhiqo23@SIDCAPASPARK2 | start at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:176
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | warning: thread "[main]-pipeline-manager" terminated with exception (report_on_exception is true):
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | prepare_client at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-webhdfs 3.0.6/lib/logstash/outputs/webhdfs_helper.rb:27
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-webhdfs-3.0.6/lib/logstash/outputs/webhdfs.rb:153
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | LoadError: no such file to load -- gssapi
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register at org/logstash/config/ir/compiler/OutputStrategyExt.java:106
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | require at org/jruby/RubyKernel.java:987
hdfs_logstash.1.ggkrawhiqo23@SIDCAPASPARK2 | [2019-07-29T07:14:58,659][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | require at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65
hdfs_logstash.1.ggkrawhiqo23@SIDCAPASPARK2 | [2019-07-29T07:14:58,718][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) no such file to load -- gssapi
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register at org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:48
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | prepare_client at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-webhdfs-3.0.6/lib/logstash/outputs/webhdfs_helper.rb:27
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register_plugin at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:259
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-webhdfs-3.0.6/lib/logstash/outputs/webhdfs.rb:153
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register at org/logstash/config/ir/compiler/OutputStrategyExt.java:106
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | each at org/jruby/RubyArray.java:1792
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register at org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:48
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register_plugin at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:259
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | maybe_setup_out_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:611
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | each at org/jruby/RubyArray.java:1792
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | start_workers at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:280
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | run at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:217
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | maybe_setup_out_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:611
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | start at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:176
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | start_workers at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:280
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | run at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:217
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | start at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:176
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | [2019-07-29T07:16:13,587][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}
hdfs_logstash.1.xt1qpca4z7rn@SIDCAPASPARK2 | [2019-07-29T07:16:13,672][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) no such file to load -- gssapi
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | [2019-07-29T07:15:23,801][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}
hdfs_logstash.1.0ip85vorm1yx@SIDCAPASPARK2 | [2019-07-29T07:15:23,908][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) no such file to load -- gssapi