[ 
https://issues.apache.org/jira/browse/NIFI-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709304#comment-15709304
 ] 

ASF GitHub Bot commented on NIFI-3095:
--------------------------------------

Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1276#discussion_r90292509
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttp.java
 ---
    @@ -192,17 +201,17 @@ public void setup(ProcessContext context) {
     
         @Override
         public void onTrigger(final ProcessContext context, final 
ProcessSession session) throws ProcessException {
    -        final int batchSize = context.getProperty(BATCH_SIZE).asInteger();
    +        final int batchSize = 
context.getProperty(BATCH_SIZE).evaluateAttributeExpressions().asInteger();
     
             final List<FlowFile> flowFiles = session.get(batchSize);
             if (flowFiles.isEmpty()) {
                 return;
             }
     
             final String id_attribute = 
context.getProperty(ID_ATTRIBUTE).getValue();
    -        final Charset charset = 
Charset.forName(context.getProperty(CHARSET).getValue());
    +        final Charset charset = 
Charset.forName(context.getProperty(CHARSET).evaluateAttributeExpressions().getValue());
    --- End diff --
    
    Charset should be evaluated for each FlowFile like PutElasticsearch does


> PutElasticSearch (2.x Bulk API) - Add expression language support to 
> 'Elasticsearch Hosts' and 'Cluster Name' fields
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3095
>                 URL: https://issues.apache.org/jira/browse/NIFI-3095
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Randy Bovay
>            Assignee: Matt Burgess
>             Fix For: 1.2.0
>
>
> Being able to a) Use Expression Language in the Hoss field, and ClusterName 
> fields.  
> This way we can provide a variable input to the service, and have it differ 
> in our different data centers and environments.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to