# UDF/UDAF not Loaded after put on a image that build on k8s

**URL:** <https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728>\
**Category:** ksqlDB\
**Created:** [10 May 2021 20:07 UTC](https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728 "2021-05-10T20:07:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanzilgr2288](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/tanzilgr2288/32/758_2.png) [@tanzilgr2288](https://forum.confluent.io/u/tanzilgr2288)\
**Post date:** [10 May 2021 20:07 UTC](https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728/1 "2021-05-10T20:07:25Z")

</div>

I have Confluent 6.1.0 Running on top k8s, I custom confluent-ksql-server image for added my custom jar into the cp-ksql-server.

I set already for KSQL\_KSQL\_EXTENTION\_DIR and KSQL\_EXTENTION\_DIR and also set ksql.extention.dir in config resource.

I build 2 Jar files, 1 Jar from Example confluent official Doc and another one is my own custom UDF/UDAF.

There is no ERROR/WARN Log for failed load or anything, everything seems good but the custom jar not Loaded.

Any Idea or suggestion?

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [11 May 2021 13:04 UTC](https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728/2 "2021-05-11T13:04:56Z")

</div>

@tanzilgr2288 to confirm, are you using the env var `KSQL_KSQL_EXTENSION_DIR`? In your text you quote `KSQL_KSQL_EXTENTION_DIR` which has a misspelling.

---

<div class="post-metadata">

**Author:** ![tanzilgr2288](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/tanzilgr2288/32/758_2.png) [@tanzilgr2288](https://forum.confluent.io/u/tanzilgr2288)\
**Post date:** [19 May 2021 08:23 UTC](https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728/3 "2021-05-19T08:23:56Z")

</div>

Yes i’m using both.  
I have solve this issue.

By change the user of the jar file into Appuser not root, so the KSQL can execute the JAR.

Thank you Rick

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [26 May 2021 08:24 UTC](https://forum.confluent.io/t/udf-udaf-not-loaded-after-put-on-a-image-that-build-on-k8s/1728/4 "2021-05-26T08:24:36Z")

</div>

Closed on 26 May 2021 08:24 UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
