本地主机:错误:无法设置数据节点进程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.
推荐答案
在安装Hadoop 3.0.0-RC0时遇到了相同的错误. 我的情况是除Datanode之外的所有服务都成功启动.
I have run into the same error when installing Hadoop 3.0.0-RC0. My situation was all services starting successfully except Datanode.
我发现hadoop-env.sh中的某些配置在3.0.0-RC0版本中不正确,但在2.x版本中是正确的.
I found that some configs in hadoop-env.sh weren't correct in version 3.0.0-RC0, but were correct in version 2.x.
我最终用正式的替换了hadoop-env.sh并设置了JAVA_HOME和HADOOP_HOME. 现在,Datanodes工作正常.
I ended up replacing my hadoop-env.sh with the official one and set JAVA_HOME and HADOOP_HOME. Now, Datanodes is working fine.
这篇关于本地主机:错误:无法设置数据节点进程32156的优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!