Example: H2O
The following shell script shows you how to use this new feature to run a distributed H2O workload.
You can
run this script in any active session.
#!/bin/bash wget https://h2o-release.s3.amazonaws.com/h2o/rel-yates/4/h2o-3.24.0.4-cdh6.0.zip unzip h2o-3.24.0.4-cdh6.0.zip hadoop jar h2o-3.24.0.4-cdh6.0/h2odriver.jar \ -nodes 1 \ -mapperXmx 1g \ -extdriverif $CDSW_HOST_IP_ADDRESS \ -driverif $CDSW_IP_ADDRESS \ -driverport $CDSW_HOST_PORT_0 \ -disown # Clean up yarn application -kill \ $(yarn application -list 2>/dev/null | grep H2O | awk ' {print $1;} ')