Skip to content

Commit

Permalink
Simplify container dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo authored and losipiuk committed Sep 30, 2020
1 parent 71ff6fd commit d13577b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ public void extendEnvironment(Environment.Builder builder)
forHostPath(dockerFiles.getDockerFilesHostPath("conf/environment/singlenode-spark-iceberg/iceberg.properties")),
CONTAINER_PRESTO_ETC + "/catalog/iceberg.properties"));

DockerContainer spark = createSpark();
// Spark needs the HMS to be up before it starts
builder.configureContainer(HADOOP, spark::dependsOn);

builder.addContainer(spark);
builder.addContainer(createSpark())
.containerDependsOn("spark", HADOOP);
}

@SuppressWarnings("resource")
Expand Down

0 comments on commit d13577b

Please sign in to comment.