[
https://issues.apache.org/jira/browse/HADOOP-6241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philip Zeyliger updated HADOOP-6241:
------------------------------------
Attachment: HADOOP-6241-v4.patch.txt
bq. # ./bin/split_config.py shows nice usage information including the same
invocation. split_config.py --help lacks the _doc_ info which I found helpful.
Can you convince OptionParser to print that for all usage notices?
done
bq. In dist releases, the -default.xml files don't exist. If we expect this to
be useful for users and not just developers, it should be able to look inside
the jars for the -default.xml files. Since jars are just zips, you can probably
do this pretty easily using the zipfile module.
Done. Added another option to specify templates this way.
Also, here's how I've been testing this (still has to be run manually);
{noformat}
$PYTHONPATH=bin:$PYTHONPATH python src/test/bin/split_config_test.py
Could not find template file to place property 'notintemplates'. Ignoring.
Writing out to <StringIO.StringIO instance at 0x244350>
Writing out to <StringIO.StringIO instance at 0x244378>
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
{noformat}
> Script to split configurations from one file into multiple, according to
> templates.
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-6241
> URL: https://issues.apache.org/jira/browse/HADOOP-6241
> Project: Hadoop Common
> Issue Type: New Feature
> Reporter: Philip Zeyliger
> Attachments: HADOOP-6241-v2.patch.txt, HADOOP-6241-v3.patch.txt,
> HADOOP-6241-v4.patch.txt, HADOOP-6241.patch.txt
>
>
> This script moves properties from hadoop-site.xml into common-site,
> mapred-site, and hdfs-site in a reasonably generic way. This is useful for
> upgrading clusters from 0.18 to 0.20 and 0.21.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.