遇到“警告 ProcfsMetricsGetter:尝试计算页面大小时出现异常"运行 Spark 时出错 [英] Encountering " WARN ProcfsMetricsGetter: Exception when trying to compute pagesize" error when running Spark
问题描述
我安装了 spark,在尝试运行它时,出现错误:警告 ProcfsMetricsGetter:尝试计算页面大小时出现异常,因此停止报告 ProcessTree 指标
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
有人可以帮我吗?
推荐答案
我也出现了同样的问题,因为python路径没有添加到系统环境中.我在环境中添加了这个,现在它完美无缺.
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.
添加 PYTHONPATH
环境变量,值为:
Adding PYTHONPATH
environment variable with value as:
%SPARK_HOME%python;%SPARK_HOME%pythonlibpy4j-<version>-src.zip;%PYTHONPATH%
帮助解决了这个问题.只需检查 spark/python/lib 文件夹
中的 py4j 版本.
helped resolve this issue. Just check what py4j version you have in your spark/python/lib folder
.
这篇关于遇到“警告 ProcfsMetricsGetter:尝试计算页面大小时出现异常"运行 Spark 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!