Troubleshooting MiNiFi C++ Agent

You might need to perform extra configuration steps for the MiNiFi C++ Agent.

If you are using CENTOS7 operating system, you might get the following error when you run the agent:

PID 15860 is stale, removing pid file at /grid/0/cloudera_flow_management/cpp-minifi/bin/

Starting MiNiFi with PID 10075 and pid file /grid/0/cloudera_flow_management/cpp-minifi/bin/

-bash-4.2$ [2019-07-infol 14:36:04.369] [main] [info] Using MINIFI_HOME=/grid/0/cloudera_flow_management/cpp-minifi from environment.

[2019-07-infol 14:36:04.369] [org::apache::nifi::minifi::Properties] [info] Using configuration file located at /grid/0/cloudera_flow_management/cpp-minifi/conf/, from ./conf/

setting default dir to /grid/0/cloudera_flow_management/cpp-minifi/content_repository

Could not find platform independent libraries <prefix>

Could not find platform dependent libraries <exec_prefix>

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

Fatal Python error: Py_Initialize: Unable to get the locale encoding

ImportError: No module named 'encodings' 
The error occurs when you use an incorrect path for Python. To troubleshoot, update the following property values:
  • PYTHONPATH=/usr/lib64/python3.4