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

Function write_hadoop_env

example/docker/hdfs_setup.py:80–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 f.close()
79
80def write_hadoop_env():
81 f = open(conf_path_prefix + 'hadoop-env.sh', 'a')
82 f.write('\nexport JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-amd64"\n')
83 f.close()
84
85def write_maters_slaves(args):
86 f = open(conf_path_prefix + 'masters', 'wb')

Callers 1

mainFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected