Skip to content

Commit

Permalink
basic support for VPC subnets
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry Ogrodnek committed Sep 29, 2014
1 parent a075f1b commit 5dfe64d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organizationName := "com.bizo"

name := "spark-plug"

version := "1.2.4"
version := "1.2.4.1"

scalaVersion := "2.10.3"

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/com/bizo/hive/sparkplug/emr/Emr.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class Emr private(credentials: Option[AWSCredentials]) {
for (az <- config.availabilityZone) {
flow.setPlacement(new PlacementType().withAvailabilityZone(az))
}

flow.setEc2SubnetId(config.subnetId.orNull)

val groups = instances.map(toInstanceGroupConfig(config, _))

Expand Down
1 change: 1 addition & 0 deletions src/main/scala/com/bizo/hive/sparkplug/emr/config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ trait ClusterConfig {
def availabilityZone: Option[String] = None
def jobFlowRole: Option[String] = None
def serviceRole: Option[String] = None
def subnetId: Option[String] = None
}

class DefaultBidProvider extends BidProvider {
Expand Down

0 comments on commit 5dfe64d

Please sign in to comment.