【发布时间】:2020-06-11 19:11:51
【问题描述】:
我正在通过命令行在服务器上启动 H2O 集群。文档说 H2O 需要 /tmp 目录中的空间来写入。有没有办法让 h2o 写入 /tmp 以外的其他目录?这里的参考是文档和我用来通过命令行通过 os.system() 调用启动 h2o 的 python 代码:
https://h2o-release.s3.amazonaws.com/h2o/rel-wolpert/8/docs-website/h2o-docs/starting-h2o.html
# Define string to be passed to command line to spin up cluster
h2o_init_command = (
"nohup java "
"-Xmx{cluster_mem_size} "
"-jar {jar_file} "
"-nthreads {cluster_threads} "
"-name {cluster_port} "
"-port {cluster_port} "
"-ice_root {ice_root_file} "
"-hash_login "
"-login_conf {authentication_file} "
"> {nohup_file} &"
).format(cluster_mem_size=cluster_mem_size,
jar_file=p.JAR_FILE,
cluster_threads=cluster_threads,
cluster_port=cluster_port,
ice_root_file=p.ICE_ROOT_FILE,
authentication_file=p.AUTHENTICATION_FILE,
nohup_file=nohup_file
)
# Start an H2O cluster
return_cde = os.system(h2o_init_command)
【问题讨论】: