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

kafka version 2.5.0 on Windows Cygwin could not started when using openjdk or corretto 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • core
    • None

    Description

      kafka version 2.5.0 on Windows Cygwin could not started when using openjdk or corretto 11, and switching back to use older version of jdk (e.g 1.8.221) it worked fine.

      This was the error shown in the log file "kafkaServer-gc.log" when using openjdk11:
      [0.002s][error][logging] Invalid decorator '/kafka/logs/kafkaServer-gc.log'.
      Invalid -Xlog option '-Xlog:gc:file=C:/kafka/logs/kafkaServer-gc.log:time,tags:filecount=10,filesize=102400', see error log for details.*
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
       
      I found this info as known issue with open jdk:

      https://bugs.openjdk.java.net/browse/JDK-8215398 
       
      Follow the lead from the link, I made changes to this script, I got it to start using openjdk 11:

      Edited this file: C:/kafka/bin/kafka-run-class.sh

      around the line # 296:

      added this line right before the line setting the property for "KAFKA_GC_LOG_OPTS":

      LOG_DIR=`echo $LOG_DIR | sed 's/C://'`

      Attachments

        Activity

          People

            Unassigned Unassigned
            dpham66@yahoo.com Duke Pham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: