@@ -67,6 +67,8 @@ public class LauncherOptionParser {
6767
6868 public static final String OPTION_FLINK_JAR_PATH = "flinkJarPath" ;
6969
70+ public static final String OPTION_QUEUE = "queue" ;
71+
7072 private Options options = new Options ();
7173
7274 private BasicParser parser = new BasicParser ();
@@ -87,6 +89,7 @@ public LauncherOptionParser(String[] args) {
8789 options .addOption (OPTION_SAVE_POINT_PATH , true , "Savepoint restore path" );
8890 options .addOption (OPTION_ALLOW_NON_RESTORED_STATE , true , "Flag indicating whether non restored state is allowed if the savepoint" );
8991 options .addOption (OPTION_FLINK_JAR_PATH , true , "flink jar path for submit of perjob mode" );
92+ options .addOption (OPTION_QUEUE , true , "flink jar path for submit of perjob mode" );
9093
9194 try {
9295 CommandLine cl = parser .parse (options , args );
@@ -145,6 +148,10 @@ public LauncherOptionParser(String[] args) {
145148 properties .setFlinkJarPath (flinkJarPath );
146149 }
147150
151+ String queue = cl .getOptionValue (OPTION_QUEUE );
152+ if (StringUtils .isNotBlank (queue )){
153+ properties .setQueue (queue );
154+ }
148155 } catch (Exception e ) {
149156 throw new RuntimeException (e );
150157 }
@@ -161,7 +168,8 @@ public List<String> getProgramExeArgList() throws Exception {
161168 String key = one .getKey ();
162169 if (OPTION_FLINK_CONF_DIR .equalsIgnoreCase (key )
163170 || OPTION_YARN_CONF_DIR .equalsIgnoreCase (key )
164- || OPTION_FLINK_JAR_PATH .equalsIgnoreCase (key )){
171+ || OPTION_FLINK_JAR_PATH .equalsIgnoreCase (key )
172+ || OPTION_QUEUE .equalsIgnoreCase (key )){
165173 continue ;
166174 }
167175
0 commit comments