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

Loading xml file data to oracle table using python

Sample xml file (test.xml): <?xml version="1.0"?> <data>     <customer name="Ravi" >     ...