Hi,
sorry. the config is pretty vanilla. The version is logstash 2.1 with webhdfs pulled from github (was not included in the "all-plugins" version).
the error message was
webhdfs write caused an exception: {"RemoteException":{"message":"Append failed for file:
\/services\/logstash\/test.log, error: No such file or directory
(2)","exception":"IOException","javaClassName":"java.io.IOException"}}. Maybe you should increase retry_interval
or reduce number of workers. Retrying... {:level=>:warn, :file=>"logstash/outputs/webhdfs.rb", :line=>"191",
:method=>"write_data"}
until I created the file with "hadoop dfs -touchz /services/logstash/test.log". Then it worked.
input {
log4j {
mode => server
host => "0.0.0.0"
port => "4560"
type => "log4j"
}
}
output {
webhdfs {
host => "355.305.404.230"
port => "14000"
path => "/services/logstash/test.log"
user => "hadoop"
}