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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to