2.3.1.1. Setting DataNode User Privileges

DataNodes use a privileged port (1019 and 1022) as set in the hdfs-site.xml file. To use these ports, DataNode processes must be started as root.

On each DataNode host in the cluster, use a text editor to modify /etc/hadoop/conf/hadoop-env.sh

export HADOOP_SECURE_DN_USER=$HDFS_USER

loading table of contents...