- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NiFi: Cannot get ExecuteProcess run shell command
- Labels:
-
Apache NiFi
Created ‎11-17-2016 05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wanted to be able to execute some hdfs shell commands. However, it gives the following error even for the normal file listing. Can you please suggest?
sh: ls -lrt: No such file or directory
Created ‎11-17-2016 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kumar,
You need to set the processor with the following properties
Command: /bin/ls
Arguments: -lrt
It is better to indicate an absolute path for the command.
If you want to indicate a path (example /my/directory) for your listing, that would be:
Command: /bin/ls
Arguments: -lrt|/my/directory
Because the delimiter is configured with | character based on your screenshot.
Hope this helps.
Created ‎11-17-2016 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kumar,
You need to set the processor with the following properties
Command: /bin/ls
Arguments: -lrt
It is better to indicate an absolute path for the command.
If you want to indicate a path (example /my/directory) for your listing, that would be:
Command: /bin/ls
Arguments: -lrt|/my/directory
Because the delimiter is configured with | character based on your screenshot.
Hope this helps.
Created ‎10-25-2017 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pierre, Can you help me on NIFI. NIFI installed on my windows laptop. I am trying to execute a .sh script which hosted on linux machine. Linux machine i can connect with user id and password. How i can do this using NIFI.
