本地主机:错误:无法设置数据节点进程的优先级 32156 [英] localhost: ERROR: Cannot set priority of datanode process 32156
问题描述
我正在尝试在 ubuntu 16.04 上安装 hadoop,但是在启动 hadoop 时它会给我以下错误
I am trying to install hadoop on ubuntu 16.04 but while starting the hadoop it will give me following error
localhost: ERROR: Cannot set priority of datanode process 32156.
Starting secondary namenodes [it-OptiPlex-3020]
2017-09-18 21:13:48,343 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting resourcemanager
Starting nodemanagers
请有人告诉我为什么我会收到这个错误?提前致谢.
Please someone tell me why i am getting this error ? Thanks in advance.
推荐答案
我不得不处理同样的问题并不断收到以下异常:
I had to deal with the same issue and kept getting the following exception:
Starting namenodes on [localhost]
Starting datanodes
localhost: ERROR: Cannot set priority of datanode process 8944
Starting secondary namenodes [MBPRO-0100.local]
2019-07-22 09:56:53,020 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
正如其他人提到的,您需要首先确保所有路径参数都设置正确,这是我首先检查的.然后按照以下步骤解决问题:
As others have mentioned, you need to first make sure that all path parameters are set correctly which is what I checked first. Then followed these steps to solve the issue:
1- 停止 dfs 服务并格式化 hdfs:
1- Stop dfs service and format hdfs:
sbin/stop-dfs.sh
sudo bin/hdfs namenode -format
2- 更改 hadoop 临时目录的权限:
2- Change permissions for the hadoop temp directory:
sudo chmod -R 777 /usr/local/Cellar/hadoop/hdfs/tmp
3- 再次启动服务:
sbin/start-dfs.sh
祝你好运
这篇关于本地主机:错误:无法设置数据节点进程的优先级 32156的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!