[jira] [Commented] (FLINK-1424) bin/flink run does not recognize -c parameter anymore
[ https://issues.apache.org/jira/browse/FLINK-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14291702#comment-14291702 ] ASF GitHub Bot commented on FLINK-1424: --- Github user mxm commented on the pull request: https://github.com/apache/flink/pull/331#issuecomment-71446044 @rmetzger @StephanEwen I squashed the commits, merged the recent changes in the CliFrontend on the master, and addressed [FLINK-1424](https://issues.apache.org/jira/browse/FLINK-1424). bin/flink run does not recognize -c parameter anymore - Key: FLINK-1424 URL: https://issues.apache.org/jira/browse/FLINK-1424 Project: Flink Issue Type: Bug Components: TaskManager Affects Versions: master Reporter: Carsten Brandt bin/flink binary does not recognize `-c` parameter anymore which specifies the class to run: {noformat} $ ./flink run /path/to/target/impro3-ws14-flink-1.0-SNAPSHOT.jar -c de.tu_berlin.impro3.flink.etl.FollowerGraphGenerator /tmp/flink/testgraph.txt 1 usage: emma-experiments-impro3-ss14-flink [-?] emma-experiments-impro3-ss14-flink: error: unrecognized arguments: '-c' {noformat} before this command worked fine and executed the job. I tracked it down to the following commit using `git bisect`: {noformat} 93eadca782ee8c77f89609f6d924d73021dcdda9 is the first bad commit commit 93eadca782ee8c77f89609f6d924d73021dcdda9 Author: Alexander Alexandrov alexander.s.alexand...@gmail.com Date: Wed Dec 24 13:49:56 2014 +0200 [FLINK-1027] [cli] Added support for '--' and '-' prefixed tokens in CLI program arguments. This closes #278 :04 04 a1358e6f7fe308b4d51a47069f190a29f87fdeda d6f11bbc9444227d5c6297ec908e44b9644289a9 Mflink-clients {noformat} https://github.com/apache/flink/commit/93eadca782ee8c77f89609f6d924d73021dcdda9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1424) bin/flink run does not recognize -c parameter anymore
[ https://issues.apache.org/jira/browse/FLINK-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14291133#comment-14291133 ] ASF GitHub Bot commented on FLINK-1424: --- Github user rmetzger commented on the pull request: https://github.com/apache/flink/pull/331#issuecomment-71376859 @mxm: Since you have some experience with the CliFrontend now, would you mind looking into https://issues.apache.org/jira/browse/FLINK-1424 as well? bin/flink run does not recognize -c parameter anymore - Key: FLINK-1424 URL: https://issues.apache.org/jira/browse/FLINK-1424 Project: Flink Issue Type: Bug Components: TaskManager Affects Versions: master Reporter: Carsten Brandt bin/flink binary does not recognize `-c` parameter anymore which specifies the class to run: {noformat} $ ./flink run /path/to/target/impro3-ws14-flink-1.0-SNAPSHOT.jar -c de.tu_berlin.impro3.flink.etl.FollowerGraphGenerator /tmp/flink/testgraph.txt 1 usage: emma-experiments-impro3-ss14-flink [-?] emma-experiments-impro3-ss14-flink: error: unrecognized arguments: '-c' {noformat} before this command worked fine and executed the job. I tracked it down to the following commit using `git bisect`: {noformat} 93eadca782ee8c77f89609f6d924d73021dcdda9 is the first bad commit commit 93eadca782ee8c77f89609f6d924d73021dcdda9 Author: Alexander Alexandrov alexander.s.alexand...@gmail.com Date: Wed Dec 24 13:49:56 2014 +0200 [FLINK-1027] [cli] Added support for '--' and '-' prefixed tokens in CLI program arguments. This closes #278 :04 04 a1358e6f7fe308b4d51a47069f190a29f87fdeda d6f11bbc9444227d5c6297ec908e44b9644289a9 Mflink-clients {noformat} https://github.com/apache/flink/commit/93eadca782ee8c77f89609f6d924d73021dcdda9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1424) bin/flink run does not recognize -c parameter anymore
[ https://issues.apache.org/jira/browse/FLINK-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14291265#comment-14291265 ] Max Michels commented on FLINK-1424: [~cebe] The commit you mention makes it possible to have - or -- prefixed arguments for the jobs. As of this change, everything behind the job jar file is treated as arguments for the jar. {{./flink run -c classpath job.jar}} sets the class of the job.jar to start execution. {{./flink run job.jar -c classpath}} sets the arguments for job.jar to -c and classpath Currently, the parser stops if it finds a non-option (argument not prefixed with - or --) after run. That way, you cannot accidentally set options of the flink command line tool with your job's arguments. Imagine, your program had the argument -m. If the above two examples were equivalent, you would also change the -m flag of the flink command line tool which would overwrite the job manager url and lead to a failed submission of the job. Thus, I suggest to adapt the help notice to make it clear where the flink command line tool options should go. bin/flink run does not recognize -c parameter anymore - Key: FLINK-1424 URL: https://issues.apache.org/jira/browse/FLINK-1424 Project: Flink Issue Type: Bug Components: TaskManager Affects Versions: master Reporter: Carsten Brandt bin/flink binary does not recognize `-c` parameter anymore which specifies the class to run: {noformat} $ ./flink run /path/to/target/impro3-ws14-flink-1.0-SNAPSHOT.jar -c de.tu_berlin.impro3.flink.etl.FollowerGraphGenerator /tmp/flink/testgraph.txt 1 usage: emma-experiments-impro3-ss14-flink [-?] emma-experiments-impro3-ss14-flink: error: unrecognized arguments: '-c' {noformat} before this command worked fine and executed the job. I tracked it down to the following commit using `git bisect`: {noformat} 93eadca782ee8c77f89609f6d924d73021dcdda9 is the first bad commit commit 93eadca782ee8c77f89609f6d924d73021dcdda9 Author: Alexander Alexandrov alexander.s.alexand...@gmail.com Date: Wed Dec 24 13:49:56 2014 +0200 [FLINK-1027] [cli] Added support for '--' and '-' prefixed tokens in CLI program arguments. This closes #278 :04 04 a1358e6f7fe308b4d51a47069f190a29f87fdeda d6f11bbc9444227d5c6297ec908e44b9644289a9 Mflink-clients {noformat} https://github.com/apache/flink/commit/93eadca782ee8c77f89609f6d924d73021dcdda9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1424) bin/flink run does not recognize -c parameter anymore
[ https://issues.apache.org/jira/browse/FLINK-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14288543#comment-14288543 ] Stephan Ewen commented on FLINK-1424: - [~aalexandrov] was also suggesting to use a different CLI library in [FLINK-1347] Maybe that could fix this as well. bin/flink run does not recognize -c parameter anymore - Key: FLINK-1424 URL: https://issues.apache.org/jira/browse/FLINK-1424 Project: Flink Issue Type: Bug Components: TaskManager Affects Versions: master Reporter: Carsten Brandt bin/flink binary does not recognize `-c` parameter anymore which specifies the class to run: {noformat} $ ./flink run /path/to/target/impro3-ws14-flink-1.0-SNAPSHOT.jar -c de.tu_berlin.impro3.flink.etl.FollowerGraphGenerator /tmp/flink/testgraph.txt 1 usage: emma-experiments-impro3-ss14-flink [-?] emma-experiments-impro3-ss14-flink: error: unrecognized arguments: '-c' {noformat} before this command worked fine and executed the job. I tracked it down to the following commit using `git bisect`: {noformat} 93eadca782ee8c77f89609f6d924d73021dcdda9 is the first bad commit commit 93eadca782ee8c77f89609f6d924d73021dcdda9 Author: Alexander Alexandrov alexander.s.alexand...@gmail.com Date: Wed Dec 24 13:49:56 2014 +0200 [FLINK-1027] [cli] Added support for '--' and '-' prefixed tokens in CLI program arguments. This closes #278 :04 04 a1358e6f7fe308b4d51a47069f190a29f87fdeda d6f11bbc9444227d5c6297ec908e44b9644289a9 Mflink-clients {noformat} https://github.com/apache/flink/commit/93eadca782ee8c77f89609f6d924d73021dcdda9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1424) bin/flink run does not recognize -c parameter anymore
[ https://issues.apache.org/jira/browse/FLINK-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14286098#comment-14286098 ] Stephan Ewen commented on FLINK-1424: - Sounds good. [~cebe] can you make a patch for this? bin/flink run does not recognize -c parameter anymore - Key: FLINK-1424 URL: https://issues.apache.org/jira/browse/FLINK-1424 Project: Flink Issue Type: Bug Components: TaskManager Affects Versions: master Reporter: Carsten Brandt bin/flink binary does not recognize `-c` parameter anymore which specifies the class to run: {noformat} $ ./flink run /path/to/target/impro3-ws14-flink-1.0-SNAPSHOT.jar -c de.tu_berlin.impro3.flink.etl.FollowerGraphGenerator /tmp/flink/testgraph.txt 1 usage: emma-experiments-impro3-ss14-flink [-?] emma-experiments-impro3-ss14-flink: error: unrecognized arguments: '-c' {noformat} before this command worked fine and executed the job. I tracked it down to the following commit using `git bisect`: {noformat} 93eadca782ee8c77f89609f6d924d73021dcdda9 is the first bad commit commit 93eadca782ee8c77f89609f6d924d73021dcdda9 Author: Alexander Alexandrov alexander.s.alexand...@gmail.com Date: Wed Dec 24 13:49:56 2014 +0200 [FLINK-1027] [cli] Added support for '--' and '-' prefixed tokens in CLI program arguments. This closes #278 :04 04 a1358e6f7fe308b4d51a47069f190a29f87fdeda d6f11bbc9444227d5c6297ec908e44b9644289a9 Mflink-clients {noformat} https://github.com/apache/flink/commit/93eadca782ee8c77f89609f6d924d73021dcdda9 -- This message was sent by Atlassian JIRA (v6.3.4#6332)