Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error in Nifi ExecuteProcess Processor - Host Key Verification Failed

Highlighted

Error in Nifi ExecuteProcess Processor - Host Key Verification Failed

I am trying to do a POC using ExecuteProcess to start a .sh file on a remote server. Right now I am just trying to move a file on remote server from one location to another. But I am getting an error (Host Key Verification Failed) on the Nifi Processor. I am able to do the same via terminal on host machine (on which Nifi is installed and running). What could be the issue here? I followed the steps mentioned here. Help!

ssh -i user@hostname 'mv ~/folder1/test.txt ~/folder2/'  <-- I am able to do this successfully on terminal. 

ExecuteProcess Properties :

Command: ssh 
Command Arguments: -i "~/.ssh" user@hostname 'mv ~/folder1/test.txt ~/folder2/' 
Batch Duration : No value set 
Redirect Error Stream : false 
Working Directory : No value set 
Argument Delimiter : No value set
2 REPLIES 2

Re: Error in Nifi ExecuteProcess Processor - Host Key Verification Failed

@Chandan Singh

Did you try using the ExecuteStream processor mentioned by @Dan Chaffelson?

Re: Error in Nifi ExecuteProcess Processor - Host Key Verification Failed

New Contributor

did you try from a terminal with user nifi ?

sudo -u nifi ssh blabla ?