logstash-output-webhdfs 0.1.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d8c5f3670364dd6a301dfdf281b8265a7020a2d
4
- data.tar.gz: e6abb77dd5507ae0d1388ab28989baaf4d517d8d
3
+ metadata.gz: ff1533394dfeeec91e07f2ca6d3e9fcc9c6a1315
4
+ data.tar.gz: 2189f5e6c1830228cc475b80d554adef04d68f22
5
5
  SHA512:
6
- metadata.gz: 1f27095ed386f4984557345179bae49757312fbbd8e45fd1070ca1c24f0b3aac4deaaa8303aa279248a406f895260ba39067979548ff0e889b74df1f282a11bc
7
- data.tar.gz: 89dd5efbb67f0ec3a2ce61446fe9962661bfb8933ceb94e792d6669b14e01b518658e266eb9f2acf6755761efe360c6c15bc8cabf7d08caca2128f31ea5f1c4f
6
+ metadata.gz: d207b343db96acbc172d994a230866925b1446ff3992bc22f7e02f89bad0ec1b896aa6eea754a37c27d74a1efaa703083004f9bd837a85188d968ba1c81eed0f
7
+ data.tar.gz: 215195cc2cade02edc5b58f0ca96f5aaa0598e18e3d13a947704bf5b72517e6266234a714abbcc97daedf160866bf71aefcac836bbdd20820eca36a11492faa9
data/CHANGELOG.md CHANGED
@@ -1,2 +1,7 @@
1
+ ## 2.0.0
2
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
+ instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
+ - Dependency on logstash-core update to 2.0
5
+
1
6
  ## 0.1.0
2
7
  * First version of the webhdfs plugin output
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Logstash Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
4
 
5
5
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
6
 
7
7
  ## Documentation
8
8
 
9
- Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
10
 
11
11
  - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
- - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
13
 
14
14
  ## Need Help?
15
15
 
@@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
83
 
84
84
  It is more important to the community that you are able to contribute.
85
85
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -139,11 +139,11 @@ class LogStash::Outputs::WebHdfs < LogStash::Outputs::Base
139
139
  end # def register
140
140
 
141
141
  def receive(event)
142
- return unless output?(event)
142
+
143
143
  buffer_receive(event)
144
144
  end # def receive
145
145
 
146
- def flush(events=nil, teardown=false)
146
+ def flush(events=nil, close=false)
147
147
  return if not events
148
148
  newline = "\n"
149
149
  output_files = Hash.new { |hash, key| hash[key] = "" }
@@ -198,7 +198,7 @@ class LogStash::Outputs::WebHdfs < LogStash::Outputs::Base
198
198
  end
199
199
  end
200
200
 
201
- def teardown
201
+ def close
202
202
  buffer_flush(:final => true)
203
- end # def teardown
203
+ end # def close
204
204
  end # class LogStash::Outputs::WebHdfs
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-webhdfs'
4
- s.version = '0.1.0'
4
+ s.version = '2.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Plugin to write events to hdfs via webhdfs."
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency 'logstash-core', '>= 1.4.0', '< 2.0.0'
23
+ s.add_runtime_dependency "logstash-core", ">= 2.0.0.snapshot", "< 3.0.0"
24
24
  s.add_runtime_dependency 'webhdfs'
25
25
  s.add_runtime_dependency 'snappy'
26
26
  s.add_development_dependency 'logstash-devutils'
@@ -22,7 +22,7 @@ describe LogStash::Outputs::WebHdfs, :integration => true do
22
22
 
23
23
  let(:client) { WebHDFS::Client.new(host, port, user) }
24
24
 
25
- describe "register and teardown" do
25
+ describe "register and close" do
26
26
 
27
27
  it 'should register with default values' do
28
28
  expect { subject.register }.to_not raise_error
@@ -44,7 +44,7 @@ describe LogStash::Outputs::WebHdfs, :integration => true do
44
44
  before(:each) do
45
45
  subject.register
46
46
  subject.receive(event)
47
- subject.teardown
47
+ subject.close
48
48
  end
49
49
 
50
50
  it 'should use the correct filename pattern' do
@@ -101,7 +101,7 @@ describe LogStash::Outputs::WebHdfs, :integration => true do
101
101
  for _ in 0...500
102
102
  subject.receive(event)
103
103
  end
104
- subject.teardown
104
+ subject.close
105
105
  end
106
106
 
107
107
  context "when using no compression" do
metadata CHANGED
@@ -1,119 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-webhdfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Björn Puttmann, loshkovskyi, Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-02 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 1.4.0
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: 2.0.0
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
16
  - - '>='
26
17
  - !ruby/object:Gem::Version
27
- version: 1.4.0
18
+ version: 2.0.0.snapshot
28
19
  - - <
29
20
  - !ruby/object:Gem::Version
30
- version: 2.0.0
21
+ version: 3.0.0
22
+ name: logstash-core
31
23
  prerelease: false
32
24
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: webhdfs
35
25
  version_requirements: !ruby/object:Gem::Requirement
36
26
  requirements:
37
27
  - - '>='
38
28
  - !ruby/object:Gem::Version
39
- version: '0'
29
+ version: 2.0.0.snapshot
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.0
33
+ - !ruby/object:Gem::Dependency
40
34
  requirement: !ruby/object:Gem::Requirement
41
35
  requirements:
42
36
  - - '>='
43
37
  - !ruby/object:Gem::Version
44
38
  version: '0'
39
+ name: webhdfs
45
40
  prerelease: false
46
41
  type: :runtime
47
- - !ruby/object:Gem::Dependency
48
- name: snappy
49
42
  version_requirements: !ruby/object:Gem::Requirement
50
43
  requirements:
51
44
  - - '>='
52
45
  - !ruby/object:Gem::Version
53
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - '>='
57
51
  - !ruby/object:Gem::Version
58
52
  version: '0'
53
+ name: snappy
59
54
  prerelease: false
60
55
  type: :runtime
61
- - !ruby/object:Gem::Dependency
62
- name: logstash-devutils
63
56
  version_requirements: !ruby/object:Gem::Requirement
64
57
  requirements:
65
58
  - - '>='
66
59
  - !ruby/object:Gem::Version
67
60
  version: '0'
61
+ - !ruby/object:Gem::Dependency
68
62
  requirement: !ruby/object:Gem::Requirement
69
63
  requirements:
70
64
  - - '>='
71
65
  - !ruby/object:Gem::Version
72
66
  version: '0'
67
+ name: logstash-devutils
73
68
  prerelease: false
74
69
  type: :development
75
- - !ruby/object:Gem::Dependency
76
- name: logstash-codec-line
77
70
  version_requirements: !ruby/object:Gem::Requirement
78
71
  requirements:
79
72
  - - '>='
80
73
  - !ruby/object:Gem::Version
81
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
82
76
  requirement: !ruby/object:Gem::Requirement
83
77
  requirements:
84
78
  - - '>='
85
79
  - !ruby/object:Gem::Version
86
80
  version: '0'
81
+ name: logstash-codec-line
87
82
  prerelease: false
88
83
  type: :development
89
- - !ruby/object:Gem::Dependency
90
- name: logstash-codec-json
91
84
  version_requirements: !ruby/object:Gem::Requirement
92
85
  requirements:
93
86
  - - '>='
94
87
  - !ruby/object:Gem::Version
95
88
  version: '0'
89
+ - !ruby/object:Gem::Dependency
96
90
  requirement: !ruby/object:Gem::Requirement
97
91
  requirements:
98
92
  - - '>='
99
93
  - !ruby/object:Gem::Version
100
94
  version: '0'
95
+ name: logstash-codec-json
101
96
  prerelease: false
102
97
  type: :development
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
103
  description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
104
104
  email: b.puttmann@dbap.de
105
105
  executables: []
106
106
  extensions: []
107
107
  extra_rdoc_files: []
108
108
  files:
109
- - .gitignore
110
109
  - CHANGELOG.md
111
110
  - CONTRIBUTORS
112
111
  - Gemfile
113
112
  - LICENSE
114
113
  - NOTICE.TXT
115
114
  - README.md
116
- - Rakefile
117
115
  - lib/logstash/outputs/webhdfs.rb
118
116
  - lib/logstash/outputs/webhdfs_helper.rb
119
117
  - logstash-output-webhdfs.gemspec
@@ -141,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
139
  version: '0'
142
140
  requirements: []
143
141
  rubyforge_project:
144
- rubygems_version: 2.1.9
142
+ rubygems_version: 2.4.8
145
143
  signing_key:
146
144
  specification_version: 4
147
145
  summary: Plugin to write events to hdfs via webhdfs.
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- *.lock
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- @files=[]
2
-
3
- task :default do
4
- system("rake -T")
5
- end
6
-
7
- require "logstash/devutils/rake"