This file contains hidden or 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
| { | |
| "jobs": { | |
| "job::/demo::nats-server": { | |
| "docker": { | |
| "image": "nats:0.7.2" | |
| }, | |
| "exposed_ports": [ 4222, 8222 ], | |
| "routes": [ | |
| { | |
| "type": "http", |
This file contains hidden or 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
| #!/bin/bash | |
| function createSlave { | |
| apc app from package $1 -p spark-apcera -m 1G -dr -e SPARK_MASTER=spark://$2:7077 --start-cmd '$SPARK_APCERA_HOME/bin/start-slave.sh' --batch | |
| apc network join $3 -j $1 | |
| apc app start $1 | |
| } | |
| export NETWORK_NAME=sparknet | |
| export MASTER_NAME=spark-m |
This file contains hidden or 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
| apc network join $NETWORK_NAME -j $JOB_NAME |
This file contains hidden or 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
| apc network create $NETWORK_NAME |
This file contains hidden or 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
| export SPARK_WORKER_DIR=/app/work | |
| export SPARK_LOG_DIR=/app/logs | |
| export VIRTUAL_NETWORK_IP=`ifconfig | grep "inet addr" | cut -d: -f2 | grep -v "169." | grep -v "127.0.0.1" | cut -d ' ' -f1` | |
| $SPARK_HOME/sbin/start-slave.sh -h $VIRTUAL_NETWORK_IP $SPARK_MASTER | |
| tail -f /app/logs/* |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| export SPARK_LOG_DIR=/app/logs | |
| export VIRTUAL_NETWORK_IP=`ifconfig | grep "inet addr" | cut -d: -f2 | grep -v "169." | grep -v "127.0.0.1" | cut -d ' ' -f1` | |
| $SPARK_HOME/sbin/start-master.sh -h $VIRTUAL_NETWORK_IP | |
| tail -f /app/logs/* |
This file contains hidden or 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
| apc package build --name spark-apcera-1.6 spark-apcera-package.conf |
This file contains hidden or 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
| name: "spark-apcera" | |
| version: "1.6.1" | |
| build_depends [ | |
| {package: "build-essential"} | |
| ] | |
| depends [ | |
| {runtime: "spark-1.6.0"} | |
| ] |
This file contains hidden or 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
| apc package build --name spark-1.6 spark-package.conf |
This file contains hidden or 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
| name: "spark" | |
| version: "1.6.1" | |
| sources [ | |
| {url: "http://apache.mirror.anlx.net/spark/spark-1.6.1/spark-1.6.1-bin-hadoop2.6.tgz"}, | |
| ] | |
| build_depends [ | |
| { package: "build-essential" } | |
| ] |