Hello You should certainly be able to execute a local script (local to the server NiFi is running on). That local script can execute remote commands (on systems other than NiFi is on). In this manner NiFi usage would be basically as a cron tool which isn't its primary purpose but is an edge case folks use at times.
Thanks joe On Mon, Jul 11, 2016 at 2:26 AM, Gadiputi, Sravani <[email protected]> wrote: > Hi, > > > > Any information regarding below questions. > > > > > > Thanks, > > Sravani > > > > From: Gadiputi, Sravani [mailto:[email protected]] > Sent: Friday, July 08, 2016 2:05 PM > To: [email protected] > Subject: ExecuteProcess usecases > > > > > WARNING: Kindly be aware the Sender Address on this mail may be forged. It > appears to be from capgemini.com but the message has been received from a > server outside Capgemini Group perimeter. User discretion is necessary > before performing actions mentioned in this mail. > > Hi, > > > > I need more information on ExecuteProcess,below are the questions. > > > > 1) What is the scope of the ExecuteProcess processor in Nifi? > > 2) Can we use ExecuteProcess to execute shell script in remote server. > > For example I wanted to delete the files in hadoop system file path using > Nifi. so I have taken ExecuteProcess. > > > > Filename:test_del.sh > > Path:/tmp/test_del.sh > > Content of the .sh file is: “hadoop fs –rm /usr/dev/test_files/*” > > Note: Nifi is installed in same instance. > > > > In the property section of ExecuteProcess: > > Command: bash > > Command Arguments: :/tmp/test_del.sh > > > > So I can achieve execution of .sh file in this way, lets say in the local > machine. > > > > Here my requirement is > > None of those scripts are in the server where nifi is running. And, we > cannot install nifi in any other place. > > So how to do it for executing the shell script in remote machine . > > Is it possible with only ExecuteProcess or we can also use other processors > to achieve this? > > Please help me in this.. > > > > Thanks in advance!! > > > > > > Regards, > > Sravani > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message.
