etc/hadoop/core-site.xml
<configuration>
<!-- 指定HDFS中namenode地址--> <property> <name>fs.defaultFS</name> <value>hdfs://hadoop01:9000</value> </property>
<!-- 指定Hadoop运行时产生文件的存储目录 --> <property> <name>hadoop.temp.dir</name> <value>/opt/module/hadoop-3.3.6/data/tmp</value> </property> </configuration>
etc/hadoop/hdfs-site.xml
<configuration> <!-- 指定HDFS副本的数量 -->
<property> <name>dfs.replication</name> <value>1</value> </property> </configuration>
标签:xml,hdfs,配置,hadoop,Hadoop,site,分布模式 From: https://www.cnblogs.com/hjj1215/p/17537459.html