系统:CentOS7
环境:jdk8
版本:hadoop-2.7.7
结构
hadoop01 | namedata、nodedata |
hadoop02 | nodedata |
hadoop03 | nodedata |
配置 hadoop-2.7.7/etc/hadoop/hadoop-env.sh
export JAVA_HOME=/opt/app/jdk1.8.0_221 //这里是我的jdk安装目录
配置 hadoop-2.7.7/etc/hadoop/core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop01:9000</value>
<final>true</final>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/kjctar/tmp</value> <!-- 临时目录 -->
</property>
<!-- i/o properties -->
<property>
<name&g