-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,27 @@ | |
* @Email: [email protected] | ||
*/ | ||
public class DescribeStaticsDemo { | ||
static String mainClass = "statics.DescribeStatics"; | ||
public static void main(String[] args) throws IOException { | ||
// Prepare.uploadJar(); | ||
first(); | ||
// first(); | ||
second(); | ||
} | ||
|
||
public static void first() { | ||
String mainClass = "statics.DescribeStatics"; | ||
String appName = "demo_30m statics"; | ||
String[] arguments = {"default.demo_30m", "default.demo_30m_statics", appName}; | ||
Args innerArgs = Args.getArgs(appName, mainClass, arguments, EngineType.SPARK); | ||
SparkYarnJob.runAndMonitor(innerArgs); | ||
} | ||
|
||
/** | ||
* 1个 ApplicationMaster ; 2个子节点Executor; 耗时4.7 mins | ||
*/ | ||
public static void second(){ | ||
String appName = "demo_600w statics"; | ||
String[] arguments = {"default.demo_600w", "default.demo_600w_statics", appName}; | ||
Args innerArgs = Args.getArgs(appName, mainClass, arguments, EngineType.SPARK); | ||
SparkYarnJob.runAndMonitor(innerArgs); | ||
} | ||
} |