【问题标题】:Is the Hadoop read-only default configuration file core-default.xml read at startup?Hadoop只读默认配置文件core-default.xml是在启动时读取的吗?
【发布时间】:2013-05-10 19:58:32
【问题描述】:

文档中描述的文件是否为只读配置文件 src/core/core-default.xml,Hadoop 在启动时使用?一些文档说将此文件复制到 conf/core-site.xml 并进行更改,而一些文档说只包含那些正在更改的属性。如果是后者,看来core-default.xml文件是必须的。

【问题讨论】:

    标签: hadoop


    【解决方案1】:

    core-default.xml 首先加载,然后 core-site.xml 覆盖在上面。 core-site.xml 将只包含需要更改默认值的值。

    查看顶部的资源部分:http://hadoop.apache.org/docs/current/api/org/apache/hadoop/conf/Configuration.html

    【讨论】:

      【解决方案2】:

      这里可能还有一个有趣的信息:如果您使用 YarnConfiguration 的构造函数,则另外读取 yarn-default.xml 和 yarn-site.xml。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-03-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-05-15
        相关资源
        最近更新 更多