Member since
01-26-2022
82
Posts
2
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
700 | 09-08-2022 04:02 AM | |
1657 | 07-27-2022 03:29 AM | |
1222 | 06-28-2022 09:43 PM | |
1222 | 06-27-2022 08:42 AM | |
12677 | 06-16-2022 10:29 PM |
09-06-2022
01:13 PM
Hi,
Please i need your kind help.
SCENERIO: INSERT CONTENT OF AN XML FILE AS A FIELD INTO A DATABASE
- I am trying to read the content of an xml file into a flowfile attribute
- I want to use the attribute as variable in sql query statement to insert the content into a DB
ISSUES:
- I tried to use both Xpath & Xquery but no success.
DATA: The data i am trying to convert is as below
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE database>
<database xmlns='http://www.lotus.com/dxl' version='9.0' maintenanceversion='1.0'
replicaid='8525886700702AFD' path='BStravel2.nsf' title='BSTravel_Expenses_and_Vacations'
maintainunread='false' optimizetablebitmaps='true' increasemaxfields='true'
compressdesign='true' compressdata='true' markmodifiedunread='false' logtransactions='false'
uselz1='true'>
<databaseinfo dbid='85256700702AFD' odsversion='43' diskspace='261440'
percentused='96.2421875' numberofdocuments='13'><datamodified><datetime
dst='true'>20220813253,61-04</datetime></datamodified><designmodified
><datetime dst='true'>2022062936,80-04</datetime></designmodified></databaseinfo>
<launchsettings><noteslaunch whenopened='openframeset' frameset='Launch' showaboutdocument='never'/></launchsettings></database>
Thank you so much for all your help .
... View more
Labels:
- Labels:
-
Apache NiFi
-
Cloudera DataFlow (CDF)
09-04-2022
01:08 PM
Thanks Mr @SAMSAL for the insight. I learned from it because i was even thinking of telling him to use EvaluateJsonPath & ReplaceText processor.
... View more
08-15-2022
12:24 PM
Hi all. I am using PutEmail processor to send email when one of my core processors failed to process. It has been working before but it has stopped working due to this Google Security update Any help with this? I am using gmail on NIFI 1.15.3 NOTE: All my credentials are correct Thank you all. ERROR: PutEmail[id=d90f3185-017e-1000-33a0-5dfbaf747749] Failed to send email for StandardFlowFileRecord[uuid=0a6df4d8-7cfc-4d05-9261-304d178d0834,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1660589165172-1, container=default, section=1], offset=1877, length=87],offset=0,name=0a6df4d8-7cfc-4d05-9261-304d178d0834,size=87]: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials co26-20020a0560000a1a00b0021e2fccea97sm8120496wrb.64 - gsmtp
; routing to failure: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials co26-20020a0560000a1a00b0021e2fccea97sm8120496wrb.64 - gsmtp Google Security Update: Thanks to you all.
... View more
Labels:
08-10-2022
04:11 PM
Hello, please kindly help. i am trying to convert a datetime(attribute) from one format to the other but it keeps giving me empty value on the attribute: SCENERIO: Flowfile is json----->extract date from Json flowfile using Evaluatejsonpath---->format date using Updateattribute Actual Date: "2022-08-01 00:00:00.0" Desired date: "01/08/2022 00:00:00.000000" I have tried to use this on the updateattribute, but it is not working: ${DATE_TIME:toNumber():toDate('yyyy-MM-dd hh:mm:ss.S'):format('dd/MM/yyyy HH:mm:ss.SSSSSS')} Thank you.
... View more
Labels:
07-27-2022
03:29 AM
Thanks everyone. I have solved the problem by including dependency on the pom.xml files of nifi-custom-processors & nifi-custom-nar. The dependency is like this. <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.11.0</version> </dependency>
... View more
07-26-2022
01:53 PM
Hello, Please kindly help to resolve this error. I am trying to learn how to create a Nifi custom processor following this tutorial: https://help.syncfusion.com/data-integration/how-to/create-a-custom-processor#_Project_Creation%22%22 But i don't know the class to import to solve the below error: Below are all the imports i have on the file import org.apache.nifi.components.PropertyDescriptor; import org.apache.nifi.flowfile.FlowFile; import org.apache.nifi.annotation.behavior.ReadsAttribute; import org.apache.nifi.annotation.behavior.ReadsAttributes; import org.apache.nifi.annotation.behavior.WritesAttribute; import org.apache.nifi.annotation.behavior.WritesAttributes; import org.apache.nifi.annotation.lifecycle.OnScheduled; import org.apache.nifi.annotation.documentation.CapabilityDescription; import org.apache.nifi.annotation.documentation.SeeAlso; import org.apache.nifi.annotation.documentation.Tags; import org.apache.nifi.processor.AbstractProcessor; import org.apache.nifi.processor.ProcessContext; import org.apache.nifi.processor.ProcessSession; import org.apache.nifi.processor.ProcessorInitializationContext; import org.apache.nifi.processor.Relationship; import org.apache.nifi.processor.util.StandardValidators; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.nifi.processor.io.StreamCallback; import org.apache.nifi.processor.exception.ProcessException; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; Thanks for your kind help
... View more
Labels:
- Labels:
-
Apache NiFi
-
Cloudera DataFlow (CDF)
07-18-2022
01:01 PM
Thanks for your help. I also chatted with one of Streamnative dev advocates & he directed me to tons of info. Unfortunately, the nars are & didn't work with on prem Nifi 1.16.3. Also, i tried to build from source files but encountered lot of errors.
... View more
07-18-2022
10:26 AM
Hi, I am trying to integrate Nifi with Pulsar. But unfortunately i cannot find any of Pulsar nar Processors around. I am running Nifi 1.16.3 Thanks for your help.
... View more
Labels:
- Labels:
-
Apache NiFi
-
Cloudera DataFlow (CDF)