-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-18773: Migrate the log4j1 config to log4j 2 for native image and README #18872
Conversation
@FrankYang0529 How is it going with this one? |
Hi @dajac, I may need more time on this. Currently, there is some error message like this. I'm still check where the log from. Thanks.
|
@FrankYang0529 Thanks. Do you think that we could merge it this week? |
the failure may be related to apache/logging-log4j2#1539 - I will test the 2.25.0-SNAPSHOT locally. |
ok, I run the native image successfully on my local. There are many issues we need to fix. @FrankYang0529 Could you please try following steps on your PR.
resource-config.json
Additionally, the storage command has issue and it is handled by #18844 - hence, this PR can't fix native image totally until #18844 gets fixed - however, this PR can adopt the solution temporarily.
@dajac yes, I think it can get fixed this week |
docker/native/launch
Outdated
@@ -42,11 +42,11 @@ result=$(/opt/kafka/kafka.Kafka setup \ | |||
--default-configs-dir /etc/kafka/docker \ | |||
--mounted-configs-dir /mnt/shared/config \ | |||
--final-configs-dir /opt/kafka/config \ | |||
-Dlog4j.configuration=file:/opt/kafka/config/tools-log4j.properties 2>&1) || \ | |||
-Dlog4j2.configurationFile=file:/opt/kafka/config/tools-log4j2.yaml 2>&1) || \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/opt/kafka/config/tools-log4j2.yaml
is nonexistent in running the setup. Maybe we can just remove it to align the command to jvm dockerfile
0ebb8ff
to
498deb6
Compare
Hi @chia7712, thanks for the review. I also update the document about generating reachability metadata. If we need new files next time, we can follow it to generate metadata. |
…d README Signed-off-by: PoAn Yang <payang@apache.org>
498deb6
to
fb5e2cb
Compare
@@ -1072,7 +1072,6 @@ project(':core') { | |||
implementation libs.argparse4j | |||
implementation libs.commonsValidator | |||
implementation libs.jacksonDatabind | |||
implementation libs.jacksonModuleScala |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for another, we will file a PR to fix the license check. The PR #18004 also introduces a license warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and I run this PR locally, it pass
The follow-ups are shown below.
- storage format should use static voter - will be fixed by KAFKA-18737: KafkaDockerWrapper setup functions fails due to storage format command #18844
- native image does not honor the exit code of gpg key check - https://issues.apache.org/jira/browse/KAFKA-18823
- add a flag to skip gpg check - will be fixed by KAFKA-18737: KafkaDockerWrapper setup functions fails due to storage format command #18844
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran this PR on my local machine and also applied to test #18844
the flaky is traced by https://issues.apache.org/jira/browse/KAFKA-15900 |
… README (#18872) - update reflection-config.json and resource-config.json to include log4j2 and jackson - remove unused jackson scala library - fix the incorrect path of log4j2.yaml - adopt workaround (--standalone) to make this PR work and it will be fixed by KAFKA-18737) Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
cherry-pick to 4.0 |
… README (apache#18872) - update reflection-config.json and resource-config.json to include log4j2 and jackson - remove unused jackson scala library - fix the incorrect path of log4j2.yaml - adopt workaround (--standalone) to make this PR work and it will be fixed by KAFKA-18737) Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
… README (apache#18872) - update reflection-config.json and resource-config.json to include log4j2 and jackson - remove unused jackson scala library - fix the incorrect path of log4j2.yaml - adopt workaround (--standalone) to make this PR work and it will be fixed by KAFKA-18737) Reviewers: TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
Test steps
Committer Checklist (excluded from commit message)