Skip to content

Commit

Permalink
fic spark job submit
Browse files Browse the repository at this point in the history
  • Loading branch information
harbby committed Jul 26, 2020
1 parent 442042e commit faaa049
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified sylph-dist/src/data/data.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public SylphSparkYarnClient(ClientArguments clientArgs, SparkConf sparkConf, Yar
this.yarnQueue = yarnQueue;

//String key = DRIVER_MEMORY; //test
Field field = Client.class.getDeclaredField("org$apache$spark$deploy$yarn$Client$$hadoopConf");
//Field field = Client.class.getDeclaredField("org$apache$spark$deploy$yarn$Client$$hadoopConf"); //scala 2.11
Field field = Client.class.getDeclaredField("hadoopConf"); //scala 2.12
field.setAccessible(true);
YarnConfiguration yarnConfiguration = new YarnConfiguration(yarnClient.getConfig());
field.set(this, yarnConfiguration);
Expand Down
4 changes: 4 additions & 0 deletions sylph-yarn/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
configurations.all {
resolutionStrategy { preferProjectModules() }
}

dependencies {
// conflict was found between the following modules:
compileOnly group: 'org.apache.hadoop', name: 'hadoop-client', version: deps.hadoop
Expand Down

0 comments on commit faaa049

Please sign in to comment.