Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2485

Allow producer performance to take properties from a file via --producer.config command line parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      In order to allow ProducerPerformance to produce via ssl connection, we need the following (example) configuration:

      security.protocol=SSL
      ssl.protocol=TLS
      ssl.truststore.type=JKS
      ssl.truststore.location=serverkeystore.jks
      ssl.truststore.password=password
      ssl.keymanager.algorithm=SunX509
      ssl.trustmanager.algorithm=SunX509

      There are two ways to achieve it: 1) extend ProducerPerformance to explicitly accept all 7 ssl-related parameters; 2) allow ProducerPerformance to take properties from a file via --consumer.config command line parameter.

      It seems option 2) is better, because it requires less code, allows new options to be easily added in the future, and doesn't require user to specify password in the command line.

      Attachments

        Activity

          People

            lindong Dong Lin
            lindong Dong Lin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: