Gábor Gyimesi created MINIFICPP-2606:
----------------------------------------

             Summary: Improve logging for python virtualenv initialization
                 Key: MINIFICPP-2606
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2606
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Gábor Gyimesi
            Assignee: Gábor Gyimesi


Python processor package dependencies are installed into a virtualenv using a 
dependency installer script which is executed from the minifi process using a 
system call. Unfortunately if the virtualenv initialization fails there is no 
indication of the issue in the logs as the script output is only placed on the 
stderr and stdout channels. Failure is only indicated like this:
{code:java}
[2025-04-22 12:43:49.150] [org::apache::nifi::minifi::core::extension::Module] 
[error] Failed to initialize extension 'PythonExtension' in module 
'minifi-python-script-extension'
[2025-04-22 12:43:49.150] 
[org::apache::nifi::minifi::core::extension::ExtensionManager] [error] Failed 
to initialize module 'minifi-python-script-extension' at 
'/home/xavier/Downloads/nifi-minifi-llama-1.0.0/bin/../extensions/libminifi-pyt>
 {code}
We should add additional logging by capturing the stdout and stderr of the 
installer script and logging it to the minifi application logs for easier 
debugging of the dependency install issues.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to