Skip to content
Browse files

change option name more suitable

  • Loading branch information...
1 parent e2cfeb3 commit 0b9bd908534b0064d1a3bcf05f2b57eb571646ce @tagomoris tagomoris committed Mar 11, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/fluent/plugin/out_webhdfs.rb
  2. +1 −1 test/plugin/test_out_webhdfs.rb
View
4 lib/fluent/plugin/out_webhdfs.rb
@@ -13,7 +13,7 @@ class Fluent::WebHDFSOutput < Fluent::TimeSlicedOutput
config_param :port, :integer, :default => 50070
config_param :namenode, :string, :default => nil # host:port
- config_param :ignore_init_error, :bool, :default => false
+ config_param :ignore_start_check_error, :bool, :default => false
include Fluent::Mixin::ConfigPlaceholders
@@ -81,7 +81,7 @@ def start
$log.info "webhdfs connection confirmed: #{@namenode_host}:#{@namenode_port}"
rescue
$log.error "webdhfs check request failed!"
- raise unless @ignore_init_error
+ raise unless @ignore_start_check_error
end
end
View
2 test/plugin/test_out_webhdfs.rb
@@ -18,7 +18,7 @@ def test_configure
assert_equal '%Y%m%d', d.instance.time_slice_format
assert_equal false, d.instance.httpfs
assert_nil d.instance.username
- assert_equal false, d.instance.ignore_init_error
+ assert_equal false, d.instance.ignore_start_check_error
assert_equal true, d.instance.output_include_time
assert_equal true, d.instance.output_include_tag

0 comments on commit 0b9bd90

Please sign in to comment.
Something went wrong with that request. Please try again.