You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Duke Pham (Jira)" <ji...@apache.org> on 2020/11/18 18:29:00 UTC

[jira] [Created] (KAFKA-10738) kafka version 2.5.0 on Windows Cygwin could not started when using openjdk or corretto 11

Duke Pham created KAFKA-10738:
---------------------------------

             Summary: kafka version 2.5.0 on Windows Cygwin could not started when using openjdk or corretto 11
                 Key: KAFKA-10738
                 URL: https://issues.apache.org/jira/browse/KAFKA-10738
             Project: Kafka
          Issue Type: Bug
          Components: core
    Affects Versions: 2.5.0
            Reporter: Duke Pham


h5. 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 "" 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, it got it to start using openjdk 11:

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

around the line # 296:

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

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)