|
> src/test, src/c++/libhdfs/tests/conf/ and src/contrib/test/ directories contains a file named hadoop-site.xml. I think this can be removed
+1
could not find any references of hadoop-default/hadoop-site in src/core/overview.html. the current patch takes care of them.
The reason to keep the empty hadoop-site.xml files is to avoid picking properties from conf/hadoop-site.xml. The test cases have conf also in classpath, so if an user has hadoop-site.xml in conf directory, the properties from it gets picked up. To override that bahaviour the empty hadoop-site.xml in test config folder is put. This would be removed once we remove the deprecated support for hadoop-site.xml.
I think it is ok to refer hadoop-site.xml as we support it now. hadoop-default should not be referred. I found only following two to refer hadoop-default:
Will file another jira for this.
Currently HOD generate the single configuration file as hadoop-site.xml and the framework supports that. So the documentation will still refer to it. This will be changed once HOD move to the new configuration structure.
All the href links in overview.html, have links to hadoop-default.
Sorry. I missed the changes in overview.html in current patch. Please ignore my comment. > The reason to keep the empty hadoop-site.xml files is to avoid picking properties from conf/hadoop-site.xml.
That sounds reasonable. We should then add a comment to src/test/hadoop-site.xml noting that it should be removed when support for hadoop-site.xml is removed. added comment to src/test/hadoop-site.xml, src/contrib/test/hadoop-site.xml and src/c++/libhdfs/tests/conf/hadoop-site.xml as per Doug suggestion.
I just committed this. Thanks, Sharad!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. The following files has references to hadoop-default and hadoop-site in the documentation.
src/core/overview.html
src/benchmarks/gridmix2/README.gridmix2
2. src/test, src/c++/libhdfs/tests/conf/ and src/contrib/test/ directories contains a file named hadoop-site.xml. I think this can be removed
3. The following files are still using hadoop-default and hadoop-site as the conf resources :
src/contrib/failmon/src/java/org/apache/hadoop/contrib/failmon/HDFSMerger.java
src/contrib/failmon/src/java/org/apache/hadoop/contrib/failmon/LocalStore.java
src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/conf/ChukwaConfiguration.java
src/contrib/ec2/bin/hadoop-ec2-init-remote.sh
src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/RunOnHadoopWizard.java
src/contrib/hod
4. Also, the chinese docs have references in the following files:
src/docs/cn/src/documentation/content/xdocs/cluster_setup.xml
src/docs/cn/src/documentation/content/xdocs/hdfs_user_guide.xml
src/docs/cn/src/documentation/content/xdocs/site.xml
src/docs/cn/src/documentation/content/xdocs/streaming.xml
5. Hod documentation still has references to hadoop-site.xml