You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/02/28 19:54:12 UTC

[GitHub] [kafka] rspurgeon commented on pull request #8830: KAFKA-10116: GraalVM native-image prototype

rspurgeon commented on pull request #8830:
URL: https://github.com/apache/kafka/pull/8830#issuecomment-787511695


   @ijuma I'm following your work here.  Just thought I'd share what I see.
   
   I was able to get a functioning native-image broker by putting the native-image config files in the resources folder in the core project:
   ```
   core/src/main/resources/META-INF/native-image
   drwxr-xr-x    - rspurgeon 28 Feb 13:32 core/src/main/resources/META-INF/native-image
   .rw-r--r-- 1.2k rspurgeon 28 Feb 13:39 ├── jni-config.json
   .rw-r--r--   33 rspurgeon 28 Feb 13:39 ├── proxy-config.json
   .rw-r--r--  11k rspurgeon 28 Feb 13:39 ├── reflect-config.json
   .rw-r--r--  177 rspurgeon 28 Feb 13:39 ├── resource-config.json
   .rw-r--r--  166 rspurgeon 28 Feb 13:39 └── serialization-config.json
   ```
   
   and then running: 
   `./gradlew clean core:nativeImage`
   
   This ran for me:
   ```
   ./core/kafka.kafka ./config/raft-combined.properties
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
   ```
   and I could connect a client to list topics.  I do get a SIGINT exception when trying to shutdown the broker from the cli with ctrl-c.
   
   I also turned on --verbose for native-image so I could verify it was reading the configs.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org