embulk-output-elasticsearch 0.1.5 → 0.1.6

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: 17a43eb01895594c2923a7390d4e8d09a1700cf9
4
- data.tar.gz: c7c96752d024bc7db265dbbae1f6f512f0f040d4
3
+ metadata.gz: a9a377e6e336582cb8ff3d844913b58bad465eb5
4
+ data.tar.gz: f8f2aef37e54cedb0a9d8cb23b11db00ff25d123
5
5
  SHA512:
6
- metadata.gz: 087a8375db096a288f1bab97ce21e3cebee9b8919179284fef981040252c3bf474d5f829704f82da64781214eb18394ffe9068a5b9e5db8c869b4cdae805d746
7
- data.tar.gz: 122ae097b4f1811b58e312040e11a232396e3b029114f55567394d3e1dad1620dd3b8b25718683a623da51e8f6d75fef5a652eef2892c0a2538481fa414731ae
6
+ metadata.gz: 0ec56683e3922d010c4b8de4bcfae73a00191b1af05af98019727d397b49aeb332dc7ab7d3be6ccb479fc224dc95835b99a21a33ed05a3ae92663600d5b9fd5f
7
+ data.tar.gz: e1611e02edf0f0eaa5adcdeb987d6aa25b9f8d08852e1f513eb16efe99ac2a1cdacdaeeace203d505fc0323492baa6ad88ba5a56bc55896cd8392dd12968b977
data/README.md CHANGED
@@ -14,7 +14,8 @@
14
14
  - **index**: index name (string, required)
15
15
  - **index_type**: index type (string, required)
16
16
  - **id**: document id column (string, default is null)
17
- - **bulk_actions**: bulk_actions (int, default is 1000)
17
+ - **bulk_actions**: Sets when to flush a new bulk request based on the number of actions currently added. (int, default is 1000)
18
+ - **bulk_size**: Sets when to flush a new bulk request based on the size of actions currently added. (long, default is 5242880)
18
19
  - **concurrent_requests**: concurrent_requests (int, default is 5)
19
20
 
20
21
  ## Example
@@ -13,7 +13,11 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.5"
16
+ version = "0.1.6"
17
+
18
+ compileJava.options.encoding = 'UTF-8' // source encoding
19
+ sourceCompatibility = 1.7
20
+ targetCompatibility = 1.7
17
21
 
18
22
  dependencies {
19
23
  compile "org.embulk:embulk-core:0.4.0"
@@ -12,6 +12,8 @@ import org.elasticsearch.action.index.IndexRequest;
12
12
  import org.elasticsearch.client.Client;
13
13
  import org.elasticsearch.client.Requests;
14
14
  import org.elasticsearch.client.transport.TransportClient;
15
+ import org.elasticsearch.common.unit.ByteSizeValue;
16
+ import org.elasticsearch.common.unit.ByteSizeUnit;
15
17
  import org.elasticsearch.common.settings.ImmutableSettings;
16
18
  import org.elasticsearch.common.settings.Settings;
17
19
  import org.elasticsearch.common.transport.InetSocketTransportAddress;
@@ -81,6 +83,10 @@ public class ElasticsearchOutputPlugin
81
83
  @ConfigDefault("1000")
82
84
  public int getBulkActions();
83
85
 
86
+ @Config("bulk_size")
87
+ @ConfigDefault("5242880")
88
+ public long getBulkSize();
89
+
84
90
  @Config("concurrent_requests")
85
91
  @ConfigDefault("5")
86
92
  public int getConcurrentRequests();
@@ -192,6 +198,7 @@ public class ElasticsearchOutputPlugin
192
198
  log.warn("Got the error during bulk processing", failure);
193
199
  }
194
200
  }).setBulkActions(task.getBulkActions())
201
+ .setBulkSize(new ByteSizeValue(task.getBulkSize()))
195
202
  .setConcurrentRequests(task.getConcurrentRequests())
196
203
  .build();
197
204
  }
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muga Nishizawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
14
20
  requirement: !ruby/object:Gem::Requirement
15
21
  requirements:
16
22
  - - '>='
17
23
  - !ruby/object:Gem::Version
18
24
  version: '1.0'
19
- name: bundler
20
25
  prerelease: false
21
26
  type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
31
  - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
33
+ version: '10.0'
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
36
  - - '>='
31
37
  - !ruby/object:Gem::Version
32
38
  version: '10.0'
33
- name: rake
34
39
  prerelease: false
35
40
  type: :development
41
+ - !ruby/object:Gem::Dependency
42
+ name: test-unit
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - '>='
45
+ - - ~>
39
46
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
47
+ version: 3.0.2
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
50
  - - ~>
45
51
  - !ruby/object:Gem::Version
46
52
  version: 3.0.2
47
- name: test-unit
48
53
  prerelease: false
49
54
  type: :development
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 3.0.2
55
55
  description: Elasticsearch output plugin is an Embulk plugin that loads records to Elasticsearch read by any input plugins. Search the input plugins by "embulk-input" keyword.
56
56
  email:
57
57
  - muga.nishizawa@gmail.com
@@ -72,7 +72,7 @@ files:
72
72
  - src/main/resources/META-INF/services/org.embulk.spi.Extension
73
73
  - src/test/java/org/embulk/output/TestElasticsearchOutputPlugin.java
74
74
  - classpath/elasticsearch-1.4.2.jar
75
- - classpath/embulk-output-elasticsearch-0.1.5.jar
75
+ - classpath/embulk-output-elasticsearch-0.1.6.jar
76
76
  - classpath/lucene-analyzers-common-4.10.2.jar
77
77
  - classpath/lucene-core-4.10.2.jar
78
78
  - classpath/lucene-grouping-4.10.2.jar