You have to ser this variable in your start up parAmeters  java.io.tmpdir

 Example

export KAFKA_OPTS="-Djava.io.tmpdir=/your/custom/tmpdir"

On Tue, 18 Feb 2025 at 1:26 PM, Bruno Cadonna <cado...@apache.org> wrote:

> Hi Benson,
>
> you got a reply from Josep on Feb 17th.
>
> Copying Josep's e-mail here for simplicity:
>
> Hi Xiong,
>
> The release notes are also in Github (both github.com/apache/kafka/ and
> github.com/apache/kafka-site) and we can fix them with a PR. Regarding
> your
> findings, what you say makes sense, and indeed the `/tmp` folder might need
> exec permissions.
>
> Would you be up for a PR?
>
> Best,
>
>
>
> Best,
> Bruno
>
> On 18.02.25 02:23, Xiong Benson wrote:
> > + users@kafka.apache.org<mailto:users@kafka.apache.org>
> >
> > Dear Kafka community admins,
> >
> > Could you please reply to my below question?  The issue I mentioned
> below exposed a notable issue in kafka 3.8.1 client which has not been
> explicitly stated in any of the release note document.
> >
> > Thanks,
> > Benson
> > ________________________________
> > 发件人: Xiong Benson <bo.xi...@outlook.com>
> > 发送时间: 2025年2月17日 22:50
> > 收件人: d...@kafka.apache.org <d...@kafka.apache.org>
> > 主题: Kafka 3.8.1 /tmp exec permission issue also has impact on Kafka
> client
> >
> > Dear Kafka devs,
> >
> > The Kafka's 3.8.1 release note mentioned [KAFKA-17227<
> https://issues.apache.org/jira/browse/KAFKA-17227>] - Apache Kafka 3.8.0
> /tmp exec permission where it brings me  to
> https://kafka.apache.org/documentation/#upgrade_381_notable whose content
> is specifically for the kafka cluster(server). But this is not precise
> enough for the issue.
> >
> > Below are my summarized missing points that are not covered by
> https://kafka.apache.org/documentation/#upgrade_381_notable based on our
> tests.
> > [http://apache-kafka.org/images/apache-kafka.png]<
> https://kafka.apache.org/documentation/#upgrade_381_notable>
> > Apache Kafka<https://kafka.apache.org/documentation/#upgrade_381_notable
> >
> > Apache Kafka: A Distributed Streaming Platform.
> > kafka.apache.org
> > When "enable.metrics.push" is set to true for the kafka client and there
> is also the client metric subscription configured.
> >
> >    1.
> > If there is no additional setting configured for the kafka client, then
> /tmp(controlled by System property:"java.io.tmpdir") folder must have exec
> permission, otherwise ZstdOutputStreamNoFinalizer will fail the
> initialization and may break the relevent thread resulting in kafka client
> not functioning correct.(I've tested this with /tmp without exec permission)
> >    2.
> > Client needs to set System property:"ZstdTempFolder" to specify a folder
> with exec permission, otherwise ZstdOutputStreamNoFinalizer will also fail
> to initialize and may break client function(I haven't tested this but based
> on reading code for com.github.luben.zstd.util.Native).
> >
> > Above 1. is the most common scenario that Kaka client users will work
> with.  This is not a corner case and /tmp is also a commonly used
> directory, making it a notable change for Kafka client using client metric
> collection feature.
> >
> >
> > I wonder if my above finding is correct? If it is the case, why this
> information is not accurately stated in the release note nor notable change
> note consider its notable impact? Is it possible to add it somewhere or
> patch the release note and notable change note?
> >
> > Looking forward to your help for the answer!
> >
> >
> > Thanks,
> > Benson
> >
>
>

Reply via email to