forked from h2oai/h2o-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched JUnit to Java only & added EC2 util
- Loading branch information
cypof
committed
Mar 31, 2013
1 parent
f4a42ee
commit b338698
Showing
24 changed files
with
1,419 additions
and
70 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
java -ea -cp target/h2o.jar water.Boot -mainClass water.sys.EC2 $@ |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
import h2o, h2o_cmd | ||
import h2o_browse as h2b | ||
import h2o | ||
import h2o_cmd | ||
import h2o_hosts | ||
import sys | ||
import time | ||
import psutil | ||
import webbrowser | ||
#import os, json, unittest, time, shutil, sys | ||
#sys.path.extend(['.','..','py']) | ||
|
||
try: | ||
for proc in psutil.process_iter(): | ||
if proc.name == 'java.exe': | ||
proc.kill() | ||
|
||
print 'Building cloud' | ||
h2o.clean_sandbox() | ||
#h2o.parse_our_args() | ||
h2o.build_cloud(4, java_heap_GB=1, capture_output=False, classpath=True) | ||
# h2o.nodes = [h2o.ExternalH2O()] | ||
print 'KMeans' | ||
file = csvPathname = h2o.find_file('smalldata/covtype/covtype.20k.data') | ||
h2o_cmd.runKMeans(csvPathname=file, key='covtype', k=7) | ||
print 'Web' | ||
webbrowser.open("http://localhost:54323/Progress.html?destination_key=covtype.kmeans") | ||
except KeyboardInterrupt: | ||
print 'Interrupted' | ||
finally: | ||
print 'EAT THE BABIES' | ||
# h2o.tear_down_cloud() | ||
h2o.config_json = "testdir_hosts/pytest_config-cypof.json" | ||
h2o_hosts.build_cloud_with_hosts() | ||
|
||
#h2o.build_cloud(4, java_heap_GB=1, capture_output=False, classpath=True) | ||
|
||
file = csvPathname = h2o.find_file('smalldata/covtype/covtype.20k.data') | ||
h2o_cmd.runKMeans(csvPathname=file, key='covtype', k=7) | ||
webbrowser.open("http://localhost:54323/Progress.html?destination_key=covtype.kmeans") | ||
|
||
time.sleep(1) | ||
h2o.tear_down_cloud() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"username": "cypof", | ||
|
||
"use_home_for_ice": true, | ||
"inherit_io": true, | ||
|
||
"h2o_per_host": 1, | ||
"java_heap_GB": 4, | ||
|
||
"hdfs_name_node": "192.168.1.176", | ||
"hdfs_version": "cdh3u5", | ||
"use_hdfs": true, | ||
|
||
"ip": [ | ||
"192.168.1.150", | ||
"192.168.1.151", | ||
"192.168.1.152", | ||
"192.168.1.153", | ||
"192.168.1.154", | ||
"192.168.1.155" | ||
], | ||
|
||
"_ip": [ | ||
"192.168.1.171", | ||
"192.168.1.172", | ||
"192.168.1.173", | ||
"192.168.1.174", | ||
"192.168.1.175", | ||
"192.168.1.176", | ||
"192.168.1.177", | ||
"192.168.1.178", | ||
"192.168.1.179", | ||
"192.168.1.180" | ||
] | ||
} |
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
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
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
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
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
Oops, something went wrong.