(args)
| 43 | return doc, site |
| 44 | |
| 45 | def write_core_site_xml(args): |
| 46 | doc, coresite = get_doc() |
| 47 | ip = 'hdfs://{name_node}:9000'.format(name_node=args.masters) |
| 48 | prop = write_property(doc, 'fs.default.name', ip, True) |
| 49 | coresite.appendChild(prop) |
| 50 | prop = write_property(doc, 'hadoop.tmp.dir', share_path_prefix + 'tmp', False) |
| 51 | coresite.appendChild(prop) |
| 52 | |
| 53 | f = open(conf_path_prefix + 'core-site.xml', 'wb') |
| 54 | f.write(doc.toprettyxml(indent = '')) |
| 55 | f.close() |
| 56 | |
| 57 | def write_hdfs_site_xml(): |
| 58 | doc, hdfssite = get_doc() |
no test coverage detected