介绍
老板让配Hadoop的安全模式,网上搜了些资料, 具体过程略有出入,下面记录详细配置过程,
环境
Hadoop Version: Apache Hadoop 2.7.1
/etc/hosts
:
192.168.1.100 hadoop1
192.168.1.101 hadoop2
192.168.1.102 hadoop3
hadoop1是master, 另外两台是slaves note:确保域名解析和反向域名解析在集群中正常工作
/etc/profile
:
#Hadoop
HADOOP_VERSION=2.7.1
export HADOOP_PREFIX=/opt/hadoop-${HADOOP_VERSION}
export HADOOP_HOME=${HADOOP_PREFIX}
export ...