问题
I installed spark and when trying to run it, I am getting the error: WARN ProcfsMetricsGetter: Exception when trying to compute pagesize, as a result reporting of ProcessTree metrics is stopped
Can someone help me with that?
回答1:
The same problem occured with me because python path was not added to system environment. I added this in environment and now it works perfectly.
Adding PYTHONPATH
environment variable with value as:
%SPARK_HOME%\python;%SPARK_HOME%\python\lib\py4j-<version>-src.zip:%PYTHONPATH%
helped resolve this issue. Just check what py4j version you have in your spark/python/lib folder
.
来源:https://stackoverflow.com/questions/60257377/encountering-warn-procfsmetricsgetter-exception-when-trying-to-compute-pagesi