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
System.getProperty("sun.java.command") |
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
return Observable.just(appAttempt) | |
.map(attempt -> getConnectUri() | |
.resolve("/yarnui/hn/cluster/appattempt/") | |
.resolve(attempt.getAppAttemptId()) | |
.toString()) | |
.flatMap(this::loadPageByBrowserObservable) | |
.retry(getRetriesMax()) | |
.repeatWhen(ob -> ob.delay(getDelaySeconds(), TimeUnit.SECONDS)) | |
.takeUntil(this::isSparkJobYarnAppAttemptNotJustLaunched) | |
.filter(this::isSparkJobYarnAppAttemptNotJustLaunched) |
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
override private[scheduler] def handleJobSubmitted(jobId: Int, finalRDD: RDD[_], func: (TaskContext, Iterator[_]) => _, partitions: Array[Int], callSite: CallSite, listener: JobListener, properties: Properties): Unit = { | |
val field = func.getClass.getDeclaredField("writerContainer$1") | |
field.setAccessible(true) | |
val writerContainer = field.get(func) | |
val jobField = writerContainer.getClass.getSuperclass.getDeclaredField("job") | |
jobField.setAccessible(true) | |
val job = jobField.get(writerContainer).asInstanceOf[Job].getConfiguration.asInstanceOf[JobConf] | |
logInfo("Output dir: " + FileOutputFormat.getOutputPath(job).toString) | |
super.handleJobSubmitted(jobId, finalRDD, func, partitions, callSite, listener, properties) | |
} |
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
compile ('com.microsoft.azure:azure-client-runtime:1.1.1') { force = true } | |
compile ('com.microsoft.azure:azure-client-authentication:1.1.1') { force = true } |
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
<plugin> | |
<groupId>org.codehaus.gmavenplus</groupId> | |
<artifactId>gmavenplus-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>generate-test-resources</phase> | |
<goals> | |
<goal>execute</goal> | |
</goals> | |
</execution> |
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
final Class<?> jobClass = Class.forName(jobClassName); | |
System.out.println("Run Spark Job: " + jobClass.getName()); | |
final Method jobMain = jobClass.getMethod("main", String[].class); | |
final Object[] jobArgs = new Object[]{ args.subList(1, args.size()).toArray(new String[0]) }; | |
jobMain.invoke(null, jobArgs); |
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
//@XStreamAlias("sparkJobLocalRunConfiguration") | |
@Tag("spark-local-run-configurable-model") | |
public class SparkLocalRunConfigurableModel implements CommonJavaRunConfigurationParameters { | |
@XStreamAlias("isParallelExecution") | |
private boolean isParallelExecution; | |
@XStreamAlias("isPassParentEnvs") | |
private boolean isPassParentEnvs; | |
@XStreamOmitField | |
@NotNull | |
private Project project; |
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
ClassLoader.getSystemClassLoader.asInstanceOf[java.net.URLClassLoader].getURLs |
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
@Mock | |
def globStatus(invocation: Invocation, pathPattern: Path, filter: PathFilter): Array[FileStatus] = { | |
val globberClassConstructor = Class.forName("org.apache.hadoop.fs.Globber").getDeclaredConstructor(classOf[FileSystem], classOf[Path], classOf[PathFilter]) | |
globberClassConstructor.setAccessible(true) | |
val globber = globberClassConstructor.newInstance(invocation.getInvokedInstance, pathPattern, filter) | |
Deencapsulation.invoke(globber.asInstanceOf[Object], "glob") |
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
val globberClassConstructor = Class.forName("org.apache.hadoop.fs.Globber").getDeclaredConstructor(classOf[FileSystem], classOf[Path], classOf[PathFilter]) | |
globberClassConstructor.setAccessible(true) | |
val globber = globberClassConstructor.newInstance(this, pathPattern, filter) |
NewerOlder