fluent-plugin-hbase 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -8,3 +8,7 @@ Release 0.1.1. - 2012/12/11
8
8
 
9
9
  * Stay with fluentd's well-known configuration keys for tag and time logging
10
10
  * Support for logging each event's time in formatted text
11
+
12
+ Release 0.1.2 - 2012/12/11
13
+
14
+ * Fixed the issue that had been preventing to the HBase table creation on the plugin's startup
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -43,11 +43,11 @@ module Fluent
43
43
  @table = MassiveRecord::Wrapper::Table.new(@conn, @hbase_table.intern)
44
44
 
45
45
  unless @table.exists?
46
- columns = [@tag_column_name, @time_column_name] + @mapping.values
46
+ columns = ([@tag_column_name, @time_column_name] + @mapping.values).reject(&:nil?)
47
47
  column_families = columns.map {|column_family_with_column|
48
48
  column_family, column = column_family_with_column.split(":")
49
49
 
50
- if column.nil?
50
+ if column.nil? or column_family.nil?
51
51
  raise <<MESSAGE
52
52
  Unexpected format for column name: #{column_family_with_column}
53
53
  Each destination column in the 'record_to_columns_mapping' option
@@ -58,6 +58,7 @@ MESSAGE
58
58
 
59
59
  column_family.intern
60
60
  }
61
+ column_families.uniq!
61
62
 
62
63
  @table.create_column_families(column_families)
63
64
  @table.save
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-hbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: -479372999590250441
94
+ hash: 396448423919558363
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -479372999590250441
103
+ hash: 396448423919558363
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.24