Member since
05-08-2018
15
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
679 | 05-14-2018 05:34 PM | |
2191 | 05-14-2018 02:14 PM |
07-24-2019
07:00 PM
I am consuming messages from IBM MQ using Nifi. Each message is 1000 chars long. Based on the index I have to split the flowfile and then add the splits to JSON object. e.g. 2525252525M123456789JohnDoe to : {"Phone":"2525252525", "Sex":M, "Ssn":"123456789", "Name":"JohnDoe" } Is there a way to do this using any of the Nifi processors. The other approach is to use python or some other script to do that and use Execute Processors. But, if there is some other way please let me know.
... View more
Labels:
- Labels:
-
Apache NiFi
04-24-2019
04:48 PM
I am ingesting messages from MQ to HDFS (to a staging area). I want to copy these files to local. The issues is the ingestion process runs 24x7. I only want files ingested on a particular date (or between a particular time on that day) i.e. 23rd April, 2019 etc. Is there a way to copyToLocal/get the files/messages from HDFS ingested/created on a particular date? Doing it manually is a pain.
... View more
Labels:
- Labels:
-
Apache Hadoop
10-04-2018
03:36 PM
My Flow contains getting XML files from a directory and then transform them to json. Before converting them to json, I need to validate my input xmls.
I use a GetFile to get the files and then use ValidateXML to validate those files before they proceed to be transformed to json using TramsformXML processor in Nifi.
I have attached the screens of the error, flow and validateXml settings.
help!
... View more
Labels:
- Labels:
-
Apache NiFi
09-26-2018
09:53 PM
I am trying to do a POC using ExecuteProcess to start a .sh file on a remote server. Right now I am just trying to move a file on remote server from one location to another. But I am getting an error (Host Key Verification Failed) on the Nifi Processor. I am able to do the same via terminal on host machine (on which Nifi is installed and running). What could be the issue here? I followed the steps mentioned here. Help! ssh -i user@hostname 'mv ~/folder1/test.txt ~/folder2/' <-- I am able to do this successfully on terminal. ExecuteProcess Properties : Command: ssh
Command Arguments: -i "~/.ssh" user@hostname 'mv ~/folder1/test.txt ~/folder2/'
Batch Duration : No value set
Redirect Error Stream : false
Working Directory : No value set
Argument Delimiter : No value set
... View more
Labels:
- Labels:
-
Apache NiFi
09-26-2018
09:50 PM
@Matt Clarke I am also trying to do a POC using ExecuteProcess to start a .sh file on a remote server. Right now I am just trying to move a file on remote server from one location to another. But I am getting an error (Host Key Verification Failed) on the Nifi Processor. I am able to do the same via terminal on host machine (on which Nifi is installed and running). What could be the issue here? Help! ssh -t user@hostname 'mv ~/folder1/test.txt ~/folder2/' <-- I am able to do this successfully on terminal. ExecuteProcess Properties : Command: ssh
Command Arguments: -i "~/.ssh" user@hostname 'mv ~/folder1/test.txt ~/folder2/'
Batch Duration : No value set
Redirect Error Stream : false
Working Directory : No value set
Argument Delimiter : No value set
... View more
05-17-2018
05:35 PM
error-while-clearing-connection-queue.png nifi-queue.png I am not able to clear the connection queue in Nifi. The only change i made to the PutJMS processor was to change the URL to failover:(address)?randomize=false. The message just stopped in the queue and did not proceed to PutJMS. I stopped all the processors after sometime in the hope that I will change the config again for further testing. But since the queue is not empty and it is not allowing me to change the config in PutJMS processor. PS: I am trying to send messages to IBM MQ using PutJMS.
... View more
Labels:
- Labels:
-
Apache NiFi
05-14-2018
05:34 PM
https://stackoverflow.com/questions/50333116/is-there-a-way-to-change-the-delivery-mode-in-publishjms-processor-in-nifi/50333873#50333873
... View more
05-14-2018
02:41 PM
I am sending messages to IBM MQ using Nifi PublishJMS processor. The Messages have Persistence = Persistent in MQ. I want to change it to Non-Persistent. Is there a property in Nifi PublishJms processor to correct this? Or is it done from the MQ side. I don't have access to MQ servers, I can only check the messages being delivered to the queue.
... View more
Labels:
- Labels:
-
Apache NiFi
05-14-2018
02:14 PM
Changing the Destination Name in Nifi PublishJMS to snippet below worked for me queue:///theQueueName?targetClient=1
... View more
05-11-2018
03:20 PM
I was using Flume to send messages from HDFS to IBM MQ Queue. But now we are trying Nifi to do so. Everything is working fine except the message format is different. The message format I am getting on the Queue end is in MQHRF2. I need to change it to MQSRT format. Is there a way to do that in PublishJMS or should I use some other processor in Nifi before PublishJMS to make it happen? PublishJMS is sending the XML headers with message attributes and at the end "the-message". I only need message to be sent to the queue not the headers. I think this is somewhat related to the message formats mentioned above or am I wrong?
... View more
Labels:
- Labels:
-
Apache NiFi