undException: StringFunc`. As mentioned in
the code, the commented line surprisingly works as intended.
Do you have any ideas on why this the case?
Kind regards,
Jakub
Von: Dawid Wysakowicz
Gesendet: Donnerstag, 10. Dezember 2020 21:32
Bis: Jakub N
Cc: user@flink.ap
, f0 FROM
recipes").print();
}
This leads to a `java.lang.ClassNotFoundException: StringFunc`. As mentioned in
the code, the commented line surprisingly works as intended.
Do you have any ideas on why this the case?
Kind regards,
Jakub
________
Von: Dawid Wysakowic
On Tue, Dec 8, 2020 at 2:53 AM Jakub N > <mailto:jakub1...@hotmail.de>> wrote:
>>
>> Hi Guowei,
>>
>> It turned out for my application I unfortunately can't have
>> the UDF in the "job's" classpath. As I am usi
ou were proposing?
Kind regards,
Jakub
Von: Dawid Wysakowicz
Gesendet: Donnerstag, 10. Dezember 2020 09:59
Bis: Guowei Ma; Jakub N
Cc: user@flink.apache.org
Betreff: Re: Flink UDF registration from jar at runtime
Hi Jakub,
As Guowei said the UDF must be present in the user classloader. It m
;
> *Von:* Guowei Ma mailto:guowei....@gmail.com>>
> *Gesendet:* Dienstag, 8. Dezember 2020 06:34
> *An:* Jakub N mailto:jakub1...@hotmail.de>>
> *Cc:* user@flink.apache.org <mailto:u
es if any of these explanations are unclear or too vague.
>
> Kind regards,
>
> Jakub
>
> --------------
> *Von:* Guowei Ma
> *Gesendet:* Dienstag, 8. Dezember 2020 06:34
> *An:* Jakub N
> *Cc:* user@flink.apache.org
> *Betreff:* Re: Flink UDF regist
s to add these UDF's from outside the classpath?
>
> Kind regards,
>
> Jakub
>
> --
> *Von:* Jakub N
> *Gesendet:* Montag, 7. Dezember 2020 12:59
> *An:* Guowei Ma
> *Cc:* user@flink.apache.org
> *Betreff:* Re: Flink UDF registration from jar at runtime
path (when the project is packed).
Are there any ways to add these UDF's from outside the classpath?
Kind regards,
Jakub
Von: Jakub N
Gesendet: Montag, 7. Dezember 2020 12:59
An: Guowei Ma
Cc: user@flink.apache.org
Betreff: Re: Flink UDF registration from jar
Betreff: Re: Flink UDF registration from jar at runtime
Hi Jakub,
I think the problem is that the `cls`, which you load at runtime, is not in the
thread context classloader.
Flink deserializes the `myFunction` object with the context classloader.
So maybe you could put the myFunction in the job
relevant information is missing, alternatively
> you can also have a look at the source code here (
> https://github.com/codefeedr/kafkaquery).
>
> Kind regards,
>
> Jakub
>
>
> --
> *Von:* Guowei Ma
> *Gesendet:* Montag, 7. Dezember 2020
Hi, Jakub
In theory there should not be any problem because you could register the
function object.
So would you like to share your code and the shell command that you submit
your job?
Best,
Guowei
On Mon, Dec 7, 2020 at 3:19 AM Jakub N wrote:
> The current setup is: Data in Kafka -> Kafka Conn
11 matches
Mail list logo