maniekes commented on PR #13321: URL: https://github.com/apache/kafka/pull/13321#issuecomment-1593543359
@divijvaidya, sure, it's quite simple. 1. open git bash, checkout trunk 2. build ``` ./gradlew jar -PscalaVersion=2.13.10 ``` 3. checkout trunk before my commits: `git checkout HEAD~~` 4. start zookeeper: ``` ****@rafal-laptok MINGW64 /c/rafal/git/maniekes-kafka ((c5df47a1cb...)) $ ./bin/zookeeper-server-start.sh config/zookeeper.properties [0.003s][error][logging] Error opening log file '/c/rafal/git/maniekes-kafka/bin/../logs/zookeeper-gc.log': No such file or directory [0.003s][error][logging] Initialization of output 'file=/c/rafal/git/maniekes-kafka/bin/../logs/zookeeper-gc.log' using options 'filecount=10,filesize=100M' failed. Invalid -Xlog option '-Xlog:gc*:file=/c/rafal/git/maniekes-kafka/bin/../logs/zookeeper-gc.log:time,tags:filecount=10,filesize=100M', see error log for details. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. ``` 5. start kafka: ``` ****@rafal-laptok MINGW64 /c/rafal/git/maniekes-kafka ((c5df47a1cb...)) $ ./bin/kafka-server-start.sh config/server.properties [0.003s][error][logging] Error opening log file '/c/rafal/git/maniekes-kafka/bin/../logs/kafkaServer-gc.log': No such file or directory [0.003s][error][logging] Initialization of output 'file=/c/rafal/git/maniekes-kafka/bin/../logs/kafkaServer-gc.log' using options 'filecount=10,filesize=100M' failed. Invalid -Xlog option '-Xlog:gc*:file=/c/rafal/git/maniekes-kafka/bin/../logs/kafkaServer-gc.log:time,tags:filecount=10,filesize=100M', see error log for details. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. ``` 6. checkout trunk ``` git checkout trunk ``` 7. start zookepper: ``` *****@rafal-laptok MINGW64 /c/rafal/git/maniekes-kafka (trunk) $ ./bin/zookeeper-server-start.sh config/zookeeper.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/tools/build/dependant-libs-2.13.10/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/trogdor/build/dependant-libs-2.13.10/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/connect/runtime/build/dependant-libs/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/connect/mirror/build/dependant-libs/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory] [2023-06-15 20:26:34,480] INFO Reading configuration from: config/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,481] WARN config\zookeeper.properties is relative. Prepend .\ to indicate that you're sure! (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,482] WARN \tmp\zookeeper is relative. Prepend .\ to indicate that you're sure! (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,483] INFO clientPortAddress is 0.0.0.0:2181 (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,483] INFO secureClientPort is not set (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,483] INFO observerMasterPort is not set (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,484] INFO metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider (org.apache.zookeeper.server.quorum.QuorumPeerConfig) [2023-06-15 20:26:34,485] INFO autopurge.snapRetainCount set to 3 (org.apache.zookeeper.server.DatadirCleanupManager) [2023-06-15 20:26:34,485] INFO autopurge.purgeInterval set to 0 (org.apache.zookeeper.server.DatadirCleanupManager) ..... (all starts fine) ``` 8. start kafka: ``` ****@rafal-laptok MINGW64 /c/rafal/git/maniekes-kafka (trunk) $ ./bin/kafka-server-start.sh config/server.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/tools/build/dependant-libs-2.13.10/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/trogdor/build/dependant-libs-2.13.10/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/connect/runtime/build/dependant-libs/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/rafal/git/maniekes-kafka/connect/mirror/build/dependant-libs/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory] [2023-06-15 20:27:22,294] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$) [2023-06-15 20:27:22,451] INFO Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation (org.apache.zookeeper.common.X509Util) [2023-06-15 20:27:22,512] INFO starting (kafka.server.KafkaServer) [2023-06-15 20:27:22,513] INFO Connecting to zookeeper on localhost:2181 (kafka.server.KafkaServer) [2023-06-15 20:27:22,521] INFO [ZooKeeperClient Kafka server] Initializing a new session to localhost:2181. (kafka.zookeeper.ZooKeeperClient) [2023-06-15 20:27:22,549] INFO Client environment:zookeeper.version=3.6.4--d65253dcf68e9097c6e95a126463fd5fdeb4521c, built on 12/18/2022 18:10 GMT (org.apache.zookeeper.ZooKeeper) [2023-06-15 20:27:22,550] INFO Client environment:host.name=192.168.1.137 (org.apache.zookeeper.ZooKeeper) [2023-06-15 20:27:22,550] INFO Client environment:java.version=19.0.1 (org.apache.zookeeper.ZooKeeper) [2023-06-15 20:27:22,550] INFO Client environment:java.vendor=Oracle Corporation (org.apache.zookeeper.ZooKeeper) ... (all looks fine) ``` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org