Skip to content

Conversation

kagarwal06
Copy link
Contributor

@kagarwal06 kagarwal06 commented Oct 16, 2023

This PR includes the changes for native-binary docker image for Apache Kafka corresponding to the KIP: https://cwiki.apache.org/confluence/display/KAFKA/KIP-974%3A+Docker+Image+for+GraalVM+based+Native+Kafka+Broker

NOTE 1 This PR is dependent on #14552, hence should be merged post merging #14552
NOTE 2: The changes are made on top of the #14552 as we had common code. Hence this contains changes for the JVM Docker Image as well
NOTE 3: To view Native-Image specific changes, refer: VedarthConfluent#1

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

process(args)
}

def process(args: Array[String]): Unit = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is process needed? You can invoke main from KafkaNativeWrapper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,6 @@
confluent_kafka
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it's a typo. Updating it to confluent-kafka

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why would we depend on a confluent kafka artifact.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ijuma Confluent Kafka for Python - https://github.com/confluentinc/confluent-kafka-python
confluent-kafka is a python client compatible with kafka
For sanity tests of docker images we wanted a python client to interact with kafka residing in docker image, hence we went ahead with this publicly available and widely used python client.
We are open to consider alternate python clients if there are any concerns in using this library

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not use the CLI tools that are included in the Apache Kafka project?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggestion has been incorporated. Now we are using CLI scripts included in kafka.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove confluent_kafka from here then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been removed. These changes are part of KIP 975 PR raised here:- #14552. (commit 6f64ce5)
They'll reflect here once this PR is updated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks.

kagarwal06 and others added 27 commits November 6, 2023 13:40
Changes to add support for file mounting of properties.
Env variables, if defined, will override the file input properties.
Copy link

github-actions bot commented Mar 6, 2024

This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch)

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

@github-actions github-actions bot added the stale Stale PRs label Mar 6, 2024
@omkreddy omkreddy closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants