INSTALLATION DOCUMENTS BY RAVI

Thursday, April 26, 2018

ERROR: Attempting to operate on hdfs datanode as root

Getting error when we tried to start hadoop as a root user












To resolve this navigate to /usr/hdf/3.1.1.0-35/hadoop/etc/hadoop
open hadoop-env.sh file
Add the below lines
export HDFS_NAMENODE_USER="root"
export HDFS_DATANODE_USER="root"
export HDFS_SECONDARYNAMENODE_USER="root"
export YARN_RESOURCEMANAGER_USER="root"
export YARN_NODEMANAGER_USER="root"





















Start hadoop now




























No comments:

Post a Comment

Perfect order of ODI export and import

  Smart Export / Import is the recommended way to achieve such a migration. This is the easiest way to make sure all the dependencies are ta...