Member since
02-19-2020
22
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 3839 | 04-26-2020 05:43 AM | |
| 8306 | 03-14-2020 10:51 AM |
04-26-2020
05:43 AM
You have to provide full path of your script in "Command Path" Attribute. All the flowfile arguments can be passed in "Command Arguments" Property. In below example, I am considering that I have a shell script created under /tmp directory with the name yourscript.sh This script should have all the logics inside to handle receiving arguments and other logics. Script Content (/tmp/yourscript.sh) #!/bin/bash echo $1 Expected Output: Just print the name of the FlowFile inside the flow file content. You may check this video for complete detail: https://www.youtube.com/watch?v=rUJOS6LT5Jk&t=27s
... View more
04-10-2020
03:39 PM
To all the members who are asking if it is still valid, the answer is yes this seems to be still valid. I have extracted provenance data by connecting to same instance of NiFi rather than having multiple NiFi instance. https://www.youtube.com/watch?v=2v-H3WeaCkc
... View more
03-14-2020
10:51 AM
Refer to this thread for similar question: https://community.cloudera.com/t5/Support-Questions/merge-too-csv-files-in-nifi/m-p/229259#M191116
... View more
03-14-2020
09:38 AM
What you are trying to achieve is can be done using NiFi Lookup Processor. Please explore more on that.
... View more
02-19-2020
09:37 AM
You may use below commands for this. wget http://77.17.6.166/tls/file/nn.csv scp nn.csv username@77.17.6.122:/tls/file/hello.csv
... View more
02-19-2020
09:15 AM
Well you can write a small Unix script to do that. Here are the steps breaukp. Step 1: Get the list of all the databases, commands for that is and redirect the output to any temporary file (e.g. /tmp/databases) hive -e "show databases;" >> /tmp/databases Step 2: Loop through each database to get the list of tables by using "show tables" and redirect the output to temporary file (e.g. /tmp/tables) for f in `cat /tmp/databases` do echo "Database name is $f , Table Names are as below:" hive -e "show tables;" >> /tmp/tables done
... View more