MCPcopy Create free account
hub / github.com/baidu/tera / write_maters_slaves

Function write_maters_slaves

example/docker/hdfs_setup.py:85–93  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

83 f.close()
84
85def write_maters_slaves(args):
86 f = open(conf_path_prefix + 'masters', 'wb')
87 f.write(args.masters)
88 f.close()
89
90 f = open(conf_path_prefix + 'slaves', 'wb')
91 slaves = '\n'.join(args.slaves)
92 f.write(slaves)
93 f.close()
94
95def start_hdfs(args):
96 cmd_prefix = '/opt/hadoop-1.2.1/bin/hadoop-daemon.sh --config /opt/hadoop-1.2.1/'

Callers 1

mainFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected