Member since
08-05-2022
4
Posts
0
Kudos Received
0
Solutions
08-10-2022
10:47 PM
@MattWho, Kindly find the below flow. After the ExecuteStreamCommand the log file will be created when the output is failed with the content in log file as shown below. So, either way i have to do that is either attach the log file to mail or paste that content in mail. Nifi Flow: Log File Content: 2022-07-27 21:18:48,574 Traceback (most recent call last): File "File_upload.py", line 121, in <module> shell_exec(query) File "File_upload.py", line 28, in shell_exec raise Exception(stderr) Exception: mv: `/abc/xyz/abc_xyz_stg/configs_enc/COMMON/archive/ENV/env_uat_v_3.json': No such file or directory: `hdfs://cluster/abc/xyz/abc_xyz_stg/configs_enc/COMMON/archive/ENV/env_uat_v_3.json'
... View more
08-09-2022
01:50 AM
Hi @MattWho , What I want is I'm executing the python script using the above given flow using ExecuteStreamCommand every 5 mins. But when the python script fails it create one log file at some location of another server. I want to attach that log file to the mail which we are putting it using PutEmail processor.
... View more
08-05-2022
09:32 AM
Hi @MattWho, I want to get the mails after the failure of flow with the error message in the mail.
... View more
08-05-2022
02:44 AM
Hi All, I want to put the error message or want to attach the log file from local location to the nifi flow. My flow is as below: Getfile -> EvaluateJSON -> ExecuteStreamCommand->RouteAttribute-> PutEmail. Please help me for this. Thank you in advance!!
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry