[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-08-14 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on NIFI-3590:
---

Commit a1706d12f5bbe824c440a375945dd6038baee4cf in nifi's branch 
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=a1706d1 ]

NIFI-3281 - fix for (S)FTP processors when using EL against FFs

NIFI-3281 - Review - handle completePendingCommand return and added a unit test 
for ListFTP

NIFI-3281 - Review - Added flow file for EL evaluation in other methods and 
added unit test for NIFI-3590

This closes #1974.

Signed-off-by: Koji Kawamura 


> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
> Attachments: BulletinBoard.png, FlowDefinition.png, InputFlowfile 
> Attributes.png, Processor Properties.png
>
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



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


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-07-06 Thread Koji Kawamura (JIRA)

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

Koji Kawamura commented on NIFI-3590:
-

The cause of this issue is the same as NIFI-3281, that the incoming FlowFile is 
not passed to getClient or getChannel methods, then EL is not evaluated as 
expected.

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
> Attachments: BulletinBoard.png, FlowDefinition.png, InputFlowfile 
> Attributes.png, Processor Properties.png
>
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



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


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-03-14 Thread Marek Kovar (JIRA)

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

Marek Kovar commented on NIFI-3590:
---

Maybe I should add that the processor start to work as expected as soon as I've 
replaced the host, port and username values by static values. 

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
> Attachments: BulletinBoard.png, FlowDefinition.png, InputFlowfile 
> Attributes.png, Processor Properties.png
>
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-03-14 Thread Marek Kovar (JIRA)

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

Marek Kovar commented on NIFI-3590:
---

Hi. I've uploaded few screenshots. (btw thank you for your effort)

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
> Attachments: BulletinBoard.png, FlowDefinition.png, InputFlowfile 
> Attributes.png, Processor Properties.png
>
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-03-14 Thread Puspendu Banerjee (JIRA)

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

Puspendu Banerjee commented on NIFI-3590:
-

please attach a couple of screenshot of your processor to depict the 
configuration.

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-03-14 Thread Marek Kovar (JIRA)

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

Marek Kovar commented on NIFI-3590:
---

I don't know the cause, but the function SFTPTransfer.getChannel is called by 
SFTPTransfer.rename is not able to fetch the Hostname property correctly ant 
therefore it's trying to create a new session.

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (NIFI-3590) FetchSFTP Move Completion Strategy Remote Host Properties

2017-03-13 Thread Puspendu Banerjee (JIRA)

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

Puspendu Banerjee commented on NIFI-3590:
-

"Move File" Strategy requires Destination Directory, not a remote host. If I 
have understood correctly, you are trying to move the file to a remote host.

> FetchSFTP Move Completion Strategy Remote Host Properties
> -
>
> Key: NIFI-3590
> URL: https://issues.apache.org/jira/browse/NIFI-3590
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.1.1
> Environment: Debian Wheezy, jdk1.8
>Reporter: Marek Kovar
>  Labels: newbie
>
> There is an problem to use Move Completion strategy with remote host defined 
> using Expression Language.
> Eg. Port number defined using Expression language (${sftp.remote.port}) is 
> fine for the fetch itself, but for the file renaming it's causing following 
> error:
> {quote}
> 2017-03-13 15:58:06,181 ERROR [Timer-Driven Process Thread-6] 
> o.a.nifi.processors.standard.FetchSFTP
> java.lang.NumberFormatException: For input string: ""
> at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_111]
> at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_111]
> at 
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:78)
>  ~[nifi-expression-language-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:400)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.util.SFTPTransfer.rename(SFTPTransfer.java:608)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processors.standard.FetchFileTransfer.onTrigger(FetchFileTransfer.java:316)
>  ~[nifi-standard-processors-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.2.jar:1.1.2]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_111]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_111]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_111]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)