Loading docs/configuration_options.rst +2 −2 Original line number Diff line number Diff line Loading @@ -5,9 +5,9 @@ Connector ^^^^^^^^^ ``connection.url`` Elasticsearch HTTP connection URL e.g. ``http://eshost:9200``. List of Elasticsearch HTTP connection URLs e.g. ``http://eshost1:9200,http://eshost2:9200``. * Type: string * Type: list * Importance: high ``batch.size`` Loading src/main/java/io/confluent/connect/elasticsearch/ElasticsearchSinkConnectorConfig.java +4 −4 Original line number Diff line number Diff line Loading @@ -48,9 +48,9 @@ public class ElasticsearchSinkConnectorConfig extends AbstractConfig { final String group = "Connector"; int order = 0; configDef .define(CONNECTION_URL_CONFIG, Type.STRING, Importance.HIGH, "Elasticsearch HTTP connection URL e.g. ``http://eshost:9200``.", group, ++order, Width.LONG, "Connection URL") .define(CONNECTION_URL_CONFIG, Type.LIST, Importance.HIGH, "List of Elasticsearch HTTP connection URLs e.g. ``http://eshost1:9200,http://eshost2:9200``.", group, ++order, Width.LONG, "Connection URLs") .define(BATCH_SIZE_CONFIG, Type.INT, 2000, Importance.MEDIUM, "The number of records to process as a batch when writing to Elasticsearch.", group, ++order, Width.SHORT, "Batch Size") Loading Loading @@ -122,6 +122,6 @@ public class ElasticsearchSinkConnectorConfig extends AbstractConfig { } public static void main(String[] args) { System.out.println(CONFIG.toRst()); System.out.println(CONFIG.toEnrichedRst()); } } src/main/java/io/confluent/connect/elasticsearch/ElasticsearchSinkTask.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public class ElasticsearchSinkTask extends SinkTask { if (client != null) { this.client = client; } else { String address = config.getString(ElasticsearchSinkConnectorConfig.CONNECTION_URL_CONFIG); List<String> address = config.getList(ElasticsearchSinkConnectorConfig.CONNECTION_URL_CONFIG); JestClientFactory factory = new JestClientFactory(); factory.setHttpClientConfig(new HttpClientConfig.Builder(address).multiThreaded(true).build()); this.client = factory.getObject(); Loading Loading
docs/configuration_options.rst +2 −2 Original line number Diff line number Diff line Loading @@ -5,9 +5,9 @@ Connector ^^^^^^^^^ ``connection.url`` Elasticsearch HTTP connection URL e.g. ``http://eshost:9200``. List of Elasticsearch HTTP connection URLs e.g. ``http://eshost1:9200,http://eshost2:9200``. * Type: string * Type: list * Importance: high ``batch.size`` Loading
src/main/java/io/confluent/connect/elasticsearch/ElasticsearchSinkConnectorConfig.java +4 −4 Original line number Diff line number Diff line Loading @@ -48,9 +48,9 @@ public class ElasticsearchSinkConnectorConfig extends AbstractConfig { final String group = "Connector"; int order = 0; configDef .define(CONNECTION_URL_CONFIG, Type.STRING, Importance.HIGH, "Elasticsearch HTTP connection URL e.g. ``http://eshost:9200``.", group, ++order, Width.LONG, "Connection URL") .define(CONNECTION_URL_CONFIG, Type.LIST, Importance.HIGH, "List of Elasticsearch HTTP connection URLs e.g. ``http://eshost1:9200,http://eshost2:9200``.", group, ++order, Width.LONG, "Connection URLs") .define(BATCH_SIZE_CONFIG, Type.INT, 2000, Importance.MEDIUM, "The number of records to process as a batch when writing to Elasticsearch.", group, ++order, Width.SHORT, "Batch Size") Loading Loading @@ -122,6 +122,6 @@ public class ElasticsearchSinkConnectorConfig extends AbstractConfig { } public static void main(String[] args) { System.out.println(CONFIG.toRst()); System.out.println(CONFIG.toEnrichedRst()); } }
src/main/java/io/confluent/connect/elasticsearch/ElasticsearchSinkTask.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ public class ElasticsearchSinkTask extends SinkTask { if (client != null) { this.client = client; } else { String address = config.getString(ElasticsearchSinkConnectorConfig.CONNECTION_URL_CONFIG); List<String> address = config.getList(ElasticsearchSinkConnectorConfig.CONNECTION_URL_CONFIG); JestClientFactory factory = new JestClientFactory(); factory.setHttpClientConfig(new HttpClientConfig.Builder(address).multiThreaded(true).build()); this.client = factory.getObject(); Loading