Indupa edited a comment on pull request #7898: URL: https://github.com/apache/kafka/pull/7898#issuecomment-1028142767
Hi @dongjinleekr ,I could able to build latest patch and also need one input from you. Is All dependencies of log4j 1.x is completely Removed in this Patch............?, I could see,still dependency on log4j_1.2.17 in build.gradle and dependency.gradle.Also there are dependency on log4j.properties and tools-log4j.properties instead of log4j2.properties and tools-log4j2.properties in some of the files.Is it still require or we can remove those dependencies as well.............?. The things I tried from my end is as follows, 1. I tried updating build.gradle and dependency.gradle by removing the dependency of log4j. 2. Also,i tried updating some of the files,where you have added echo statement to update log4j.properties into log4j2.properties in those places where u have mentioned in that patch file. 3. After that,i compiled the code and extracted folder under "C:\kafka_2.8.1\core\build\distributions\kafka_2.13-2.8.1\kafka_2.13-2.8.1" and named it as kafka.zip file and using in our component by installing and run it as kafka Service. 4.But when i tried running kafka,iam getting following exception. 2022-02-02 05:57:17.158 [INF] [Kafka] Connecting to localhost:2181 2022-02-02 05:57:27.571 [INF] [Kafka] WATCHER:: 2022-02-02 05:57:27.571 [INF] [Kafka] WatchedEvent state:SyncConnected type:None path:null 2022-02-02 05:57:27.574 [INF] [Kafka] [] 2022-02-02 05:58:17.227 [ERR] [Kafka] ERROR StatusLogger Reconfiguration failed: No configuration found for '764c12b6' at 'null' in 'null' 2022-02-02 05:58:17.684 [INF] [Kafka] DEPRECATED: using log4j 1.x configuration. To use log4j 2.x configuration, run with: 'set KAFKA_LOG4J_OPTS=-Dlog4j.configurationFile=file:C:\kafka/config/tools-log4j2.properties' To brief about my requirement is , Currently the kafka package we using,contains some of the patches which we have added on top of kafka_2.8.1 source code.In which one the custom change we have made is,we are using apache-log4j-extras 1.2.17 with timebased triggering policy for rolling log files as it is not available in log4j.1.2.17. Since this version has vulnerability ,we wanted to use that log4j2 api for this rolling policy logic which is working in your patch. Can you please help me on this...............? -- 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