Instead of using parameters in the command line, create a configuration file and read from that file. A .json file is preferred to be used and read from that file the number of producers, the number of machines, the available brokers (or get the available brokers through the use of kafka-python library) and the file to be send. As a parameter in the command line should be passed ONLY the type of producer (agent or master).
Instead of using parameters in the command line, create a configuration file and read from that file. A .json file is preferred to be used and read from that file the number of producers, the number of machines, the available brokers (or get the available brokers through the use of kafka-python library) and the file to be send. As a parameter in the command line should be passed ONLY the type of producer (agent or master).