Member since
06-18-2018
39
Posts
0
Kudos Received
0
Solutions
08-21-2018
05:26 AM
Used the same regex expression as input directory property value. processor is invalid and getting directory does not exist error.
... View more
08-21-2018
05:05 AM
if i give /homedir/*/inbox/ in listFile processor, processor is showing invalid and giving error "directory does not exist".
... View more
08-21-2018
04:06 AM
@Harald Berghoff inbox does not have any sub folders..we have to scan inbox folder files only. in below case, how to write logic for input directory ? lets assume these folders exists in local system. /homepath/ranga/inbox/ /homepath/krishna/inbox/ /homepath/kaja/inbox/ /homepath/jilebhi/inbox/ /homepath/laddu/inbox/ /homepath/bundhi/inbox/ like 100+ folders are there...i have used multiple listFile processor based on folder size files. lets assume, 3 listFile processors i used in my flow and want to configure perticular folders in listFile processor. in first listFile processor, i want to point (ranga, krishna) folder paths, in second listFile processor, i want to point (kaja, jilebhi) folder paths, in third listFile processor, i want to point (laddu, bundhi) folder paths, can you please suggest me how to achieve above case... Thanks, Rangareddy Y
... View more
08-20-2018
12:58 PM
Thanks for the reply... sorry given wrong directory names..there is no name matching in folder names...in this case, how to give the path..like below /homepath/ranga/inbox/ /homepath/krishna/inbox/ /homepath/kaja/inbox/ /homepath/jilebhi/inbox/ /homepath/laddu/inbox/ /homepath/bundhi/inbox/ like 100+ folders are there...i have used multiple listFile processor based on folder size files. lets assume, 3 listFile processors i used in my flow and want to configure below paths. in first listFile processor, i want to point (ranga, krishna) folder paths, in second listFile processor, i want to point (kaja, jilebhi) folder paths, in third listFile processor, i want to point (laddu, bundhi) folder paths, can you please suggest me how to achieve above case... Thanks, Rangareddy Y
... View more
08-20-2018
12:58 PM
Thanks for the reply... sorry given wrong directory names..there is no name matching in folder names...in this case, how to give the path..like below /homepath/ranga/inbox/ /homepath/krishna/inbox/ /homepath/kaja/inbox/ /homepath/jilebhi/inbox/ /homepath/laddu/inbox/ /homepath/bundhi/inbox/ like 100+ folders are there...i have used multiple listFile processor based on folder size files. lets assume, 3 listFile processors i used in my flow and want to configure below paths. in first listFile processor, i want to point (ranga, krishna) folder paths, in second listFile processor, i want to point (kaja, jilebhi) folder paths, in third listFile processor, i want to point (laddu, bundhi) folder paths, can you please suggest me how to achieve above case... Thanks, Rangareddy Y
... View more
08-20-2018
11:52 AM
Thanks for the reply. sorry, given wrong names..we have customer names like below /homepath/ranga/inbox/ /homepath/reddy/inbox/ /homepath/yenimi/inbox/ /homepath/test1/inbox/ . . . like we have 100+ different folders are there.... there is no common name pattern in customer name...in this case..how to give.. like above, we have 100+ customer folders are there...we are planning to write multiple listFile processor to read files based on income files. In this case, how can we give (a,b,c,d,e,f ) customers in one listFile processor and (g,h,i,j,k,l) in another listFile processor... Thanks, Rangareddy Y
... View more
08-20-2018
09:59 AM
Hi Team, I need to read files from multiple folders. In listFile processor, i have given like below input Directory : / homepath / [customer_*] / inbox / This is causing invalid processor. how to use expression language to ready multiple folder paths. or if i give /homepath/ only input directory, it is reading all the folders along with inbox folder under customer_* directory. local Directory path : /homepath/customer_A/inbox/ /homepath/customer_B/inbox/ /homepath/customer_C/inbox/ /homepath/customer_D/inbox/ can anyone suggest me how to use expression language to define the input directory path in listFile processor. Thanks, Rangareddy Y
... View more
Labels:
- Labels:
-
Apache NiFi
08-20-2018
07:04 AM
Hi Team,
I have folders like below. i want to read files from inbox folder only for all customers (customer_A, customer_B, customer_C). /homepath/customer_A/inbox/
/homepath/customer_A/outbox/
/homepath/customer_A/sentbox/
/homepath/customer_A/recievebox/
/homepath/customer_B/inbox/
/homepath/customer_B/outbox/
/homepath/customer_B/sentbox/
/homepath/customer_B/recievebox/
/homepath/customer_C/inbox/
/homepath/customer_C/outbox/
/homepath/customer_C/sentbox/
/homepath/customer_C/recievebox/
in ListFile processor, can you suggest me how to give multiple customer names and inbox folder name.
if i give /homepath/ in directory property, listFile is listing the files of other folders outbox, sentbox.. Can any one suggest me how to use expression language to give multiple customername and inbox folder in ListFile directory property. Note: there is a chance, in future there could be more customer folders we need to read.
Thanks, Rangareddy Y
... View more
Labels:
- Labels:
-
Apache NiFi
07-17-2018
06:24 AM
Thanks for the reply @Gourav Bhattacharya. Now i started the custom processor. Once jobRunner class starts, it will run continuously. i am not able to stop the process. even i stop custom process, it is not stopping the jobRunner. there is no link between custom processor stop and JobRunner class stop. Please suggest me how to implement stop mechanism in custom processor. if i stop custom processor, it shold stop jobRunner also. Thanks, Rangareddy Y
... View more
07-13-2018
12:18 PM
Hi Folks, I have written one custom java code. i want make that as custom processor. My code has total 4 classes. Client.java SFTPFile.java JobRunner.java ExcelJob.java Client.java class has Main function and it expects input file. as of now we have given hard coded value. like below this job will run continuously once we start mail class. can you help me, how to add this java code to custom processor. My custom processor will need to accept one input property. it will allow us to give input CSV file path.. Once we run that processor, it will take the input csv file and trigger the Client main class. Main class will run continuously. Code written like that. in Below code, we hard coded csv file path. we want to make that as property allow to give path in processor. ------------- public class Client {
public static void main(String[] args) throws SchedulerException { JobRunner job = new JobRunner("D:\\nifi_test\\java_test_nifi_csv_file.csv");
job.run(); } -------------------------rest classes, we used inner. I just created one custom processor as per https://community.hortonworks.com/articles/4318/build-custom-nifi-processor.html but confused, how to copy my code to custom processor. Can you please help me on this. i am attaching my code for reference. Please use attached code and share nar file if possible.sftp.zip Thanks, Rangareddy Y
... View more
Labels:
- Labels:
-
Apache NiFi
- « Previous
-
- 1
- 2
- Next »