Created
April 30, 2020 08:47
-
-
Save fclesio/f8b4dae0873e7145a5f318b15931807f to your computer and use it in GitHub Desktop.
Starting the H2O cluster to train the data in the distributed way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_info('Initializing H2O') | |
host = "localhost" | |
host_port = 54321 | |
cpus = -1 | |
memory_size = "7g" | |
log_debug('H2O Cluster host: {host}') | |
log_debug('H2O Cluster host port: {host_port}') | |
log_debug('H2O Cluster Number CPUs: {cpus}') | |
log_debug('H2O Cluster Memory Size allocated: {memory_size}') | |
h2o.init( | |
ip = host, | |
port = host_port, | |
nthreads = cpus, | |
max_mem_size = memory_size | |
) | |
cluster_status <- h2o.clusterStatus() | |
log_debug('H2O Cluster Status Info: {cluster_status}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment