Member since 
    
	
		
		
		06-08-2017
	
	
	
	
	
	
	
	
	
	
	
	
	
	
			
      
                1049
            
            
                Posts
            
        
                518
            
            
                Kudos Received
            
        
                312
            
            
                Solutions
            
        My Accepted Solutions
| Title | Views | Posted | 
|---|---|---|
| 11187 | 04-15-2020 05:01 PM | |
| 7084 | 10-15-2019 08:12 PM | |
| 3084 | 10-12-2019 08:29 PM | |
| 11381 | 09-21-2019 10:04 AM | |
| 4284 | 09-19-2019 07:11 AM | 
			
    
	
		
		
		04-01-2018
	
		
		02:40 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							@Mark McGowan Does the answer helped to resolve your issue, Click on Accept button below to accept the answer,to close the thread and it would be great help to Community users to find solution quickly for these kind of issues. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		04-03-2018
	
		
		08:52 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
	
		1 Kudo
		
	
				
		
	
		
					
							 Hello everyone !  I tried with Embedded schema, like Shu mentioned, and now everything is working perfectly. I feel so bad that it was so easy and simple, just few processors...anyway, thank you for your time and help, I really appreciate it !    Kind regards,  Stefan 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		04-02-2018
	
		
		06:26 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							@Vivek Singh Does the answer helped, then please Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		03-28-2018
	
		
		08:04 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
	
		1 Kudo
		
	
				
		
	
		
					
							 @Tony van Buuren  van Heijst
  Enclose your regex in parentheses() in Extract text processor because we need to have at least one capture group in extract text processor.  Extract text processor Configs:-      plex  (.*)  .  If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		04-01-2018
	
		
		04:18 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							@Chen Yimu Did the answer help in the resolution of your query? Please close the thread by marking the answer as Accepted! 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		03-25-2018
	
		
		06:23 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
	
		4 Kudos
		
	
				
		
	
		
					
							 @John Smith   Extract the b attribute value before using it in Jolt transform by using EvaluateJson path processor and keep destination as flowfile-attibute.Then add your b attribute as a new property in evaluatejson path processor once we add b attribute to the flowfile then your jolt transform will apply substring function on the b attribute.  EvaluateJsonPath configs:-      Example:-  for testing i have added b attribute value as default in my jolt transform      Jolt spec testing:-      As you can see at right below corner we are having output json content with c key having e as value.  Let us know if you are having issues/questions..!! 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		03-25-2018
	
		
		05:28 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @Pramod Kalvala  In NiFi we are having Count Text processor which will adds the number of lines,non empty lines,characters in the text file.  Count text processor write Attributes:-     Name  Description    text.line.count  The number of lines of text present in the FlowFile content    text.line.nonempty.count  The number of lines of text (with at least one non-whitespace character) present in the original FlowFile    text.word.count  The number of words present in the original FlowFile    text.character.count  The number of characters (given the specified character encoding) present in the original FlowFile     Example:-  If  you are having content of the flowfile as below and we are having empty line as second line in the flowfile.      Once we feed this content to the Count text processor having below configs:-  Count Lines   true   Count Non-Empty Lines   true   Count Words   true   Count Characters   true   Split Words on Symbols   true 
  Output Flowfile Attributes:-      count text processor has been added line.count,nonempty lines count, character count to the flowfile.  (or)  By using ExecuteStream command processor we can run wc -l command to get the number of lines in the text document.  (or)   By using query record processor to get lines in the flowfile content  Useful links for Query record processor  https://community.hortonworks.com/articles/140183/counting-lines-in-text-files-with-nifi.html  https://community.hortonworks.com/articles/146096/counting-lines-in-text-files-with-nifi-part-2.html  If you are using QueryDatabase table,execute sql processors then we will have row.count attribute associated with the output flowfile from the which will give the number of rows has been fetched from the source.  To Convert Content as Flowfile Attribute:-  for this use case we can use Extract text processor to extract the content and store as flowfile attribute  Extract text Configs:-      Add new property with the regex (.*) i.e capture all the content and keep the content as flowfile attribute name data.  change the Enable DOTALL Mode to true if your flowfile content having new lines in it.  Most important properties are     Maximum Buffer Size  1 MB  Specifies the maximum amount of data to buffer (per file) in order to apply the regular expressions. Files larger than the specified maximum will not be fully evaluated.    Maximum Capture Group Length  1024  Specifies the maximum number of characters a given capture group value can have. Any characters beyond the max will be truncated.     You have to increase these properties values in order of your flowfile size to get all the content of the flow file into attribute.  It's not recommended to extract all the contents and keep them as attributes, as the attributes are kept in-memory.  please refer to below link for nifi best practices and deeper    https://nifi.apache.org/docs/nifi-docs/html/nifi-in-depth.html#DeeperView  https://nifi.apache.org/docs/nifi-docs/html/nifi-in-depth.html#best-practice 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		06-03-2018
	
		
		02:30 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Hello @Shu  .I think you are giving me a reply based on subject line but now problem is as below.  In above screen shot you can see the setting for Monitor activity with this setting my jobs are running in productions everyday but problem occurred when Querydatabase table processor triggered in different instance and monitor activity processor triggered on different instance and in this case since data is there so at 9 am Querydatabase table processor produce one flow file and its loaded to table and now at 10 Am monitor activity also gets executed and its generate one flow file and again my table got loaded with 0 count data .Can we restrict both processor can run on same instance or any other solution you have for this issue.  Monitor activity is generating flow file in both case when querydatabses table processor is generatng flow file in cases of delta data and if querydatabses table processor is not generatngflow file in cases of delta data. We need flow file in case of when querydatabses table processor is not generatngflow file .  Regards,  Shantanu 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		04-18-2018
	
		
		12:02 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 @Shantanu kumar   If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		03-24-2018
	
		
		04:50 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							@Mark McGowan You can do merging by using Correlation attribute name property in merge content processor, to use this property we cannot use convert record processor because each flowfile we need to keep date,hour attrbiutes as one attribute and use the attribute in merge content correlation attribute name. Then the merge content processor will merge with same attribute flowfiles into one flowfile.  Please refer to below links for more details about correlation attribute usage  https://community.hortonworks.com/questions/161827/mergeprocessor-nifi-using-the-correlation-attribut.html  https://community.hortonworks.com/questions/55926/using-the-mergecontent-processor-in-nifi-can-i-use.html  https://community.hortonworks.com/questions/87178/merge-fileflow-files-based-on-time-rather-than-siz.html  For reference Convert record xml  178086-json-to-csv.xml 
						
					
					... View more