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

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

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

    https://github.com/apache/nifi/pull/2007#discussion_r128684447
  
    --- Diff: 
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/PutHDFS.java
 ---
    @@ -386,11 +388,14 @@ public void process(InputStream in) throws 
IOException {
             });
         }
     
    -    protected void changeOwner(final ProcessContext context, final 
FileSystem hdfs, final Path name) {
    +    protected void changeOwner(final ProcessContext context, final 
FileSystem hdfs, final Path name, final FlowFile flowFile) {
             try {
                 // Change owner and group of file if configured to do so
    -            String owner = context.getProperty(REMOTE_OWNER).getValue();
    -            String group = context.getProperty(REMOTE_GROUP).getValue();
    +//            String owner = context.getProperty(REMOTE_OWNER).getValue();
    +//            String group = context.getProperty(REMOTE_GROUP).getValue();
    --- End diff --
    
    Please removed these old lines. We don't have to keep old code unless if 
there's a strong needs.


>  I needed to put some attributes on REMOTE_GROUP and REMOTE_OWNER in the 
> PutHDFS Processor
> ------------------------------------------------------------------------------------------
>
>                 Key: NIFI-4184
>                 URL: https://issues.apache.org/jira/browse/NIFI-4184
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: dav
>
>  I needed to put some attributes on REMOTE_GROUP and REMOTE_OWNER in order to 
> achieve it i put expressionLanguageSupported(true) on the PropertyDescriptor 
> of REMOTE_GROUP and REMOTE_OWNER



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to