Question:
ERROR: Attempting to operate on hdfs namenode as root
ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation
Solution:
Look for the start-dfs.sh and stop-dfs.sh files in the /hadoop/sbin path, and add both to the top of them:
#!/usr/bin/env bash
HDFS_DATANODE_USER=root
HADOOP_SECURE_DN_USER=hdfs
HDFS_NAMENODE_USER=root
HDFS_SECONDARYNAMENODE_USER=root
By the way, at the top of the start-yarn.sh and stop-yarn.sh files, add:
#!/usr/bin/env bash
YARN_RESOURCEMANAGER_USER=root
HADOOP_SECURE_DN_USER=yarn
YARN_NODEMANAGER_USER=root
Read More:
- Hadoop ERROR: Attempting to operate on hdfs namenode as root ERROR: but there is no HDFS_NAMENODE_US
- [Solved] ERROR: Attempting to operate on hdfs journalnode as rootERROR: but there is no HDFS_JOURNALNODE_USE
- ERROR server.datanode.DataNode: BlockSender.sendChunks() exception [How to Solve]
- [Solved] Hadoop Error: Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- wind System Black Windows Start hadoop Error [How to Solve]
- [Solved] Hadoop Start NameNode Error: ERROR: Cannot set priority of namenode process 2639
- [Solved] Exception in thread “main“ org.apache.spark.SparkException: When running with master ‘yarn‘ either
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- NPM install Error cb.apply is not a function
- [Solved] Hive Error while processing statement: FAILED: Execution Error
- Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master
- [MAC] How to Solve zsh Error: command not found: umi
- Hadoop Error: hdfs.DFSClient: Exception in createBlockOutputStream
- [Solved] yarn error ExitCodeException exitCode=127
- Error Report of Yarn Create UMI
- [Solved] electron Install Error: RequestError: read ECONNRESET
- [Solved] Yarn install Error: “error Found incompatible module.”
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby