Code analysis of Hadoop v0.1.0 (2) conf package
来源:互联网 发布:天府广场美食 知乎 编辑:程序博客网 时间:2024/06/01 23:13
conf package is about the configuration set about the whole system, which is frequently used in other packages. So we first examine it. Below is the annotation in configuration.java that is the most important part of this package.
/** Provides access to configuration parameters. Configurations are specified * by resources. A resource contains a set of name/value pairs. * * <p>Each resources is named by either a String or by a File. If named by a * String, then the classpath is examined for a file with that name. If a * File, then the filesystem is examined directly, without referring to the * CLASSPATH. * * <p>Configuration resources are of two types: default and * final. Default values are loaded first and final values are loaded last, and * thus override default values. * * <p>Hadoop's default resource is the String "hadoop-default.xml" and its * final resource is the String "hadoop-site.xml". Other tools built on Hadoop * may specify additional resources.
Let us see the members in the Configuration class below.
The member properties above is a kind of HashTable, which stores the content in the defaultResources and finalReources corresponding to file hadoop-default.xml and file hadoop-default.xml respectively.
- Code analysis of Hadoop v0.1.0 (2) conf package
- Code analysis of Hadoop v0.1.0 (1) Setting up the environment
- hadoop wordcount source code analysis
- List of tools for static code analysis
- List of tools for static code analysis
- Take Advantage of Code Analysis Tools
- Findbugs - Static Code Analysis of Java
- Take Advantage of Code Analysis Tools
- java:5: error: package org.apache.hadoop.conf does not
- Signal Integrity Analysis of a Complex Multi-Layered Package
- code analysis
- the design principles and code analysis of hibernate lazy loading
- THE MATLAB CODE OF CANONICAL CORRELATION ANALYSIS (CCA)
- Exercise 2: Suppressing Code Analysis Warnings
- Analysis of Code Heterogeneity for High-Precision Classification of Repackaged Malware
- [V0.2.1]A simple compiler - lexical analysis
- [V0.2.2]A simple compiler - grammar analysis
- static code analysis
- L型代码结构案例:Link访问权限(上)
- UVA 11168 Airport(凸包)
- [每日一题] 11gOCP 1z0-052 :2013-09-15 Enterprise Manager Support Workbench..................B9
- 4、Spring中关于事务的处理
- 旋转卡壳法总结
- Code analysis of Hadoop v0.1.0 (2) conf package
- 中国金融博物馆书院 读书会第一至二十八期完整书单
- Save Labman No.004
- C#获取32位或者64位系统安装软件信息
- 腾讯开放平台——client id is illegal(100008)!错误解决
- memcached集群负载均衡
- Text 和 Picture Control 的使用,ID_STATIC要修改一下!
- JavaScript 函数
- JAVA基础——匿名内部类