Apache Nifi getFile procressor - apache-nifi

The file is copied from Source directory to Target directory using getfile and putFile Processor but the file in source is not deleted and If i do it manually it get deleted from both the directories
I am new in Apache nifi
I am following some video in which files get deleted from sourced directory as soon as get transfer.

Right click GetFile processor and click configure. Make sure that Keep Source File property is set to false

Related

Writer initialization failed.Error opening output file.The system cannot find the path specified

In informatica pc I got an error like Writer initialization failed.Error opening output file.The system cannot find the path specified.
Even I checked the directories and file names but what exactly confused.
It's exactly as it says: the Writer failed to initialize, as it was not able to locate the path and file specified.
Note that PowerCenter Workflows and Mappings are executed on the Server. So while you develop on your local laptop (for example) and place a file in C:\Temp folder, and you are able to see the file, once you run the process, it will be executed on the Server. And the Server will not refer your laptop. It will look for C:\Temp location on its local disk. And if that's a unix box, there won't even be a C: path!
Hence, the process will fail with exactly the message you've seen: initialization failed, error opening output file. You need to place the file in the location accessible by Server.
In case of Writer, you name target location where the file will be created - make sure the user used by PowerCenter does have the write access.

How to overcome the save: couldnot find backup file error in jmeter

I have jmx file that I have saved in a folder in downloads, I have opened it on JMeter did some changes and when I click on save I get a error in log viewer panel as:
ERROR o.a.j.g.a.Save: Could not backup file! Backup directory does not exist, is not a directory or could not be created! <C:\Program Files\apache-jmeter-5.4.3\backups>
How to overcome this error?
JMeter's default backup directory is backups located inside JMeter Home, in order to be able to get benefits from backups you need to have write access to this folder.
So either make sure that the user has write permissions to C:\Program Files\apache-jmeter-5.4.3\backups
or change the backup folder location to the folder where your user has write access (normally it's home folder) by adding the next line to user.properties file:
jmeter.gui.action.save.backup_directory=C:/Users/your-user-name-here/jmeter/backups
JMeter restart will be required to pick the property up.
More information:
Configuring JMeter
JMX Backup configuration
Apache JMeter Properties Customization Guide

NIFI:how to get custom log files by tailFail?

I have nifi-1.3.0-RC1 and i want to get log files i used this :
nifi-1.3.0-RC1/logs/nifi-app.log
but tailFail processor throws and exception :Java.nio.file.NosuchFieleExcption maybe this version of nifi collects its log file somewhere else?
The log files are kept in a directory under $NIFI_HOME, which is the directory containing the bin, conf, lib, logs, etc. directories that Apache NiFi runs from. You can determine this directory by running
If you built NiFi from source, it will be a directory path like:
/Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.4.0-SNAPSHOT-bin/nifi-1.4.0-SNAPSHOT
If you downloaded the binary, it will be something like (after unzipping/untarring):
/Users/alopresto/Downloads/nifi-1.3.0/
It's a good idea to use the absolute path for the filesystem rather than the relative path you have above.

wsadmin command gives warning *sys-package-mgr*: can't write cache file

When I run the jython script using wsadmin command on WAS 8.5 ND it shows me below messages:
[wsadmin] *sys-package-mgr*: processing modified jar, '/opt/IBM/WebSphere/AppServer/java_1.7_64/lib/ibmorbtools.jar'
[wsadmin] *sys-package-mgr*: can't write cache file for '/opt/IBM/WebSphere/AppServer/java_1.7_64/lib/ibmorbtools.jar'
I have provided the 777 permission to the specified directory. How can I remove these messages.
This warnings usually look like this:
...
*sys-package-mgr*: processing modified jar, '/usr/IBM/WebSphere/AppServer/plugins/org.eclipse.core.runtime.compatibility.jar'
*sys-package-mgr*: can't write cache file for '/usr/IBM/WebSphere/AppServer/plugins/org.eclipse.core.runtime.compatibility.jar'
*sys-package-mgr*: can't write index file
This are confusing. Source of errors is jython underlying wsadmin. Jython is scanning WebSphere jars, trying to create a pkc file for an each scanned jar and finally is creating or updating the package.idx file. Warnings are raised as user running jython/wsadmin has no proper file permissions.
User running wsadmin must have read and write permission for jython cache folder and all contained files. Default cache folder is temp/cachedir within WAS profile. For example my "Deployment manager" named Dmgr01 has jython cache folder within:
${WAS_INSTALL_ROOT}/profiles/Dgmr01/temp/cachedir
Once one proper rights are given "can't write cache file for" and "can't write index file" warnings will be gone. And "processing modified jar" will be raised whenever jars are updated or temp folder cleaned which is rare event for WAS installation.
If wlst works before and doesn't work now, this error means the temp directory "/tmp/wlstTemporacle/packages" are corrupted.
If you go into "/tmp/wlstTemporacle/packages", you will lots of *.pkc files are duplicated with a "$1" in it's name. In your case, the file "ibmorbtools.pkc" will have a crapy sibling "ibmorbtools$1.pkc" there. This is not correct and it means this directory is corrupted.
The solution is to totally remove directory "/tmp/wlstTemporacle/packages", or even entire "/tmp/wlstTemporacle". And then rerun wlst.sh, you will see a new directory structure is created and all *.pkc are copied over correctly. Your above error message will go away.
Notes: In my case, this is oracle WebLogic 10.x.x.x running on Linux. Its WLST is Jython apps. The temp dir for java is point to "/tmp/wlstTemporacle". If your case is different, the easiest way to determine where is temp directory for your environment is to do a full search for file "ibmorbtools.pkc". It's name come from your error message which is "ibmorbtools.jar", just postfix are different.
Hopefully, this will help!
Yubo

Mule FTP move file from one temp/work directory to another

I have a scenario where I am inserting the data from FTP file into various systems. I have a couple of questions regarding FTP in Mule
-Is it possible to have a temp/work directory in FTP Inbound endpoint? The moveToDirectory works as a processed folder, I would like to move my source file into temp directory first and then have Mule download it.
-On success, the scenario demands, the original file to be moved from source/temp folder to success Folder. On an occurrence of an error, the original file should be moved to Failure Folder. Is it possible to only move and rename original file rather than storing the file in the payload and write it back in success or failure scenario?
Thanks,
Varada

Resources