首页 > 其他分享 >hadoop02

hadoop02

时间:2024-04-09 16:33:16浏览次数:26  
标签:配置文件 default hadoop02 HADOOP blocksize 默认值 size

1.配置文件

hadoop的默认配置文件都在$HADOOP_HOME/share下,先读取这个默认值,再读取etc中用户配置的值,用户配置的值将覆盖默认值

cd $HADOOP_HOME/share
mkdir -p /data/test find -name "*-default.xml" -exec cp {} ~/data/test \;

在hdfs-default.xml中查找dfs.blocksize,可以看到值为128M

<property>
  <name>dfs.blocksize</name>
  <value>134217728</value>
  <description>
      The default block size for new files, in bytes.
      You can use the following suffix (case insensitive):
      k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa) to specify the size (such as 128k, 512m, 1g, etc.),
      Or provide complete size in bytes (such as 134217728 for 128 MB).
  </description>
</property>

 

标签:配置文件,default,hadoop02,HADOOP,blocksize,默认值,size
From: https://www.cnblogs.com/xiaoxiaomuyuyu/p/18124268

相关文章