Member since
01-22-2025
3
Posts
0
Kudos Received
0
Solutions
05-09-2025
12:44 PM
I have a NiFi workflow where I am fetching files from a server and now want to upload the fetched files using a POST request. The request works on postman but how do I format this in NiFi. I am using Apache Nifi 1.23.1. I followed this article but did not work for me: @SAMSAL https://community.cloudera.com/t5/Support-Questions/Apache-NiFi-processor-InvokeHTTP-POST-with-MultipartFile/m-p/381112#M244231 Here is the postman image of the request: Here is the NiFi InvokeHttp processor configuration : I am getting the following response when I do this: < TITLE> Content Server Client Error</TITLE><H1>Error parsing the GET/POST data stream.‹/H1>‹br>Please try again. If the problem persists, contact your Content Server administrator. What is wrong with my configuration? Please help
... View more
Labels:
- Labels:
-
Apache NiFi
05-09-2025
03:04 AM
How can I replicate this same solution with Apache NiFi v.1.23.1 today. The value for Request content type is default set to ${mime.type}
... View more
01-22-2025
06:07 PM
I am trying to execute a PowerShell script in java windows minifi workflow using the ExecuteStreamCommand Processor (https://community.cloudera.com/t5/Support-Questions/How-to-execute-a-shell-script-while-using-NiFi-in-Windows/td-p/153638) The script is working when executed manually in the PC but does not work in the workflow. The powershell script checks the current user and if the workflow user is an admin and writes the output to a file. The properties of the ExecuteStreamCommand Processor are as follows : Command Path : C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe Command Arguments : -File C:\\scripts\\AdminCheck.ps1 -OutputFile C:\\Path\\adminOutput.txt The command that works when executed on the PC :- C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe File C:\\scripts\\AdminCheck.ps1 -OutputFile C:\\Path\\adminOutput.txt This is the powershell script :- param ( [string]$OutputFile = "C:\Path\adminOutput.txt" ) # Get the current user $CurrentUser = whoami # Check if running as administrator if (([System.Security.Principal.WindowsPrincipal] [System.Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)) { $AdminCheck = "Run as admin - SUCCESSFUL" } else { $AdminCheck = "Run as admin - FAILED" } # Prepare the output $output = @( "Current user: $CurrentUser" $AdminCheck ) # Write the output to the file $output | Out-File -FilePath $OutputFile -Encoding UTF8 -Force # Wait for 10 seconds Start-Sleep -Seconds 10 Is there any other way I can run PowerShell scripts in Minifi . What changes can i made to my present property settings for the processor to execute the script. Thanks all.
... View more
Labels:
- Labels:
-
Apache MiNiFi