Github user ijokarumawak commented on the issue:

    https://github.com/apache/nifi/pull/2007
  
    Hi @panelladavide thanks for your contribution!
    
    In order to enable Expression Language, setting expressionLanguageSupported 
to true is not enough. You also need to evaluate the configured EL. Plus, if 
you need to support EL to use FlowFile attribute, you need to pass a FlowFile 
(the incoming FlowFile in most cases) when EL is evaluated.
    
    Specifically, you need to modify changeOwner method:
    - Add EL evaluation like:
         ```
         String owner = 
context.getProperty(REMOTE_OWNER).evaluateAttributeExpressions(flowFile).getValue();
         ```
    - Add FlowFile argument, so that it can be passed to 
`evaluateAttributeExpressions(flowFile)`
    
    
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/PutHDFS.java#L389


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to