File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
core/src/main/java/com/dtstack/flink/sql
launcher/src/main/java/com/dtstack/flink/sql/launcher Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 4040import org .apache .calcite .config .Lex ;
4141import org .apache .calcite .sql .SqlInsert ;
4242import org .apache .calcite .sql .SqlNode ;
43- import org .apache .commons .cli .CommandLine ;
44- import org .apache .commons .cli .CommandLineParser ;
45- import org .apache .commons .cli .DefaultParser ;
46- import org .apache .commons .cli .Options ;
4743import org .apache .commons .io .Charsets ;
4844import org .apache .commons .lang3 .StringUtils ;
4945import org .apache .flink .api .common .restartstrategy .RestartStrategies ;
5046import org .apache .flink .api .common .time .Time ;
5147import org .apache .flink .api .common .typeinfo .TypeInformation ;
5248import org .apache .flink .api .java .typeutils .RowTypeInfo ;
53- import org .apache .flink .calcite .shaded .com .google .common .base .Preconditions ;
5449import org .apache .flink .calcite .shaded .com .google .common .base .Strings ;
5550import org .apache .flink .calcite .shaded .com .google .common .collect .Lists ;
5651import org .apache .flink .calcite .shaded .com .google .common .collect .Maps ;
Original file line number Diff line number Diff line change @@ -67,13 +67,11 @@ public static void main(String[] args) throws Exception {
6767 String mode = launcherOptions .getMode ();
6868 List <String > argList = optionParser .getProgramExeArgList ();
6969 if (mode .equals (ClusterMode .local .name ())) {
70- //String[] localArgs = argList.toArray(new String[argList.size()]);
7170 Main .main (args );
7271 }else {
7372 String pluginRoot = launcherOptions .getLocalSqlPluginPath ();
7473 File jarFile = new File (getLocalCoreJarPath (pluginRoot ));
75- String [] remoteArgs = argList .toArray (new String [argList .size ()]);
76- PackagedProgram program = new PackagedProgram (jarFile , Lists .newArrayList (), remoteArgs );
74+ PackagedProgram program = new PackagedProgram (jarFile , Lists .newArrayList (), args );
7775 if (StringUtils .isNotBlank (launcherOptions .getSavePointPath ())){
7876 program .setSavepointRestoreSettings (SavepointRestoreSettings .forPath (launcherOptions .getSavePointPath (), BooleanUtils .toBoolean (launcherOptions .getAllowNonRestoredState ())));
7977 }
You can’t perform that action at this time.
0 commit comments