Skip to content
Snippets Groups Projects
Commit 4842a07d authored by Reynold Xin's avatar Reynold Xin
Browse files

Merge pull request #287 from azuryyu/master

Fixed job name in the java streaming example.
parents 85a344b4 66b7bea7
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ public class JavaKafkaWordCount {
}
// Create the context with a 1 second batch size
JavaStreamingContext ssc = new JavaStreamingContext(args[0], "NetworkWordCount",
JavaStreamingContext ssc = new JavaStreamingContext(args[0], "KafkaWordCount",
new Duration(2000), System.getenv("SPARK_HOME"), System.getenv("SPARK_EXAMPLES_JAR"));
int numThreads = Integer.parseInt(args[4]);
......
......@@ -437,8 +437,10 @@ class Client(conf: Configuration, args: ClientArguments) extends YarnClientImpl
}
def monitorApplication(appId: ApplicationId): Boolean = {
val interval = System.getProperty("spark.yarn.report.interval", "1000").toLong
while (true) {
Thread.sleep(1000)
Thread.sleep(interval)
val report = super.getApplicationReport(appId)
logInfo("Application report from ASM: \n" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment