Skip to content
This repository has been archived by the owner on Mar 12, 2018. It is now read-only.

Commit

Permalink
[Minor] Fix dag .json directory into one (#624)
Browse files Browse the repository at this point in the history
Fixed dag .json directory into a single place - `./dag`, which is `default_value` of `JobConf.DAGDirectory`
  • Loading branch information
jeongyooneo authored and sanha committed Dec 3, 2017
1 parent 065b0d1 commit 14ce517
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 31 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ sample_output*
dag/*
#
# ----------------------------------------------------------------------
# Configuration files
# ----------------------------------------------------------------------
config/*
!config/default.json
#
# ----------------------------------------------------------------------
# IDE settings
# ----------------------------------------------------------------------
.externalToolBuilders
Expand Down Expand Up @@ -59,4 +53,4 @@ MetricsData
ml-data
tang.conf
*.sw[op]
profile-*.json
*.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public DAG<PhysicalStage, PhysicalStageEdge> apply(final DAG<IRVertex, IREdge> i
// first, stage-partition the IR DAG.
final DAG<Stage, StageEdge> dagOfStages = stagePartitionIrDAG(irDAG);
// for debugging purposes.
dagOfStages.storeJSON(dagDirectory, "plan-logical", "logical execution plan");
dagOfStages.storeJSON("../" + dagDirectory, "plan-logical", "logical execution plan");
// then create tasks and make it into a physical execution plan.
return stagesIntoPlan(dagOfStages);
}
Expand Down
17 changes: 0 additions & 17 deletions tests/config/default.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/dag/plan-logical.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
*/
public final class CompilerTestUtil {
public static final String rootDir = System.getProperty("user.dir");
public static final String dagDir = rootDir + "/../dag";
public static final String padoPolicy = PadoPolicy.class.getCanonicalName();
public static final String sailfishDisaggPolicy = SailfishDisaggPolicy.class.getCanonicalName();
public static final String defaultPolicy = DefaultPolicy.class.getCanonicalName();
Expand Down Expand Up @@ -86,7 +87,7 @@ public static DAG<IRVertex, IREdge> compileALSInefficientDAG() throws Exception
final String input = rootDir + "/../examples/src/main/resources/sample_input_als";
final String numFeatures = "10";
final String numIteration = "3";
final String dagDirectory = "./dag";
final String dagDirectory = dagDir;

final ArgBuilder alsArgBuilder = new ArgBuilder()
.addJobId(AlternatingLeastSquareInefficient.class.getSimpleName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class AlternatingLeastSquareITCase {
private static final String input = CompilerTestUtil.rootDir + "/../examples/src/main/resources/sample_input_als";
private static final String numFeatures = "10";
private static final String numIteration = "3";
private static final String dagDirectory = "./dag";
private static final String dagDirectory = CompilerTestUtil.dagDir;

public static ArgBuilder builder = new ArgBuilder()
.addJobId(AlternatingLeastSquareITCase.class.getSimpleName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class BroadcastITCase {
private static final int TIMEOUT = 120000;
private static final String input = CompilerTestUtil.rootDir + "/../examples/src/main/resources/sample_input_mr";
private static final String output = CompilerTestUtil.rootDir + "/../examples/src/main/resources/sample_output";
private static final String dagDirectory = "./dag";
private static final String dagDirectory = CompilerTestUtil.dagDir;

private static ArgBuilder builder = new ArgBuilder()
.addJobId(BroadcastITCase.class.getSimpleName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class MapReduceITCase {
private static final int TIMEOUT = 60000;
private static final String input = CompilerTestUtil.rootDir + "/../examples/src/main/resources/sample_input_mr";
private static final String output = CompilerTestUtil.rootDir + "/../examples/src/main/resources/sample_output";
private static final String dagDirectory = "./dag";
private static final String dagDirectory = CompilerTestUtil.dagDir;

public static ArgBuilder builder = new ArgBuilder()
.addJobId(MapReduceITCase.class.getSimpleName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class MultinomialLogisticRegressionITCase {
private static final String numFeatures = "100";
private static final String numClasses = "5";
private static final String numIteration = "3";
private static final String dagDirectory = "./dag";
private static final String dagDirectory = CompilerTestUtil.dagDir;

public static ArgBuilder builder = new ArgBuilder()
.addJobId(MultinomialLogisticRegressionITCase.class.getSimpleName())
Expand Down

0 comments on commit 14ce517

Please sign in to comment.