()
| 55 | f.close() |
| 56 | |
| 57 | def write_hdfs_site_xml(): |
| 58 | doc, hdfssite = get_doc() |
| 59 | prop = write_property(doc, 'dfs.name.dir', share_path_prefix + 'name', True) |
| 60 | hdfssite.appendChild(prop) |
| 61 | prop = write_property(doc, 'dfs.data.dir', share_path_prefix + 'data', True) |
| 62 | hdfssite.appendChild(prop) |
| 63 | prop = write_property(doc, 'dfs.replication', '3', True) |
| 64 | hdfssite.appendChild(prop) |
| 65 | |
| 66 | f = open(conf_path_prefix + 'hdfs-site.xml', 'wb') |
| 67 | f.write(doc.toprettyxml(indent = '')) |
| 68 | f.close() |
| 69 | |
| 70 | def write_mapred_site_xml(args): |
| 71 | doc, mapredsite = get_doc() |
no test coverage detected