You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/05/12 10:25:12 UTC

[GitHub] [flink] zeliu commented on pull request #19706: modify the number of parameters

zeliu commented on PR #19706:
URL: https://github.com/apache/flink/pull/19706#issuecomment-1124823145

   @MartijnVisser  Thanks for your reply, but if the number of arguments less than 5, it will throw exceptions.
   In org.apache.flink.streaming.kafka.test.KafkaExample ,I provided 4 parameters, and it will report an  #error.
   ```
     if (parameterTool.getNumberOfParameters() < 5) {
               System.out.println(
                       "Missing parameters!\n"
                               + "Usage: Kafka --input-topic <topic> --output-topic <topic> "
                               + "--bootstrap.servers <kafka brokers> "
                               + "--group.id <some id>");
               throw new Exception(
                       "Missing parameters!\n"
                               + "Usage: Kafka --input-topic <topic> --output-topic <topic> "
                               + "--bootstrap.servers <kafka brokers> "
                               + "--group.id <some id>");
           }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org