遭遇"WARN ProcfsMetricsGetter:尝试计算页面大小时发生异常.运行Spark时出错 [英] Encountering " WARN ProcfsMetricsGetter: Exception when trying to compute pagesize" error when running Spark
问题描述
我安装了spark,并在尝试运行它时收到错误消息:WARN 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%\python\lib\py4j-<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
.
这篇关于遭遇"WARN ProcfsMetricsGetter:尝试计算页面大小时发生异常.运行Spark时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!