./start-dfs.sh 启动错误 ERROR: Cannot set priority of datanode process xxxxx

ERROR: Cannot set priority of datanode process xxxx

  • 错误现象
  • 解决方案

错误现象

[root@cpucode100 sbin]# ./start-dfs.sh
Starting namenodes on [cpucode100]
Last login: Fri Nov 12 21:00:56 CST 2021 on pts/0
Starting datanodes
Last login: Fri Nov 12 21:07:43 CST 2021 on pts/0
cpucode100: datanode is running as process 480077. Stop it first.
cpucode102: ERROR: Cannot set priority of datanode process 151364
cpucode101: ERROR: Cannot set priority of datanode process 23100
Starting secondary namenodes [cpucode101]
Last login: Fri Nov 12 21:07:45 CST 2021 on pts/0
cpucode101: ERROR: Cannot set priority of secondarynamenode process 23170

./start-dfs.sh 启动错误 ERROR: Cannot set priority of datanode process xxxxx_第1张图片

解决方案

在这里插入图片描述

修改

vim hdfs

内容 :

把 HADOOP_SHELL_EXECNAME=“hdfs” 改为

HADOOP_SHELL_EXECNAME="root"

./start-dfs.sh 启动错误 ERROR: Cannot set priority of datanode process xxxxx_第2张图片

xsync hdfs

./start-dfs.sh 启动错误 ERROR: Cannot set priority of datanode process xxxxx_第3张图片

xsync /opt/module/hadoop-3.1.3/etc/hadoop/

在这里插入图片描述

你可能感兴趣的:(Hadoop,深度优先,hadoop,hdfs)