Skip to content

Commit f17dc3f

Browse files
author
dapeng
committed
测试类
1 parent 83c064f commit f17dc3f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

launcher/src/main/test/java/com/dtstack/flink/sql/launcher/PluginLoadModeTest.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,22 @@ public static void testClasspathMode() throws Exception {
4848
LauncherMain.main(sql);
4949
}
5050

51+
52+
public static void testRocSql() throws Exception{
53+
String[] sql = new String[]{"-mode", "local", "-sql", "/Users/roc/Documents/flink_sql/sql/zy_sql/hbase_side.sql", "-name", "roc",
54+
"-localSqlPluginPath", "/Users/roc/workspace/git_code/flinkStreamSQL/plugins",
55+
"-remoteSqlPluginPath", "/Users/roc/workspace/git_code/flinkStreamSQL/plugins",
56+
"-flinkconf", "/Users/roc/Documents/flink_sql/flinkconf",
57+
"-confProp", "{\"sql.checkpoint.cleanup.mode\":\"false\",\"sql.checkpoint.interval\":10000,\"time.characteristic\":\"EventTime\"}",
58+
"-yarnconf", "/Users/roc/Documents/flink_sql/yarnconf",
59+
"-flinkJarPath", "/Users/roc/Documents/flink_sql/flinkJarPath", "-queue", "c", "-pluginLoadMode", "classpath"};
60+
System.setProperty("HADOOP_USER_NAME", "admin");
61+
LauncherMain.main(sql);
62+
}
63+
5164
public static void main(String[] args) throws Exception {
52-
testShipfileMode();
65+
testRocSql();
66+
// testShipfileMode();
5367
// testClasspathMode();
5468
}
5569
}

0 commit comments

Comments
 (0)