[ https://issues.apache.org/jira/browse/FLINK-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143147#comment-15143147 ]
Vijay Srinivasaraghavan edited comment on FLINK-3189 at 2/11/16 5:52 PM: ------------------------------------------------------------------------- What is the right way to pass arguments in web submission client? I ran below command from CLI and it works fine. bin/flink run dist/helloworld-1.0.jar -topic topic1 -bootstrap.servers 10.10.192.227:31000 -zookeeper.connect 10.10.192.226:2181 -group.id dev -fsUri hdfs://10.247.10.193/sink where as in the web client, after I upload the jar file, when I provide below argument, I am getting "org.apache.flink.client.cli.CliArgsException: Unrecognized option: -topic" error. -topic topic1 -bootstrap.servers 10.10.192.227:31000 -zookeeper.connect 10.10.192.226:2181 -group.id dev -fsUri hdfs://10.247.10.193/sink was (Author: vijikarthi): What is the right way to pass arguments in web submission client? I ran below command from CLI and it works fine. bin/flink run dist/helloworld-1.0.jar -topic topic1 -bootstrap.servers 10.10.192.227:31000 -zookeeper.connect 10.10.192.226:2181 -group.id dev -fsUri hdfs://10.247.10.193/sink where as in the web client, after I upload the jar file, when I provide below argument, I am getting "org.apache.flink.client.cli.CliArgsException: Unrecognized option: -topic" error. --topic topic1 --bootstrap.servers 10.10.192.227:31000 --zookeeper.connect 10.10.192.226:2181 --group.id dev --fsUri hdfs://10.247.10.193/sink > Error while parsing job arguments passed by CLI > ----------------------------------------------- > > Key: FLINK-3189 > URL: https://issues.apache.org/jira/browse/FLINK-3189 > Project: Flink > Issue Type: Bug > Components: Command-line client > Affects Versions: 0.10.1 > Reporter: Filip Leczycki > Assignee: Matthias J. Sax > Priority: Minor > Fix For: 1.0.0, 0.10.2 > > > Flink CLI treats job arguments provided in format "-<char>" as its own > parameters, which results in errors in execution. > Example 1: > call: >bin/flink info myJarFile.jar -f flink -i <filepath> -m 1 > error: Unrecognized option: -f > Example 2: > Job myJarFile.jar is uploaded to web submission client, flink parameter box > is empty > program arguments box: -f flink -i <filepath> -m 1 > error: > An unexpected error occurred: > Unrecognized option: -f > org.apache.flink.client.cli.CliArgsException: Unrecognized option: -f > at > org.apache.flink.client.cli.CliFrontendParser.parseInfoCommand(CliFrontendParser.java:296) > at org.apache.flink.client.CliFrontend.info(CliFrontend.java:376) > at > org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:983) > at > org.apache.flink.client.web.JobSubmissionServlet.doGet(JobSubmissionServlet.java:171) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:532) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:965) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:388) > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:187) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:901) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > at > org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) > at org.eclipse.jetty.server.Server.handle(Server.java:348) > at > org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) > at > org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) > at > org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:425) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) > at java.lang.Thread.run(Thread.java:745) > Execution of > >bin/flink run myJarFile.jar -f flink -i <filepath> -m 1 > works perfectly fine -- This message was sent by Atlassian JIRA (v6.3.4#6332)